Real-Time Clock Operation
14-6
Real Time Clock
14.2.4 Real-Time Clock Interrupts
The Real-Time Clock uses two bits for interrupt control.
-
Basic Timer1 interrupt flag, BTIFG, located in IFG2.7
-
Real-Time Clock interrupt enable, RTCIE, located in the module
The Real-Time Clock module shares the Basic Timer1 interrupt flag and
vector. When RTCIE = 0, the Basic Timer1 controls interrupt generation with
the BTIPx bits. In this case, the RTCEVx bits select the interval for setting the
RTCFG flag, but the RTCFG flag does not generate an interrupt. The RTCFG
flag must be cleared with software when RTCIE = 0.
When RTCIE = 1, the RTC controls interrupt generation and the Basic Timer1
BTIPx bits are ignored. In this case, the RTCFG and BTIFG flags are set at the
interval selected with the RTCEVx bits, and an interrupt request is generated
if the GIE bit is set. Both the RTCFG and BTIFG flags are reset automatically
when the interrupt is serviced, or can be reset with software.
The interrupt intervals are listed in Table 14−1.
Table 14−1.RTC Interrupt Intervals
RTC Mode
RTCTEVx
Interrupt Interval
Counter Mode
00
8-bit overflow
01
16-bit overflow
10
24-bit overflow
11
32-bit overflow
Calendar Mode
00
Minute changed
01
Hour changed
10
Every day at midnight (00:00)
11
Every day at noon (12:00)
Summary of Contents for MSP430x4xx Family
Page 1: ...MSP430x4xx Family 2007 Mixed Signal Products User s Guide SLAU056G ...
Page 2: ......
Page 6: ...vi ...
Page 114: ...3 76 RISC 16 Bit CPU ...
Page 304: ...5 20 FLL Clock Module ...
Page 340: ...7 8 Supply Voltage Supervisor ...
Page 348: ...8 8 16 Bit Hardware Multiplier ...
Page 372: ...9 24 32 Bit Hardware Multiplier ...
Page 400: ...10 28 DMA Controller ...
Page 428: ...13 10 Basic Timer1 ...
Page 466: ...15 24 Timer_A ...
Page 522: ...17 30 USART Peripheral Interface UART Mode ...
Page 544: ...18 22 USART Peripheral Interface SPI Mode ...
Page 672: ...23 12 Comparator_A ...
Page 692: ...24 20 LCD Controller ...
Page 746: ...26 28 ADC12 ...