E2E Maintenance Alert: Please be aware that we are updating our site today at 3 PM CST. During this time, users will be able to browse current site content and perform searches to find your solutions. We expect the Maintenance to be completed by 7 PM CST.
TI E2E Community
MSP430 Ultra-Low Power 16-bit Microcontroller Forum
RTC Calibration Issue
I am using MSP430F5418 with IAR EW 5.10.
I am trying to output the RTCCLK signal from MSP's 29th pin with a frequency of 1Hz.
When I output the signal it is coming through the port.
But after I re-writing the RTC time, the signal stopped.
I tried to re-enable it, but it didn't worked.
Can anybody tell me what the reason is??
I am using the Work-around code provided by TI for setting RTC time.
My RTC configuration is:
RTCCTL01 |= RTCHOLD;
RTCCTL01 |= RTCMODE + RTCTEV_0 + RTCRDYIE + RTCTEVIE;
P2DIR |= BIT4; P2SEL |= BIT4;
RTCCTL23 = RTCCALF1 | RTCCAL0;
RTCCTL01 &= ~(RTCHOLD);
I also tried with removing dint and eint statements in the work-around code, but still it is not working.
Today I changed the time in each 10 second instead of one second.
So the signal is coming.
Can anyone tell me why??
Did you check the errata sheet for the 54xx (non-A)?
There is a problem with writing the RTC registers: It requires a precisely timed code or write access to one register will partly rewrite the others. There's a small library available from TI that uses properly aligned assembly code for writing the RTC registers.
_____________________________________Before posting bug reports or ask for help, do at least quick scan over this article. It applies to any kind of problem reporting. On any forum. And/or look here.If you cannot discuss your problem in the public, feel free to start a private conversation: click on my name and then 'start conversation'. But please do so only if you really cannot do it in a public thread, as I usually read all threads. And I prefer to answer where others can profit from it (or contribute to it) too.
I am using the library available from TI to modify the registers.
HariI am using the library available from TI to modify the registers.
Thank you your reply
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.