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

SPI Simulation

I am trying to simulate an SPI device AT25128 eeprom, there is an example on the keil site which i have tried but i cant seem to get it working. Has anyone done any SPI or even I2C simulation that could help or point to some usefull sites?

Cheers.

Parents
  • Hi, thanks to anyone who previously replied to my SPI sim query. I am now having a problem simulating talking to an I2C device PCF8575, my main program works corrrectly with hardware so i know its doing the right thing but if i debug in sim mode and watch writes to IICOUT (vtreg) i keep getting 0x7F01 which im not sure of. 0xFFF=STOP, 0x0100=START, 0xFF00=ACK, 0xFF01=NACK, but why do i see 0x7F01 appear, sometimes twice.
    Does or has anyone seen 0x7F01 when I2C simulating?

Reply
  • Hi, thanks to anyone who previously replied to my SPI sim query. I am now having a problem simulating talking to an I2C device PCF8575, my main program works corrrectly with hardware so i know its doing the right thing but if i debug in sim mode and watch writes to IICOUT (vtreg) i keep getting 0x7F01 which im not sure of. 0xFFF=STOP, 0x0100=START, 0xFF00=ACK, 0xFF01=NACK, but why do i see 0x7F01 appear, sometimes twice.
    Does or has anyone seen 0x7F01 when I2C simulating?

Children