English
Language : 

SAM4L Datasheet, PDF (209/1185 Pages) ATMEL Corporation – ATSAM ARM-based Flash MCU
ATSAM4L4/L2
222. The RC80M is automatically switched off in certain sleep modes to reduce power consump-
tion, as described in Section 10. ”Power Manager (PM)” on page 102.
13.6.7
Generic Clock Prescalers
Rev: 1.0.2.0
The generic clocks can be sourced by two special prescalers to increase the generic clock fre-
quency precision.
These prescalers are named the High Resolution Prescaler (HRP) and the Fractional Prescaler
(FP).
13.6.7.1
High Resolution Prescaler
The HRP is a 24-bit counter that can generate a very accurate clock waveform. The clock
obtained has 50% duty cycle.
Figure 13-8. High Resolution Prescaler Generation
Divider
Mask HRPCLK
CKSEL
HRCOUNT
HRPEN
13.6.7.2
The HRP is enabled by writing a one to the High Resolution Prescaler Enable (HRPEN) bit in the
High Resolution Prescaler Control Register (HRPCR).
The user can select a clock source for the HRP by writing to the Clock Selection (CKSEL) field of
the HRPCR register.
The user must configure the High Resolution Prescaler Clock (HRPCLK) frequency by writing to
the High Resolution Count (HRCOUNT) field of the High Resolution Counter (HRPCR) register.
This results in the output frequency:
fHRPCLK = fSRC / (2*(HRCOUNT+1))
The CKSEL field can not be changed dynamically but the HRCOUNT field can be changed on-
the-fly.
Fractional Prescaler
The FP generates a clock whose average frequency is more precise than the HRP. However,
this clock frequency is subject to jitter around the target clock frequency. This jitter influence can
be decreased by dividing this clock with the GCLK divider. Moreover the duty cycle of this clock
is not precisely 50%.
42023C–SAM–02/2013
209