Rtc Days Counter Register; Programming Model; Table 23-2 Rtc Module Register Memory Map - Motorola DragonBall MC9328MX1 Reference Manual

Integrated portable system processor
Table of Contents

Advertisement

Real-Time Clock (RTC)

23.2 Programming Model

The RTC module includes ten 32-bit registers. Table 23-2 summarizes these registers and their addresses.
RTC Hours and Minutes Counter Register
RTC Hours and Minutes Alarm Register

23.2.1 RTC Days Counter Register

The real-time clock days counter register (DAYR) is used to program the day for the TOD clock. When the
HOUR field of the HOURMIN register rolls over from 23 to 00, the day counter increments. It can be read
or written at any time. After a write, the time changes to the new value. This register cannot be reset
because the real-time clock is always enabled at reset.
This day counter only supports halfword and word write operations. That
means that all 9 bits must be set simultaneously.
DAYR
BIT
31
30
29
TYPE
r
r
r
0
0
0
RESET
BIT
15
14
13
TYPE
r
r
r
0
0
0
RESET
23-4
Table 23-2. RTC Module Register Memory Map
Description
RTC Days Counter Register
RTC Seconds Counter Register
RTC Day Alarm Register
RTC Seconds Alarm Register
RTC Control Register
RTC Interrupt Status Register
RTC Interrupt Enable Register
Stopwatch Minutes Register
RTC Days Counter Register
28
27
26
25
r
r
r
0
0
0
0
12
11
10
9
r
r
r
0
0
0
0
MC9328MX1 Reference Manual
Name
DAYR
HOURMIN
SECONDS
DAYALARM
ALRM_HM
ALRM_SEC
RCCTL
RTCISR
RTCIENR
STPWCH
NOTE:
24
23
22
21
r
r
r
r
r
0
0
0
0
0x0000
8
7
6
5
r
rw
rw
rw
rw
?
?
?
?
0x0???
Address
0x00204020
0x00204000
0x00204004
0x00204024
0x00204008
0x0020400C
0x00204010
0x00204014
0x00204018
0x0020401C
0x00204020
20
19
18
17
r
r
r
r
0
0
0
0
4
3
2
1
DAYS
rw
rw
rw
rw
?
?
?
?
MOTOROLA
Addr
16
r
0
0
rw
?

Advertisement

Table of Contents
loading

Table of Contents