Re: Data from DS1307 (BCD) saved to ext memory and read back to display
Malcom is nearly correct
I2Cwrite SDApin,SCLpin,$insert address of eeprom,[TimeH,TimeM,SS]
should be
I2Cwrite SDApin,SCLpin,$a0,eprom_location,[TimeH,TimeM,SS]
where :- for a 24lc64 8k bytes and 32 byte page size
1. eprom_location must be a word var
2. eprom_location must be < 8192
3. ( eprom_location//page_size ) < (32 -number_of_bytes to write ) ie don't try to write past a page boundary
ps can't see the need for bcd - bin - bcd conversions though
Warning I'm not a teacher
Bookmarks