Part Number: MSP430FR2422
I am trying to configure the Real Time Counter in the above subject. The manual says prior to enabling to clear the RTCIV by doing a read. I have a call to a function and within that function I have
a variable
char junk;
Just before enabling the IRQ I have the assignment:
junk = RTCIV;
but as I watch the register with a breakpoint and by stepping I never see this get cleared. Can someone tell me what I am doing wrong? The compiler gives me a warning saying the variable is never used. I have optimizations turned to off on the project compiler.