Download Print this page

Freescale Semiconductor MPC8313E PowerQUICC II Pro Family Reference Manual page 251

Integrated
Hide thumbs Also See for MPC8313E PowerQUICC II Pro:

Advertisement

When the counter's clock is enabled, it continues counting using the previous value.
RTC every-second interrupt enable/disable mode:
— RTC every-second interrupt enable mode (RTCNR[SIM] = 1)
In this mode the RTC set the RTEVR[SIF] flag and generate an interrupt after the RTC's 32-bit
counter reaches zero.
— RTC every-second interrupt disable mode (RTCNR[SIM] = 0)
In this mode the RTC sets the RTEVR[SIF] flag but does not generate an interrupt after the
RTC's 32-bit counter reaches zero.
RTC alarm interrupt enable/disable mode:
— RTC alarm interrupt enable mode (RTCNR[AIM] = 1)
In this mode, the RTC sets the RTEVR[AIF] flag and generates an interrupt each time when the
RTC's 32-bit counter reaches the RTALR[ALR] value.
— RTC alarm interrupt disable mode (RTCNR[AIM] = 0)
In this mode the RTC sets the RTEVR[AIF] flag but does not generate an interrupt when the
RTC's 32-bit counter reaches the RTALR[ALR] value.
RTC internal/external input clock mode:
The input clock to the RTC may be the CSB clock or an external 32.768-kHz crystal.
— RTC uses the internal input clock mode (RTCNR[CLIN] = 0)
— RTC uses the external 32.768-kHz crystal clock (RTCNR[CLIN] = 1)
5.5.7
RTC Programming Guidelines
The following initialization sequence for the RTC is recommended:
1. Write to RTPSR to set the RTC prescaler to the desired value
2. Write to RTLDR to initialize the RTC initial value
3. Write to RTALR to program the RTC alarm value, if needed
4. Write to RTCNR to configure and start the RTC operation: RTC input clock source, second/alarm
interrupt mask, RTC clock enable.
5.6
Periodic Interval Timer (PIT)
The following sections describe theory of operation of the periodic interval timer (PIT) including a
definition of the external signals and the functions it serves. Additionally, the configuration, control, and
status registers are described. Note that individual chapters in this reference manual describe additional
specific initialization aspects for each individual block.
5.6.1
PIT Overview
The periodic interval timer (PIT) that generates periodic interrupts for a real-time operating system or an
application software.
MPC8313E PowerQUICC™ II Pro Integrated Processor Family Reference Manual, Rev. 2
Freescale Semiconductor
System Configuration
5-43

Advertisement

loading

This manual is also suitable for:

Mpc8313 powerquicc ii pro