This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: RTC format


I just noticed it's a 1Hz clock so I assume it's stored in seconds from
1980?  I don't think 49,710 years will be a problem! :)

  > -----Original Message-----
  > From: ecos-discuss-owner@sources.redhat.com 
  > [mailto:ecos-discuss-owner@sources.redhat.com] On Behalf Of 
  > Trenton D. Adams
  > Sent: Monday, July 16, 2001 3:10 PM
  > To: 'eCos Discussion'
  > Subject: [ECOS] RTC format
  > 
  > 
  > Is there a standard format for RTCs?  I don't know what to 
  > write to the RTC 32-bit register to set it.  I came up with 
  > my own hh:mm:ss.xxx format for storage in a 32 bit 
  > register, but I wonder if it's compatible?  After all, I 
  > certainly hope it's not based on ms from some date because 
  > it would only store 49.xxx days then.
  > 
  > bit   | measurement
  > _________________
  > 27-23 | hours
  > 22-17 | minutes
  > 16-10 | seconds
  > 9-0   | milliseconds
  > 
  > 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]