Battery Backed Clock

The battery backed clock data resides at dc0000-dc0040. That's all info I could find in my translation of Hardware RKRM. So I did some hacking on it and here comes result:

  Address Description                             
  dc0000: Second's Least Signifcant Digit         
  dc0004: Second's Most Signifcant Digit          
  dc0008: Minute's LSD                            
  dc000c: Minute's MSD                            
  dc0010: Hour's LSD                              
  dc0014: Hour's MSD                              
  dc0018: Day's of month LSD                      
  dc001c: Day's of month MSD                      
  dc0020: Month's LSD                             
  dc0024: Month's MSD                             
  dc0028: Year's LSD                              
  dc002c: Year's MSD                              
  dc0030: Day's of week LSD                       
  dc0034: Day's of week MSD (always equal ffff)  

Every digit is word-wide, dcb coded and logically inverted. It means thatfor example 4-Mar-1977 01:30:00 (circa my birthdate) would be represented in memory with:

  dc0000: ffffxxxx ffffxxxx ffffxxxx ffffxxxx     
  dc0010: ffffxxxx ffffxxxx ffffxxxx ffffxxxx     
  dc0020: ffffxxxx ffffxxxx ffffxxxx ffffxxxx     
  dc0030: ffffxxxx ffffxxxx ffffxxxx ffffxxxx     

Click on the link to view code snippet I wrote someday, which dumps time-of-day clock data from clock to ASCII format, shift-click to download.

Interesting links: