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.

CCS/CC430F6137: RTC Calender Mode

Part Number: CC430F6137

Tool/software: Code Composer Studio

Dear Sir,  

             I'm using CC430F6137 IC. I want RTC Calendar mode to use update date and time. already download your example header and source files from this linq (http://www.ti.com/lit/zip/slaa290) . I'm using ccs

compiler, when i will call incrementSeconds(); function inside timer interrupt, I will check debug code when reach this line (incrementSeconds();) code s stopped. where is my mistake. how to read Current date and Time

and send via UART. could you please solve my issue sir. 

  • Hi 

    Which demo code do you use?

    Could you share your code?

    How do you generate the 1 second interrupt?

    Best regards

    Gary

  • Dear Sir, 

           I'm using timer and RTC library files, RTC library files download from  this linq (http://www.ti.com/lit/zip/slaa290). bellow code is 1 sec interrupt code. how to read date and time. please send soon sir. 


    #include <msp430.h>
    #include "RTC_Calendar.h"
    #include "RTC.h"


    extern void incrementSeconds(void);


    int main(void)
    {
    WDTCTL = WDTPW + WDTHOLD; // Stop WDT
    setTime( 0x12, 0, 0, 0); // initialize time to 12:00:00 AM
    P1DIR |= 0x01; // P1.0 output
    TA1CCTL0 = CCIE; // CCR0 interrupt enabled
    TA1CCR0 = 32768-1;
    TA1CTL = TASSEL_1 + MC_1 + TACLR; // ACLK, upmode, clear TAR


    __bis_SR_register(GIE); //  enable interrupts
    __no_operation(); // For debugger
    while(1)
    {
    P1OUT ^= 0x01;
    }
    }

    // Timer A0 interrupt service routine
    #if defined(__TI_COMPILER_VERSION__) || defined(__IAR_SYSTEMS_ICC__)
    #pragma vector=TIMER1_A0_VECTOR
    __interrupt void TIMER1_A0_ISR(void)
    #elif defined(__GNUC__)
    void __attribute__ ((interrupt(TIMER1_A0_VECTOR))) TIMER1_A0_ISR (void)
    #else
    #error Compiler not supported!
    #endif
    {
    incrementSeconds();
    // P1OUT ^= 0x01; // Toggle P1.0
    // __bic_SR_register_on_exit(LPM3_bits);
    }RTC DATASHEET.pdf