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.
main: NOP ; main program
MOV.W #WDTPW+WDTHOLD,&WDTCTL ; Stop watchdog timer
BIS.W #SELMS__VLOCLK, &CSCTL4
BIC.W #OFIFG, &SFRIFG1
BIS.W #SCG0, SR
BIS.W #SCG1, SR
BIC.W #LOCKLPM5, &PM5CTL0 ;Unlock I/O Pins
BIS.B #1h, P1DIR
BIS.W #CCIE, &TA0CCTL0 ;Timer 0 interrupt Enable
MOV.W #1200, &TA0CCR0
BIS.W #TASSEL_1|MC_1, &TA0CTL
BIS.W #CPUOFF + GIE, SR
JMP $ ; jump to current location '$'
TIMER:
XOR.B #1h, P1OUT
reti
COMMON INTVEC
ORG TIMER0_A1_VECTOR
DW TIMER
END
So basically I wanted to have VLO mode on with a timer to make the LED turn off and on every second.
I've been trying to get this to work but it's just telling me interrupt is disabled in Low Power mode, any solution?
**Attention** This is a public forum