i am using msp430f5438. i have made a code to implement the UP mode in TIMER 0 module of the mcu. my code is :-
;******************************************************************************
; Description:- This program further implements the UP mode of Timers.
; Here we use use interrupts at both TAxCCR0 and TA0IFG;
;******************************************************************************
#include <msp430x54x.h>
RSEG CSTACK
;...............................................................................
RSEG CODE
;...............................................................................
RESET mov.w #SFE(CSTACK),SP ;Initialise TOS
mov.w #WDTPW + WDTHOLD,&WDTCTL ;Stop WatchDog
bis.b #0FFh,&P1DIR ; set P1 to o/p mode
mov.b #00h,&P1OUT ;make P1 low
mov.w #TASSEL_2 + MC_1 + TACLR + TAIE,&TA0CTL ;configure Timer0
mov.w #CCIE,&TA0CCTL0
mov.w #40000,&TA0CCR0
bis.w #LPM1 + GIE,SR ;enter LPM1 and enable general
;interrupts
nop ; For Debugger
;...............................................................................
TIMER0_A1_ISR
;...............................................................................
xor.b #BIT1,&P1OUT
wait1 mov.w #50000,R13
L2 dec.w R13
jnz L2
RETI
;...............................................................................
TIMER0_A0_ISR
;...............................................................................
xor.b #BIT0,&P1OUT
wait mov.w #50000,R12
L1 dec.w R12
jnz L1
RETI
;...............................................................................
COMMON INTVEC ;Interrupt-Vectors
;...............................................................................
ORG TIMER0_A1_VECTOR
DW TIMER0_A1_ISR
ORG TIMER0_A0_VECTOR
DW TIMER0_A0_ISR
ORG RESET_VECTOR
DW RESET
END
in this code the CCIFG interrupt is working but the TA0IFG interrupt is NOT WORKING !! Please help me out !!