Part Number: EZ430-F2013
Tool/software: Code Composer Studio
Hello,
I am working on a demo code for ez430-fr2500-seh kit. All works fine, but I want to add my own alterations. One of them is to add Timer_A service, but having set breakpoint in ISR the program doesn't reach it.
My code (I used the exaqmple of timer_b setting basicly, as it should work the same):
TACCTL0 = CCIE;
TACCR0 = sec5;
TACTL = TASSEL_2 + MC_1;
....
#pragma vector=TIMERA0_VECTOR
__interrupt void TimerA_ISR (void)
{
//something... (and a breakpoint)
}
When it comes to the timer_b:
TBCCTL0 = CCIE; // TBCCR0 interrupt enabled
TBCCR0 = WakeupPeriod; // ~10 sec (=15000/(12000/8))
TBCTL = TBSSEL_1 + MC_1 + ID_3; // ACLK, upmode, Divider = 8
...
#pragma vector=TIMERB0_VECTOR
__interrupt void TimerB_ISR (void)
{
__bic_SR_register_on_exit(LPM3_bits); // Clear LPM3 bit from 0(SR)
}