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 Reply Children
  • Thanks, i still have a problem where in simulation mode im trying to sim a read from the I2C device. I get the Start Cond, then Addr, i Ack, then send 1st byte, wait for Ack, but then before i can send or even if i do i get the Stop cond.

    It all works pefectly on hardware, ive watched it on the scope and stepped through on the debugger, all is ok.

    Only when i simulate im cut short from the master receiving my 2nd byte.

    The original core code was done by DaVE and as i say worls on hardware. The device im trying to sim is PCF8575, standard stuff really.

    Although i didnt know what the 0x7F01 was i just ignored it anyway to try to get thing working.

    Can you help anymore ?

  • It seems like a simulator problem. You should send the test project with instructions how to duplicate the problem to support.intl@keil.com