Individual Register Descriptions - Samsung S3C2416 User Manual

16/32-bit risc
Table of Contents

Advertisement

REAL TIME CLOCK

1.5 INDIVIDUAL REGISTER DESCRIPTIONS

1.5.1 REAL TIME CLOCK CONTROL (RTCCON) REGISTER
The RTCCON register consists of 9 bits. It controls the read/write enable of the CLKSEL, CNTSEL and CLKRST
for testing.
RTCEN bit can control all interfaces between the CPU and the RTC, Therefore it must be set to 1 in an RTC
control routine to enable data read/write after a system reset. Before power off, the RTCEN bit is cleared to 0 to
prevent inadvertent writing into BCD counter register.
CLKRST is counter reset for 2
Before RTC clock setting, 2
Register
RTCCON
0x57000040
RTCCON
Bit
TICsel2
[8:5]
TICsel
[4]
CLKRST
[3]
CNTSEL
[2]
CLKSEL
[1]
RTCEN
[0]
13-8
15
Clock divider.(reference to Figure 15-1)
15
Clock divider must be reset for exact RTC operation.
Address
R/W
R/W
Tick Time clock select2.
0 = clock period of 1/16384 second select
1 = clock period of 1/8192 second select
2 = clock period of 1/4096 second select
3 = clock period of 1/2048 second select
4 = clock period of 1/128 second select
5 = clock period of 1 second select
6 = clock period of 1/1024 second select
7 = clock period of 1/512 second select
8 = clock period of 1/256 second select
9 = clock period of 1/64 second select
10 = clock period of 1/32 second select
11 = clock period of 1/16 second select
12 = clock period of 1/8 second select
13 = clock period of 1/4 second select
14 = clock period of 1/2 second select
Tick Time clock select1.
0 = Clock period select at TICsel2
1 = Clock period of 1/32768 second
RTC clock count reset.
0 = No reset
1 = Reset
BCD count select.
0 = Merge BCD counters
1 = Reserved (Separate BCD counters)
BCD clock select.
0 = XTAL 1/215 divided clock
1 = Reserved (XTAL clock only for test)
RTC control enable.
0 = Disable
1 = Enable
Note: Only BCD time count and read operation can be performed.
Description
RTC control register
Description
S3C2416X RISC MICROPROCESSOR
Reset Value
Initial State
0x00
0x0
0
0
0
0
0

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents