PIC18LF8720 I2C Communication with 24c512?

Status
Not open for further replies.

qwertyuiop415263

Full Member level 4
Joined
Mar 26, 2010
Messages
231
Helped
50
Reputation
102
Reaction score
39
Trophy points
1,308
Location
Pakistan
Activity points
2,414
I have successfully used MPLAB C-18 library to store data in 24cxx devices.
My question is how to modify the C-18 library to work for 24c512 EEPROM as it reqiures 16-bit address.
 

you just have provide two byte WORD ADDRESS instead of one byte which u used to do in 24CXX
& your device address doesn't contain page address...
 

In 24cxx devices we provide 1 byte address while i have to provide 2 byte address. Now how to provide 2byte address? I am using C-18 library function " EEByteWrite"
 

C18 ids 8 bit device... it doesnt matter....
just perform two write cycles....
8 bit each... if you folllow datasheet of 24C512 u can easily understand dat...
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…