Atmel ARM-Based Evaluation Kit for SAM4S16C, 32-Bit ARM® Cortex® Microcontroller ATSAM4S-WPIR-RD ATSAM4S-WPIR-RD Data Sheet

Product codes
ATSAM4S-WPIR-RD
Page of 1231
839
SAM4S Series [DATASHEET]
Atmel-11100G-ATARM-SAM4S-Datasheet_27-May-14
37.6.11.1WAVSEL = 00
When WAVSEL = 00, the value of TC_CV is incremented from 0 to 2
16
-1. Once 2
16
-1 has been reached, the value 
of TC_CV is reset. Incrementation of TC_CV starts again and the cycle continues. See 
.
An external event trigger or a software trigger can reset the value of TC_CV. It is important to note that the trigger 
may occur at any time. 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 in TC_CMR) and/or disable the counter clock (CPCDIS = 1 in 
TC_CMR).
Figure 37-7.
WAVSEL = 00 without trigger
Figure 37-8.
WAVSEL= 00 with Trigger
Time
Counter Value
R
C
R
B
R
A
TIOB
TIOA
Counter cleared by compare match with 0xFFFF
0xFFFF
Waveform Examples
Time
Counter Value
R
C
R
B
R
A
TIOB
TIOA
Counter cleared by compare match with 0xFFFF
0xFFFF
Waveform Examples
Counter cleared by trigger