Atmel Evaluation Kit for the SAM4E Series of Flash Microcontrollers ATSAM4E-EK ATSAM4E-EK Data Sheet

Product codes
ATSAM4E-EK
Page of 1506
971
SAM4E [DATASHEET]
Atmel-11157D-ATARM-SAM4E16-SAM4E8-Datasheet_12-Jun-14
39.6.12.3     WAVSEL = 01
When WAVSEL = 01, the value of TC_CV is incremented from 0 to 2
32
-1. Once 2
32
-1 is reached, the value of
TC_CV is decremented to 0, then re-incremented to 2
32
-1 and so on. See 
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 
.
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 39-12. WAVSEL = 01 without Trigger
Figure 39-13. WAVSEL = 01 with Trigger
Time
Counter Value
R
C
R
B
R
A
TIOB
TIOA
Counter decremented by compare match with 0xFFFF
0xFFFF
Waveform Examples
Time
Counter Value
TIOB
TIOA
Counter decremented by compare match with 0xFFFF
0xFFFF
Waveform Examples
Counter decremented 
by trigger
Counter incremented 
by trigger
R
C
R
B
R
A