English
Language : 

SAM7X128_14 Datasheet, PDF (386/662 Pages) ATMEL Corporation – ARM-based Flash MCU
32.5.11.3 WAVSEL = 01
When WAVSEL = 01, the value of TC_CV is incremented from 0 to 0xFFFF. Once 0xFFFF is reached, the value of
TC_CV is decremented to 0, then re-incremented to 0xFFFF and so on. See Figure 32-11.
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 32-12.
RC Compare cannot be programmed to generate a trigger in this configuration.
At the same time, RC Compare can stop the counter clock (CPCSTOP = 1) and/or disable the counter clock (CPCDIS =
1).
Figure 32-11. WAVSEL = 01 Without Trigger
Counter Value
Counter decremented by compare match with 0xFFFF
0xFFFF
RC
RB
RA
Waveform Examples
TIOB
Time
TIOA
Figure 32-12. WAVSEL = 01 With Trigger
Counter Value
Counter decremented by compare match with 0xFFFF
0xFFFF
RC
Counter decremented
by trigger
RB
Counter incremented
by trigger
RA
Waveform Examples
TIOB
Time
TIOA
SAM7X Series [DATASHEET]
6120K–ATARM–11-Feb-14
386