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.
Values 0x7F01 (CLK1) and 0x7F00 (CLK0) are used to simulate Clock stretching.
Those values can be ignored when watching the IICOUT for normal operation.
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