- //Set to high voltage.
- DAC12_0DAT = glitchH;
-
- //Reconfigure TACTL.
- TACTL=0; //Clear dividers.
- TACTL|=TACLR; //Clear TimerA Config
- TACTL|=
- TASSEL_SMCLK | //SMCLK source,
- MC_1; //Count up to CCR0
- //TAIE; //Enable Interrupt
- CCTL0 = CCIE; // CCR0 interrupt enabled
- CCR0 = glitchcount;