This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

I2C

Hello,
i'm looking for a signal function, witch is able to simulate an i2c-eeprom. (for uVision3)

But in contrast to the example code on keils homepage, the signal function should simulate on the real controller pins. (one pin for data and one for clock)

thanks for answers
Christian Tauschek

Parents Reply Children
  • Hello,
    my problem is, that keil's application note 153 (simulating a device connected to the i2c-bus) only works with two VTReg's (I2C_IN, I2C_OUT).
    it is no problem with a 87C591-controller.

    but i'm using a 87C52-controller. my program works with two pins (SDA and SCL; port0.4 and 0.3) to communicate with the bus.
    because of this fact, i have to utilize this both ports directly with a signal-function. i don't have VTReg's like I2C_IN and I2C_OUT available. if i had such VTReg's in connection with my controller, it would be easy.

    thanks
    Christian Tauschek