13.3.2 RTC Status and Control Register 2 (RTC_SC2)
RTC_SC2 contains the clock select bits (RTCLKS) and the prescaler select bits
(RTCPS).
Address: 306Ah base + 1h offset = 306Bh
Bit
7
6
5
4
3
2
1
0
Read
Write
Reset
0
0
0
0
0
0
0
0
RTC_SC2 field descriptions
Field
Description
7–6
RTCLKS
Real-Time Clock Source Select
These two read/write bits select the clock source input to the RTC prescaler. Changing the clock source
clears the prescaler and RTCCNT counters. Reset clears RTCLKS to 00.
00
External clock source.
01
Real-time clock source is 1 kHz.
10
Bus clock.
11
Bus clock.
5–3
Reserved
This field is reserved.
This read-only field is reserved and always has the value 0.
RTCPS
Real-Time Clock Prescaler Select
These four read/write bits select binary-based or decimal-based divide-by values for the clock source.
Changing the prescaler value clears the prescaler and RTCCNT counters. Reset clears RTCPS to 0000.
000
Off
001
If RTCLKS = x0, it is 1; if RTCLKS = x1, it is 128.
010
If RTCLKS = x0, it is 2; if RTCLKS = x1, it is 256.
011
If RTCLKS = x0, it is 4; if RTCLKS = x1, it is 512.
100
If RTCLKS = x0, it is 8; if RTCLKS = x1, it is 1024.
101
If RTCLKS = x0, it is 16; if RTCLKS = x1, it is 2048.
110
If RTCLKS = x0, it is 32; if RTCLKS = x1, it is 100.
111
If RTCLKS = x0, it is 64; if RTCLKS = x1, it is 1000.
Register definition
MC9S08PA4 Reference Manual, Rev. 5, 08/2017
262
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 ...