Hi Guys!
I have a Pic 16C84 with a serial Eeprom 24LC16B.
I want to read the first 63 bytes and write it in the internel Eeprom
of my Pic.
My Programm:
include "modedefs.bas"
define OSC 4
B0 var byte
B1 var byte
B2 var byte
cont con %10100110
for b0=0 to 63
HIGH PORTB.4 'data pin
HIGH PORTB.5 'clock pin
Pause 50
LOW PORTB.4 'start signal for 24LC16B
I2cread PORTB.4,PORTB.5,cont,b0,B2
pause 50
write b0,b2
LOW PORTB.4 'stop signal for 24LC16B
next b0
end
This writes only "FF" in the internel Eeprom,
not my Data from the serial Eeprom!
Can you help me?
RON
Bookmarks