I simplified everything and have tried everything (even tried swapping out the chip) but I cant get this EEPROM to write anything to it. Here is the new simplified code:
Correct me if I'm wrong but the above code should work but it still just reads "0" in hyperterm like this: "Addr7:0"Code:SO con 0 ' Define serial output pin T2400 con 0 ' Define serial mode cont CON %10100000 ' Define Control byte addr CON %0000000000000111 ' 2 Byte Address of 7 B1 VAR BYTE ' Var for data being read I2CWRITE PORTA.0,PORTA.1,cont,addr,[1] ' Send the byte 1 to address 7 PAUSE 10 ' Wait 10ms for write to complete I2CREAD PORTA.0,PORTA.1,cont,addr,[B1] ' Read address 7 into B1 Serout SO,T2400,["Addr",#addr,":",#B1,13,10] ' Print B1's Value in DEC
I am reading 4.97V from pins 4-8 and I get 4.82V from 4-5 and 4-6 on the 24FC1025 EEPROM so my voltage is within specs. I have checked all continuity on the circuit and they all tone out.
I don't know what else to do. Please help.




Bookmarks