I see RTCPS displayed under Registers (Code Composer 4) -> RTC__Real_Time_Clock -> RTCPS. I don't see a detailed description in the Msp430x5xx & 6xx User Guide Manual ... slau208h. Is this msec in an unsigned int format?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
It is located on page 589 ->590 of the latest user guide. It is a prescaler of the input clock. So the time based will be based on your input clock divided by the prescaler that you would choose.
http://www.ti.com/lit/ug/slau208k/slau208k.pdf
-Jason
Hi,
i am not really sure what you are trying to do here. Are you trying to read the RT0PS directly? If yes, what would you do that?
In my opinion, since the RT0PS is sourced directly from 32768 Hz input in calendar mode, the content of RT0PS in milliseconds should be: N * 1000 / 32768 ms.
Anyway, from the current SLAU208K User's Guide chapter 22.2.2.1 you can find the information:
The prescale dividers, RT0PS and RT1PS, are automatically configured to provide a 1-s clock interval for the RTC_A. RT0PS is sourced from ACLK. ACLK must be set to 32768 Hz (nominal) for proper RTC_A calendar operation. RT1PS is cascaded with the output ACLK/256 of RT0PS. The RTC_A is sourced with the /128 output of RT1PS, thereby providing the required 1-s interval.
Hope this helps.
I understand. The block diagram on page 566 was misinterpreted ... the output of RT0PS is not 100, but the overflow after 111.
A break point in the ISR that breaks every second (calendar mode) shows RTCPS toggling between 0x0080 and 0x8080 => 0.0039 secs and 1.0039 secs.
**Attention** This is a public forum