manoharn
Junior Member level 2
- Joined
- Jun 5, 2012
- Messages
- 24
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Location
- Bangalore,India
- Activity points
- 1,429
hai i am doing project using pic18f458 and eeprom 24c02 & i done read write operations correctly but its memory is only 256 bytes , i need memory more than this so i choose eeprom 24c32.
In 24c02 i am writing only "one 8bit" data but in 24c32 i need to write "two 8bit" data,so i need to know how to write two 8 bit data.
ex:for 24c02
whatever data in the dat[0] its writing to memory location m3 i.e 10 and i don't know o in above i2c_eeprom_write instruction ,in eeprom.c its given like i2c_eeprom_write(unsigned long int addrh,unsigned char addrl,unsigned char data)
any idea for 24c32?
In 24c02 i am writing only "one 8bit" data but in 24c32 i need to write "two 8bit" data,so i need to know how to write two 8 bit data.
ex:for 24c02
Code:
let m3=10;//memory location
i2c_eeprom_write(m3,0,dat[0]);
m3=m3+2;
whatever data in the dat[0] its writing to memory location m3 i.e 10 and i don't know o in above i2c_eeprom_write instruction ,in eeprom.c its given like i2c_eeprom_write(unsigned long int addrh,unsigned char addrl,unsigned char data)
any idea for 24c32?
Last edited by a moderator: