beautypg.com

Maxq3108 low-power, dual-core microcontroller – Rainbow Electronics MAXQ3108 User Manual

Page 28

background image

MAXQ3108

Low-Power, Dual-Core Microcontroller

28

______________________________________________________________________________________

Special Function Register Bit Descriptions (continued)

RTRM (18h, 01h)

Real-Time Clock Trim Register (8-Bit Register)

Initialization:

This register is battery backed through POR so long as V

BAT(MIN)

< V

BAT

< V

BAT(MAX)

; however, it

is indeterminate on the very first POR and must be configured initially by the user. This register is
unaffected by other resets.

Read/Write Access:

Unrestricted read, write access only when the WE = 1 and BUSY = 0. An attempted write operation
is not complete until hardware clears the BUSY bit.

RTRM.[6:0]: TRM[6:0]

RTC Trim Calibration Register Bits 6:0. These register bits provide a binary value between 00h–
7Fh, which is used for adjusting 32K clocks insertion/removal. At every 10-second interval, the
number of 32K clocks equal to the RTRM[6:0] numeric value is inserted/removed from the RTC
counter depending on the value in the TSGN bit. The trim bits are write protected by WE. WE must
be set to 1 for the bits to be updated.

RTRM.7: TSGN

RTC Trim Sign Bit. This register bit selects whether 32K clocks are inserted (TSGN = 0) or
removed (TSGN = 1).

RCNT (19h, 01h)

Real-Time Clock Control Register (16-Bit Register)

Initialization:

This register is initialized to 0sssss000000100sb on all forms of reset. Bits 14–10 and bit 0 are
battery backed through POR so long as V

BAT(MIN)

< V

BAT

< V

BAT(MAX)

. These battery-backed bits

are indeterminate on the very first POR and must be configured by the user, but are unaffected by
other resets.

Read/Write Access:

Unrestricted read. Bit 0 (RTCE) is write accessible only when WE = 1 and BUSY = 0. Bits 3 (BUSY)
and 13 (32KRDY) are read-only. Bit 4 can be cleared to 0 when RTCE = 1; it can never be set to 1
by software. Bit 15 is unrestricted write. All other bits are write accessible only when BUSY = 0.

RCNT.0: RTCE

Real-Time Clock Enable. The RTCE is the real-time enable bit. Setting this bit to logic 1 activates
the clocking by allowing the divided clock to the ripple counters. Clearing this bit to logic 0
disables the clock.

RCNT.1: ADE

Alarm Time-of-Day Enable. The ADE bit is the RTC’s time-of-day alarm enable and must be set to
logic 1 for the alarm to generate a system interrupt request. When the ADE is cleared to logic 0, the
time-of-day alarm is disabled; no interrupt is generated even the alarm is set.

RCNT.2: ASE

Alarm Subsecond Enable. The ASE bit is the RTC’s subsecond timer enable and must be set to
logic 1 for the subsecond alarm to generate a system interrupt request. When the ASE is cleared to
logic 0, the subsecond alarm is disabled; no interrupt is generated even the alarm is set.

RCNT.3: BUSY

RTC Busy. This bit is set to 1 by hardware when any of the following conditions occur:
1) System reset.
2) Software writes to RTC count registers or trim register.
3) Software changes RTCE, ASE, or ADE.
For conditions 2) and 3), the write or change should not be considered complete until hardware
clears the BUSY bit. This is an indication that a 32kHz synchronized version of the register bit(s) is
in place.

RCNT.4: RDY

RTC Ready. This bit is set to 1 by hardware when the RTC count registers update. It can be cleared
to 0 by software at any time. It is also cleared to 0 by hardware just prior to an update of the RTC
count register. This bit can generate an interrupt if the RDYE bit is set to 1.

RCNT.5: RDYE

RTC Ready Enable. Setting this bit to 1 allows a system interrupt to be generated when RDY
becomes active (if interrupts are enabled globally and modularly). Clearing this bit to 0 disables
the RDY interrupt.