Timer_A, Toggle P1.0, CCR0 Up Mode ISR, DCO SMCLK
// Description: Toggle P1.0 using software and TA_0 ISR. Timer_A is
// configured for up mode, thus the timer overflows when TAR counts to CCR0.
1 void Timer0_Init(void) 2 { 3 4 CCTL0 = CCIE; // CCR0 interrupt enabled 5 CCR0 = 5000; //frequency SMCLK/5000*2; 6 TACTL = TASSEL_2 + MC_1; // SMCLK, upmode 7 }