English
Language : 

SAM4L Datasheet, PDF (452/1185 Pages) ATMEL Corporation – ATSAM ARM-based Flash MCU
ATSAM4L4/L2
19.5.8
If ADD is ‘1’, the prescaler frequency is increased:
⎛
⎞
fTUNED=
⎜
f0 ⎜⎜ 1
⎝
+
---------------------------------------1----------------------------------------⎟⎟
roundup
⎛
⎝
V-----A-2---L5---6U-----E--⎠⎞
⋅
(2EXP)
–
1⎠⎟
Note that for these formulas to be within an error of 0.01%, it is recommended that the prescaler
bit that is used as the clock for the counter (selected by CR.PSEL) or to trigger the periodic inter-
rupt (selected by PIRn.INSEL) be bit 6 or higher.
Synchronization
As the prescaler and counter operate asynchronously from the user interface, the AST needs a
few clock cycles to synchronize the values written to the CR, CV, SCR, WER, EVE, EVD, PIRn,
ARn, and DTR registers. The Busy bit in the Status Register (SR.BUSY) indicates that the syn-
chronization is ongoing. During this time, writes to these registers will be discarded and reading
will return a zero value.
Note that synchronization takes place also if the prescaler is clocked from CLK_AST.
42023C–SAM–02/2013
452