Well I have new results but still not looking like I am writing to the chip. Now when I read I get 255 for an output and not 0. I don't know if the 24FC1025 is default all 1's or 0's. Here is the new Code:
Hyperterm is giving me this: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 B1 = 0 ' Set B1 to 0 to rule out 255 coming from that I2CWRITE PORTB.1,PORTB.4,cont,addr,[20] ' Send the byte 1 to address 7 PAUSE 10 ' Wait 10ms for write to complete I2CREAD PORTB.1,PORTB.4,cont,addr,[B1] ' Read address 7 into B1 Serout SO,T2400,["Addr",#addr,":",#B1,13,10] ' Print B1's Value in DEC
Any help would be appreciatedCode:Addr7:255 Addr7:255 Addr7:255 Addr7:255![]()




Bookmarks