GBAmp3 Mod PCB Order Now
also available at retromodding.comand Deadpan Robot

Friday, December 3, 2010

Litmer: DS1302 driver works

Just tested my code with DS1302 chip. EEPROM have init byte, if it set to 0x01 then mcu will write time to rtc chip and then set this byte to 0. Next bytes is init hour and minutes values.
Output from chips is correct and time is moving:

This output hour as 00011001 in BCD format = 19 decimal and minutes as 00000011 = 3. So the time is 19:03.

No comments:

Post a Comment