Simulating a 24LC16B EEPROM

nerdegutta

Senior Member

westaust55

Moderator
You do not "See" the 24LC16B (or 24LC256 if that is selected for simulation) but it works.

Try this in the simulator with the simulation set for 24LC16B.


Code:
hi2csetup i2cmaster, %10100000,i2cfast,i2cbyte
hi2cout 0,(1,2,3,4,5,6,7,8)
pause 1000
hi2cin 0, (b1, b2, b3, b4, b5,b6,b7,b8)
SERTXD (#b1," ", #b2," ", #b3," ", #b4," ", #b5," ",#b6," ",#b7," ",#b8, cr,lf)
pause 1000
you will see the eight values 1 to 8 displayed after they are read back form the simulated 24LC16B
 
Top