Part Number: MSP430F5529
I have an MSP430F5529 design which uses the RTC_A to coordinate data captures. I have RTCRDY and RT1PS enabled, and the PS is set for 64Hz. For 43522 Seconds in a row it works perfectly. I get the RDY interrupt, followed by 64 PS interrupts. Then after 43522 seconds, I only get 63 PS interrupts. Then it picks up and goes fine for another 43522 seconds. I have the RTC calibration set to 0 so I don't think it is the Calibration logic advancing the clock. I've attached the RTC_A register dump from the device, logged when the error happens. Anyone seen this before ?
RTC__Real_Time_ClockRTCCTL01 0xB014 Real Timer Control 0/1 [Memory Mapped]RTCBCD 1 RTC BCD 0:Binary / 1:BCDRTCHOLD 0 RTC HoldRTCMODE 1 RTC Mode 0:Counter / 1: CalendarRTCRDY 1 RTC ReadyRTCSSEL 00 - RTCSSEL_0 RTC Source Select 1RTCTEV 00 - RTCTEV_0 RTC Time Event 1RTCTEVIE 0 RTC Time Event Interrupt Enable FlagRTCAIE 0 RTC Alarm Interrupt Enable FlagRTCRDYIE 1 RTC Ready Interrupt Enable FlagRTCTEVIFG 1 RTC Time Event Interrupt FlagRTCAIFG 0 RTC Alarm Interrupt FlagRTCRDYIFG 0 RTC Ready Interrupt FlagRTCCTL23 0x0000 Real Timer Control 2/3 [Memory Mapped]RTCCALF 00 - RTCCALF_0 RTC Calibration Frequency Bit 1RTCCALS 0 RTC Calibration SignRTCCAL5 0 RTC Calibration Bit 5RTCCAL4 0 RTC Calibration Bit 4RTCCAL3 0 RTC Calibration Bit 3RTCCAL2 0 RTC Calibration Bit 2RTCCAL1 0 RTC Calibration Bit 1RTCCAL0 0 RTC Calibration Bit 0RTCPS0CTL 0x0101 Real Timer Prescale Timer 0 Control [Memory Mapped]RT0SSEL 0 RTC Prescale Timer 0 Source Select 0:ACLK / 1:SMCLKRT0PSDIV 000 - RT0PSDIV_0 RTC Prescale Timer 0 Clock Divide Bit: 2RT0PSHOLD 1 RTC Prescale Timer 0 HoldRT0IP 000 - RT0IP_0 RTC Prescale Timer 0 Interrupt Interval Bit: 2RT0PSIE 0 RTC Prescale Timer 0 Interrupt Enable FlagRT0PSIFG 1 RTC Prescale Timer 0 Interrupt FlagRTCPS1CTL 0x0102 Real Timer Prescale Timer 1 Control [Memory Mapped]RT1SSEL 00 - RT1SSEL_0 RTC Prescale Timer 1 Source Select Bit 1RT1PSDIV 000 - RT1PSDIV_0 RTC Prescale Timer 1 Clock Divide Bit: 2RT1PSHOLD 1 RTC Prescale Timer 1 HoldRT1IP 000 - RT1IP_0 RTC Prescale Timer 1 Interrupt Interval Bit: 2RT1PSIE 1 RTC Prescale Timer 1 Interrupt Enable FlagRT1PSIFG 0 RTC Prescale Timer 1 Interrupt FlagRTCPS 0x8081 Real Timer Prescale Timer Control [Memory Mapped]RTCIV 0x0000 Real Time Clock Interrupt Vector [Memory Mapped]RTCTIM0 0x0935 Real Time Clock Time 0 [Memory Mapped]RTCTIM1 0x0600 Real Time Clock Time 1 [Memory Mapped]RTCDATE 0x0820 Real Time Clock Date [Memory Mapped]RTCYEAR 0x2017 Real Time Clock Year [Memory Mapped]RTCAMINHR 0x0000 Real Time Clock Alarm Min/Hour [Memory Mapped]RTCADOWDAY 0x0000 Real Time Clock Alarm day of week/day [Memory Mapped]RTCSEC 0x35 Real Time Clock Seconds [Memory Mapped]SECONDS6 0 Real Time Clock Seconds Bit: 6SECONDS5 1 Real Time Clock Seconds Bit: 5SECONDS4 1 Real Time Clock Seconds Bit: 4SECONDS3 0 Real Time Clock Seconds Bit: 3SECONDS2 1 Real Time Clock Seconds Bit: 2SECONDS1 0 Real Time Clock Seconds Bit: 1SECONDS0 1 Real Time Clock Seconds Bit: 0RTCMIN 0x09 Real Time Clock Minutes [Memory Mapped]MINUTES6 0 Real Time Clock Minutes Bit: 6MINUTES5 0 Real Time Clock Minutes Bit: 5MINUTES4 0 Real Time Clock Minutes Bit: 4MINUTES3 1 Real Time Clock Minutes Bit: 3MINUTES2 0 Real Time Clock Minutes Bit: 2MINUTES1 0 Real Time Clock Minutes Bit: 1MINUTES0 1 Real Time Clock Minutes Bit: 0RTCHOUR 0x00 Real Time Clock Hour [Memory Mapped]HOUR6 0 Real Time Clock Hour Bit: 6HOUR5 0 Real Time Clock Hour Bit: 5HOUR4 0 Real Time Clock Hour Bit: 4HOUR3 0 Real Time Clock Hour Bit: 3HOUR2 0 Real Time Clock Hour Bit: 2HOUR1 0 Real Time Clock Hour Bit: 1HOUR0 0 Real Time Clock Hour Bit: 0RTCDOW 0x06 Real Time Clock Day of week [Memory Mapped]DOW6 0 Real Time Clock DOW Bit: 6DOW5 0 Real Time Clock DOW Bit: 5DOW4 0 Real Time Clock DOW Bit: 4DOW3 0 Real Time Clock DOW Bit: 3DOW2 1 Real Time Clock DOW Bit: 2DOW1 1 Real Time Clock DOW Bit: 1DOW0 0 Real Time Clock DOW Bit: 0RTCDAY 0x20 Real Time Clock Day [Memory Mapped]DAY6 0 Real Time Clock Day Bit: 6DAY5 1 Real Time Clock Day Bit: 5DAY4 0 Real Time Clock Day Bit: 4DAY3 0 Real Time Clock Day Bit: 3DAY2 0 Real Time Clock Day Bit: 2DAY1 0 Real Time Clock Day Bit: 1DAY0 0 Real Time Clock Day Bit: 0RTCMON 0x08 Real Time Clock Month [Memory Mapped]MONTH6 0 Real Time Clock Month Bit: 6MONTH5 0 Real Time Clock Month Bit: 5MONTH4 0 Real Time Clock Month Bit: 4MONTH3 1 Real Time Clock Month Bit: 3MONTH2 0 Real Time Clock Month Bit: 2MONTH1 0 Real Time Clock Month Bit: 1MONTH0 0 Real Time Clock Month Bit: 0RTCAMIN 0x00 Real Time Clock Alarm Min [Memory Mapped]RTCAE 0 Real Time Clock Alarm enableMINUTES6 0 Real Time Clock Minutes Bit: 6MINUTES5 0 Real Time Clock Minutes Bit: 5MINUTES4 0 Real Time Clock Minutes Bit: 4MINUTES3 0 Real Time Clock Minutes Bit: 3MINUTES2 0 Real Time Clock Minutes Bit: 2MINUTES1 0 Real Time Clock Minutes Bit: 1MINUTES0 0 Real Time Clock Minutes Bit: 0RTCAHOUR 0x00 Real Time Clock Alarm Hour [Memory Mapped]RTCAE 0 Real Time Clock Alarm enableHOUR6 0 Real Time Clock Hour Bit: 6HOUR5 0 Real Time Clock Hour Bit: 5HOUR4 0 Real Time Clock Hour Bit: 4HOUR3 0 Real Time Clock Hour Bit: 3HOUR2 0 Real Time Clock Hour Bit: 2HOUR1 0 Real Time Clock Hour Bit: 1HOUR0 0 Real Time Clock Hour Bit: 0RTCADOW 0x00 Real Time Clock Alarm Day of week [Memory Mapped]RTCAE 0 Real Time Clock Alarm enableDOW6 0 Real Time Clock DOW Bit: 6DOW5 0 Real Time Clock DOW Bit: 5DOW4 0 Real Time Clock DOW Bit: 4DOW3 0 Real Time Clock DOW Bit: 3DOW2 0 Real Time Clock DOW Bit: 2DOW1 0 Real Time Clock DOW Bit: 1DOW0 0 Real Time Clock DOW Bit: 0RTCADAY 0x00 Real Time Clock Alarm Day [Memory Mapped]RTCAE 0 Real Time Clock Alarm enableDAY6 0 Real Time Clock Day Bit: 6DAY5 0 Real Time Clock Day Bit: 5DAY4 0 Real Time Clock Day Bit: 4DAY3 0 Real Time Clock Day Bit: 3DAY2 0 Real Time Clock Day Bit: 2DAY1 0 Real Time Clock Day Bit: 1DAY0 0 Real Time Clock Day Bit: 0