English
Language : 

SAM4L Datasheet, PDF (806/1185 Pages) ATMEL Corporation – ATSAM ARM-based Flash MCU
ATSAM4L4/L2
30.6.3.2
WAVSEL = 0
When CMRn.WAVSEL is zero, the value of CVn is incremented from 0 to 0xFFFF. Once
0xFFFF has been reached, the value of CVn is reset. Incrementation of CVn starts again and
the cycle continues. See Figure 30-5 on page 806.
An external event trigger or a software trigger can reset the value of CVn. It is important to note
that the trigger may occur at any time. See Figure 30-6 on page 807.
RC Compare cannot be programmed to generate a trigger in this configuration. At the same
time, RC Compare can stop the counter clock (CMRn.CPCSTOP = 1) and/or disable the counter
clock (CMRn.CPCDIS = 1).
Figure 30-5. WAVSEL= 0 Without Trigger
Counter Value
0xFFFF
Counter cleared by compare match with
0xFFFF
RC
RB
RA
Waveform Examples
TIOB
TIOA
Time
42023C–SAM–02/2013
806