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
The simulator cannot apply signals to the pins of external hardware.
I think he meant that the signal functions should not simulate I2C on dedicated I2C pins of the processor, but should instead use two generic port pins. But I may of course be wrong. As noted, the signal functions will not be able to affect real hardware.
Hello, >>As noted, the signal functions will not be able to affect real hardware.
Why not? It is only necessary to affect two pins. like a real i2c-eeprom do this. I should be able to simulate i2c with signal-functions. It also should be possible to simulate a real i2c-eeprom. What should i do instead, without using a real hardware? I don't have the hardware available while i'm developing my software.
The signal functions will not be able to affect real hardware for the simple reason that the signal functions is processed by your PC, and your PC has no way to be electrically connected to real hardware.
Hello, yes i now. But i'm only testing with software-debugging and not with a real hardware. (also the controller) with signal-functions i should also be able to simulate the extern hardware like real hardware do this. i have realized some easier pin-simulations with signal-functions and this works too. But i2c is a little bit more complex and therefore i'm looking for a developed signal function.
thanks Christian tauschek
" But i'm only testing with software-debugging and not with a real hardware."
So what did you mean in your original post when you said, "the signal function should simulate on the real controller pins" ??
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