Other Parts Discussed in Thread: MSP430F6638
Hi, for the below example code, when executed on my MSP430F6638 rev A part I would expect that the CCIFG for the TA0CCTL0 to be asserted after a compare event occurs.... instead I see that the CCIFG flags for TA0CCTL1 thru TA0CCTL6 are asserted(1) and TA0CCTL0 CCIFG flag = 0... Is there an explanation for this??
I'm using CCS 4.2.4.00033 and the MSP- TS430PZ100USB eval board... Any help would be appreciated, Thanks....
#include
<msp430f6638.h>
void
main(void)
{
WDTCTL = WDTPW + WDTHOLD;
// Stop WDT
P1DIR |= 0x01;
// P1.0 output
TA0CCTL0 = CCIE;
// CCR0 interrupt enabled
TA0CCR0 = 50000; TA0CTL = TASSEL_2 + MC_1 + TACLR;
, clear TARupmode// SMCLK,
__bis_SR_register(LPM0_bits + GIE);
// Enter LPM0, enable interrupts
__no_operation();
// For debugger
} // Timer0 A0 interrupt service routine
vector=TIMER0_A0_VECTOR pragma#
__interrupt
void TIMER0_A0_ISR(void)
{ P1OUT ^= 0x01;
// Toggle P1.0
}