beautypg.com

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

Page 31

background image

MAXQ3108

Low-Power, Dual-Core Microcontroller

______________________________________________________________________________________

31

Special Function Register Bit Descriptions (continued)

RASH (1Eh, 01h)

RTC Alarm Time-of-Day High 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:

Bits 3:0 are write accessible when either (ADE = 0 or RTCE = 0). Bits 3:0 are read accessible at all
times. Bits 7:4 are not write accessible and always read 0.

RASH.[3:0]:

RTC Time-of-Day High Bit 3:0. This register contains the most significant bits for the 24-bit time-of-
day alarm. The time-of-day alarm is formed by the RASH and the RASL registers and only the lower
20 bits is meaningful for the alarm function. The time-of-day alarm is triggered when 1) the
subsecond counter rolls over and 2) the 20 significant bits of the RASH:RASL register pair match
the 20 least significant bits of the RTC (the RTSH:RTSL register pair).

RASH.[7:4]: Reserved

Reserved. Reads return 0.

RASL (1Fh, 01h)

RTC Alarm Time-of-Day Low Register (16-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 accessible when BUSY = 0 and either (ADE = 0 or RTCE = 0).

RASL.[15:0]:

RTC Time-of-Day Low Bit 15:0. This register contains the least significant bits for the 20-bit time-of-
day alarm. The time-of-day alarm is formed by the RASH and the RASL registers and only the lower
20 bits are meaningful for the alarm function. The time-of-day alarm is triggered when 1) the
subsecond counter rolls over and 2) the 20 significant bits of the RASH:RASL register pair match
the 20 least significant bits of the RTC (the RTSH:RTSL register pair).

T2CNA (00h, 02h)

Timer 2 Control Register A

Initialization:

This register is cleared to 00h on all forms of reset.

Read/Write Access: Unrestricted

read/write.

T2CNA.0: G2EN

Gating Enable. This bit enables the external T2P pin to gate the input clock to the 16-bit (T2MD =
0) or highest 8-bit (T2MD = 1) timer. Gating uses T2P as an input, thus it can only be used when
T2OE0 = 0 and C/T2 = 0. Gating is not possible on the low 8-bit timer (T2L) when timer 2 is
operated in dual 8-bit mode. Gating does not make sense when counter operation is selected as
the T2 input is being counted. The G2EN bit serves a different purpose when capture and reload
have been defined for both edges (CCF[1:0] = 11b and CPRL2 = 1). For this special case, setting
G2EN = 1 allows the T2POL0 bit to specify which edge does not cause a reload. If T2POL0 is 0,
there is no reload on the falling edge; if T2POL0 is 1, there is no reload on the rising edge.
0 = gating disabled
1 = gating enabled