MSP430 Timer Interrupt Example

MSP430G2553 TIMER INTERRUPT EXAMPLE

This example shows how the timer interrupts can be used to generate precision square waves.

Two interrupt vectors are associated with the 16-bit Timer_A module.

The TACCR0 CCIFG flag has the highest Timer_A interrupt priority and has a dedicated interrupt vector.

The TACCR1 CCIFG, TACCR2 CCIFG, and TAIFG flags are prioritized and combined to source a single interrupt vector. The interrupt vector register TAIV is used to determine which flag requested an interrupt.

Note: An external 4 MHz oscillator was used to clock the M430G2553.

 

TIMER 0 INTERRUPT OUTPUTS

 

TIMER 1 INTERRUPT OUTPUTS

 

END POST

Leave a Reply

Your email address will not be published. Required fields are marked *