EmbeddedRelated.com
Forums

Using the Timer A for an RTC

Started by ken_and_wanda August 2, 2004
Here's my C code:



My problem is that unless I uncomment out the

_BIS_SR(CPUOFF + GIE) statement which puts the MSP430 into LPM0, I
get no Timer A interrupt. I don't want to put the MSP430 into LPM0
because I want the RTC to be running in the background while the
MSP430 is doing other things.

Beginning Microcontrollers with the MSP430

You still need interrupts globally enabled even if you don't turn off the
CPU.

Have you tried _BIS_SR(GIE); or _EINT(); etc.?

--bruce
Bruce,

Thanks, no I haven't tried _BIS_SR(GIE). I get it now.

Ken