English
Language : 

SAM7S256_14 Datasheet, PDF (460/775 Pages) ATMEL Corporation – ARM-based Flash MCU
33.5.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 33-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 33-14.
RC Compare can stop the counter clock (CPCSTOP = 1) and/or disable the counter clock (CPCDIS = 1).
Figure 33-13. WAVSEL = 11 Without Trigger
Counter Value
0xFFFF
RC
Counter decremented by compare match with RC
RB
RA
Waveform Examples
TIOB
Time
TIOA
Figure 33-14. WAVSEL = 11 With Trigger
Counter Value
0xFFFF
Counter decremented by compare match with RC
RC
Counter decremented
by trigger
RB
Counter incremented
by trigger
RA
Waveform Examples
TIOB
Time
TIOA
SAM7S Series [DATASHEET]
6175M–ATARM–26-Oct-12
460