BAT32G1x9 user manual | Chapter 9 Timer C
305 / 1149
Rev.1.02
9.4.2.1
Select the signal of the Timer M as the setting and action when triggered
1)
Reset and start setup steps for the Timer C count when TRIG_MD_HW=0:
a)
Select the Timer M output signal as the trigger source for counting start: TCCR1. START_MD=1
b)
Select the trigger function of Timer C: TCCR1. TRIG_MD_HW=0
c)
Select Timer M_0/1 for the trigger signal: TCCR1. TC_TRIG=1/0
d)
Timer C count start: TCCR2. TSTART=1
Fig. 9-8 Example of Timer C count reset and start (TRIG_MD_HW=0).
TC counter source
TCCR1.START_MD
TCCR1.TM_TRIG
TCCR1.TRIG_MD_HW
start signal from TM0
TCCR2.TSTART
TC counting
TM counting
2)
When TRIG_MD_HW=1, the start setup step for the Timer C count:
a)
Select the Timer M output signal as the trigger source for counting start: TCCR1. START_MD=1
1.
2. Select the trigger function of Timer C: TCCR1. TRIG_MD_HW=1
3. Select Timer M_0/1 for the trigger signal: TCCR1. TC_TRIG=1/0
4. Timer C count start: TCCR2. TSTART=1
Fig. 9-9 Example of Timer C counting starting (TRIG_MD_HW =1).
TC counting source
TCCR1.START_MD
TCCR1.TM_TRIG
TCCR1.TRIG_MD_HW
start signal from TM0
TCCR2.TSTART
TC counting
TM counting