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
Summary of Contents for MC9S08PA4
Page 1: ...MC9S08PA4 Reference Manual Supports MC9S08PA4 Document Number MC9S08PA4RM Rev 5 08 2017 ...
Page 2: ...MC9S08PA4 Reference Manual Rev 5 08 2017 2 NXP Semiconductors ...
Page 22: ...MC9S08PA4 Reference Manual Rev 5 08 2017 22 NXP Semiconductors ...
Page 28: ...System clock distribution MC9S08PA4 Reference Manual Rev 5 08 2017 28 NXP Semiconductors ...
Page 150: ...Port data registers MC9S08PA4 Reference Manual Rev 5 08 2017 150 NXP Semiconductors ...
Page 196: ...Human machine interfaces HMI MC9S08PA4 Reference Manual Rev 5 08 2017 196 NXP Semiconductors ...
Page 224: ...Instruction Set Summary MC9S08PA4 Reference Manual Rev 5 08 2017 224 NXP Semiconductors ...
Page 232: ...Functional Description MC9S08PA4 Reference Manual Rev 5 08 2017 232 NXP Semiconductors ...
Page 258: ...FTM Interrupts MC9S08PA4 Reference Manual Rev 5 08 2017 258 NXP Semiconductors ...
Page 294: ...Functional description MC9S08PA4 Reference Manual Rev 5 08 2017 294 NXP Semiconductors ...
Page 398: ...Resets MC9S08PA4 Reference Manual Rev 5 08 2017 398 NXP Semiconductors ...
Page 400: ...MC9S08PA4 Reference Manual Rev 5 08 2017 400 NXP Semiconductors ...