This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: correcting RTC
- From: "Gary D. Thomas" <gary dot thomas at mind dot be>
- To: aarichar at cisco dot com
- Cc: eCos Discussion <ecos-discuss at sources dot redhat dot com>
- Date: 28 May 2003 15:18:26 -0600
- Subject: Re: [ECOS] correcting RTC
- Organization:
- References: <200305281603.18055.aarichar@cisco.com>
On Wed, 2003-05-28 at 15:03, Aaron Richardson wrote:
> How do I go about dialing in the RTC to the correct time? I see that I can
> change the period, numerator, and divisor; but I dont know what to set them
> to exactly. Is there some test that tells me what to set it to? Or do I
> just run a really long delay and time it, and then make calculations off
> that?
You should be able to look at the documentation for the timer chip
you are using and figure out what the count value will be for the
particular tick setup. The default is for 10ms/tick (the divisor value
of 100). If you look at some other HALs, you can see that some are
hard-wired while others are calculated based on such things as the
system clock xtal frequency, etc.
--
Gary D. Thomas <gary.thomas@mind.be>
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss