Re: MPC555 RTC Question

David Wybo <[email protected]>
Newsgroups gmane.comp.hardware.motorola.microcontrollers
Organization RealTime Consultants, Inc.
Message-ID <[email protected]>
The USIU manual states:

The RTCAL is a 32-bit read/write register. When the value of the RTC is 
equal to the
value programmed in the alarm register, a maskable interrupt is generated.

What do you initialize it to? Also, do you clear SEC before enabling the 
RTC?

trailrunner23 wrote:

>Wondering if anyone can explain something a little odd about the RTC.
>I've got the RTC and PIT initialized to generate interrupts once per
>second, and the DEC to generate interrupts once per millisecond. The
>first RTC interrupt occurs as soon as I enable interrupts, but the
>first PIT interrupt occurs very close to one second later. It doesn't
>help if I explicitly acknowledge a (possibly pending) RTC interrupt
>before enabling the interrupt. Anybody understand this? I want to
>think of the RTC as the number of seconds that have elapsed since
>boot, but it's always ahead by one second.
>
>Thanks,
>
>Joe
>
>
>
>
>
>
>-----------------------------------------------------------
>To learn more about Freescale Microcontrollers, please visit
>http://www.freescale.com/mcu
>
>
> 
>Yahoo! Groups Links
>
>
>
> 
>
>
>
>
>  
>

-- 
David Wybo                    mailto:[email protected]
RealTime Consultants, Inc.    Phone: 248.345.6160
www.realtimeconsultantsinc.com





------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/dN_tlB/TM
--------------------------------------------------------------------~-> 

-----------------------------------------------------------
To learn more about Freescale Microcontrollers, please visit
http://www.freescale.com/mcu


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/MPC500/

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.