1) The TAIFG (TIMER0_A1) interrupt fires when TAR rolls over. The CCR0:CCIFG (TIMER0_A0) interrupt fires when TAR==CCR0. 2) Two separate functions: The CCR0 interrupt always fires when TAR==CCR0. If running in Up mode, it also resets TAR. 3) but the difference between these values is always 50000 clocks, which gives a fixed span between (CCR0) interrupts. Doing this allows using the timer for multiple things. If you need Continuous mode for other reasons, this technique provides a semblance of the Up mode behavior.
↧