Atmel SAM4L Xplained Pro Evaluation Kit Atmel ATSAM4L-XPRO ATSAM4L-XPRO Data Sheet

Product codes
ATSAM4L-XPRO
Page of 1204
805
42023E–SAM–07/2013
ATSAM4L8/L4/L2
Figure 30-1. Clock Selection
30.6.1.4
Clock control
The clock of each counter can be controlled in two different ways: it can be enabled/disabled
and started/stopped. See 
• The clock can be enabled or disabled by the user by writing to the Counter Clock 
Enable/Disable Command bits in the Channel n Clock Control Register (CCRn.CLKEN and 
CCRn.CLKDIS). In Capture mode it can be disabled by an RB load event if the Counter Clock 
Disable with RB Loading bit in CMRn is written to one (CMRn.LDBDIS). In Waveform mode, 
it can be disabled by an RC Compare event if the Counter Clock Disable with RC Compare 
bit in CMRn is written to one (CMRn.CPCDIS). When disabled, the start or the stop actions 
have no effect: only a CLKEN command in CCRn can re-enable the clock. When the clock is 
enabled, the Clock Enabling Status bit is set in SRn (SRn.CLKSTA).
• The clock can also be started or stopped: a trigger (software, synchro, external or compare) 
always starts the clock. In Capture mode the clock can be stopped by an RB load event if the 
Counter Clock Stopped with RB Loading bit in CMRn is written to one (CMRn.LDBSTOP). In 
Waveform mode it can be stopped by an RC compare event if the Counter Clock Stopped 
with RC Compare bit in CMRn is written to one (CMRn.CPCSTOP). The start and the stop 
commands have effect only if the clock is enabled.
TIMER_CLOCK5
XC2
TCCLKS
CLKI
BURST
1
Selected
Clock
XC1
XC0
TIMER_CLOCK4
TIMER_CLOCK3
TIMER_CLOCK2
TIMER_CLOCK1