I'm using EEPROM chips 24LC512 with 64k bytes of storage.
I want to erase (set all data to zero) the chips as quickly as possible.
According to the Microchip spec sheets, a page write can be done:
Control_Byte, AddressHi_Byte, AddressLo_Byte, DataByte_0, .....DataByte_127
i.e. the chip will accept 128 bytes of data in one go when using page write.
How do I do this in PBP:
Address VAR WORD
Blank CON $0
I2CWRITE DataPin,ClockPin,$A0,Address,[STR Blank\128]
Is this OK? Is there a better way?
The chips and code work OK in 'non-page write mode'
Sorry if this has been covered before but I can't find it.
Regards Bill Legge
Bookmarks