English
Language : 

SAMA5D3_14 Datasheet, PDF (1512/1840 Pages) ATMEL Corporation – ARM-based Embedded MPU
48.6.11.4 WAVSEL = 11
When WAVSEL = 11, the value of TC_CV is incremented from 0 to RC. Once RC is reached, the value of TC_CV is
decremented to 0, then re-incremented to RC and so on. See Figure 48-13.
A trigger such as an external event or a software trigger can modify TC_CV at any time. If a trigger occurs while TC_CV
is incrementing, TC_CV then decrements. If a trigger is received while TC_CV is decrementing, TC_CV then increments.
See Figure 48-14.
RC Compare can stop the counter clock (CPCSTOP = 1) and/or disable the counter clock (CPCDIS = 1).
Figure 48-13.WAVSEL = 11 without Trigger
Counter Value
2n-1
(n = counter size)
RC
Counter decremented by compare match with RC
RB
RA
Waveform Examples
TIOB
Time
TIOA
Figure 48-14.WAVSEL = 11 with Trigger
Counter Value
2n-1
(n = counter size)
RC
RB
RA
Counter decremented by compare match with RC
Counter decremented
by trigger
Counter incremented
by trigger
Waveform Examples
TIOB
Time
TIOA
SAMA5D3 Series [DATASHEET] 1512
11121D–ATARM–03-Apr-14