I ended up doing something like what Sherbrook replied with code like this
WRITE 3, memory_output4.byte0
WRITE 4, memory_output4.byte1
READ 3, memory_output6.byte0
READ 4, memory_output6.byte1
And the number came out correctly displayed
I'm going to try Henriks' other solutions also.
Henrik can you school me a little more please? From the manual what is line 5 (my numbers) doing:
1 WRITE will not work on devices with on-chip I2C interfaced serial EEPROM like the
2 PIC12CE67x and PIC16CE62x parts. Use the I2CWRITE instruction instead.
3 WRITE 5, B0 ' Send value in B0 to EEPROM
4 location 5
5 WRITE 0, Word W1, Word W2, B6
6 WRITE 10, Long L0 ' PBPL only
I'm assuming it's trying to write two 16 bit values to the variable B6. Will one overwrite the other or will they combine to make one 32 bit word?
Bookmarks