I will be using the same stuff.
PIC16F684 and 24LC08B EEPROM from Microchip
I will use:
counter VAR BYTE
counter = 25
getcounter VAR BYTE
getcounter = 0
'datapin PORTC.4
'clockpin PORTC.5
'block 0 from 4, address 0 of the 256bytes block
I2CWRITE PORTC.4,PORT5,%10100000,0,[counter]
PAUSE 10
I2CREAD PORTC.4,PORT5,%10100000,0,[getcounter]
and getcounter will obtain the value of 25, right?
Connect pins 1 - 4 and 7 to GND.
Connect pin 8 to VDD
Connect pins 5 and 6 to VDD thru 4.7K wpu
Connect pin 5 to PORTC.4
Connect pin 6 to PORTC.5
Right?
Bookmarks