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,
    >>So what did you mean in your original post when you said, "the signal function should simulate on the real controller pins" ??

    ok, it is my mistake. i have not posted clearly.
    in fact i use only software-debugging with simulated software-pins.
    and therefore i'm looking for a signal-function to simulate (one pin for data and one for clock) an i2c-eeprom like a real hardware.
    To be sure: both, the controller-side and the pin-side are only simulated with software.

    Thanks
    Christian Tauschek

  • OK - so what, precisely, is the problem with the simulation that Keil provide?

  • 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