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.

MSP430FR2355: RTCMOD register not loading?

Part Number: MSP430FR2355

    RTCMOD = (int)((float)(32768 / divA[div]) * s) - 1;  //upper 8 bits are seconds that IRQ will occur
    RTCCTL |= RTCSS__XT1CLK | RTCSR | (div + 4) << 8;

I set a breakpoint after the last line of code seen above.  I look at the RTCMOD register and it is showing me 20479 (decimal).  The value of the expression when copied into the expression window is 255.  Can someone tell me why RTCMOD doesn't seem to be loading the calculated value?

Thanks

**Attention** This is a public forum