13.2.1.1 Wait mode
The RTC continues to run in Wait mode if enabled before executing the WAIT
instruction. Therefore, the RTC can be used to bring the MCU out of Wait mode if the
real-time interrupt is enabled. For lowest possible current consumption, the RTC must be
stopped by software if not needed as an interrupt source during Wait mode.
13.2.1.2 Stop modes
The RTC continues to run in Stop3 mode if the RTC is enabled before executing the
STOP instruction. Therefore, the RTC can be used to bring the MCU out of stop modes
with no external components, if the real-time interrupt is enabled.
13.2.2 Block diagram
The block diagram for the RTC module is shown in the following figure.
CLOCK
DIVIDER
EXT CLK
RTCLKS
RTCPS
16-bit counter
16-bit modulo
16-bit modulo
16-bit comparator
16-bit latch
R
1
RTIF
Write 1 to RTIF
RTC
INTERRUPT
REQUEST
RTIE
RTCCNT
RTCMOD
BUS CLK
BUS CLK
LPO CLK
D Q
Figure 13-1. Real-time counter (RTC) block diagram
13.3 Register definition
The RTC includes a status and control register, a 16-bit counter register, and a 16-bit
modulo register.
Register definition
MC9S08PA4 Reference Manual, Rev. 5, 08/2017
260
NXP Semiconductors
Содержание MC9S08PA4
Страница 1: ...MC9S08PA4 Reference Manual Supports MC9S08PA4 Document Number MC9S08PA4RM Rev 5 08 2017 ...
Страница 2: ...MC9S08PA4 Reference Manual Rev 5 08 2017 2 NXP Semiconductors ...
Страница 22: ...MC9S08PA4 Reference Manual Rev 5 08 2017 22 NXP Semiconductors ...
Страница 28: ...System clock distribution MC9S08PA4 Reference Manual Rev 5 08 2017 28 NXP Semiconductors ...
Страница 150: ...Port data registers MC9S08PA4 Reference Manual Rev 5 08 2017 150 NXP Semiconductors ...
Страница 196: ...Human machine interfaces HMI MC9S08PA4 Reference Manual Rev 5 08 2017 196 NXP Semiconductors ...
Страница 224: ...Instruction Set Summary MC9S08PA4 Reference Manual Rev 5 08 2017 224 NXP Semiconductors ...
Страница 232: ...Functional Description MC9S08PA4 Reference Manual Rev 5 08 2017 232 NXP Semiconductors ...
Страница 258: ...FTM Interrupts MC9S08PA4 Reference Manual Rev 5 08 2017 258 NXP Semiconductors ...
Страница 268: ...Initialization application information MC9S08PA4 Reference Manual Rev 5 08 2017 268 NXP Semiconductors ...
Страница 294: ...Functional description MC9S08PA4 Reference Manual Rev 5 08 2017 294 NXP Semiconductors ...
Страница 370: ...Memory map and register description MC9S08PA4 Reference Manual Rev 5 08 2017 370 NXP Semiconductors ...
Страница 398: ...Resets MC9S08PA4 Reference Manual Rev 5 08 2017 398 NXP Semiconductors ...
Страница 400: ...MC9S08PA4 Reference Manual Rev 5 08 2017 400 NXP Semiconductors ...