BAT32G1x9 user manual | Chapter 9 Timer C
307 / 1149
Rev.1.02
9.4.3
Timer C counts stopped actions
Timer C is in the counting and can be stopped by triggering comparator 1 or by setting the software.
9.4.3.1
Select Comparator 1 as the setting and action when triggered
1.
Select Comparator 1 as the trigger: TCCR2 CMP1_TCR=00
2.
Timer C count starts: TCCR2. TSTART=1
Fig. 9-11: Example of selecting comparator 1 triggering a stop in Timer C
TC counter source
TCCR2.CMP1_TCR
Interrupt signal of
Comparator 1
TCCR2.TSTART
TC counting
9.4.3.2
Settings and actions when the software is triggered
1.
Timer C count starts: TCCR2. TSTART=0
2.
Software Settings TCCR2. The TSTART is 0 and the Timer C count stops