Re: 16F690 and 24LC16B memory - can't WRITE 8 different bytes in a row
the control word to address an individual memory cell is 16 bits long for that eeprom
made up as ->
$a0 + block <<1 + r/rw [0 for pbp] + eeaddress [0-255]
for example block=5,cell 0x38
0xA0 + 5<<1 + 0 = 0xAA , high byte of word
address=0x38 , low byte of word
this word is transmitted as two bytes, big end first ,
other eeproms have other schemes where cell address is a word and the device control address byte is a constant
based on address pins plus device code.
address =0x538
i2cwrite sda,sck,$a0,address,[1,30,52]
Do you mean the I2C command will transform the two BYTE variables in one WORD sized one?
no , the eeprom will interpret the two bytes as a 16 bit value
Warning I'm not a teacher
Bookmarks