28
4958B–AUTO–11/10
Atmel ATA6285/ATA6286 [Preliminary]
3.7
Clock Generation
3.7.1
Clock Module
The ATA6289 contains a clock module with two internal oscillator types:
FRC: Fast running, programmable, and calibrated RC-oscillator (1MHz/4MHz ±10%)
SRC: Slowly running and calibrated RC-oscillator (90kHz ±10%)
PC1/ECIN0- pin and PD4/ECIN1- pin can be used as input for two different external clocks and
PC1/CLKO-pin as output for the divided system clock. All of these oscillator types and external
input clocks can be selected to generate the system clock (CLK). A special feature of the clock
management is capability of switching between these different clock sources during run time.
This new feature has the advantage, that now the controller can start operation after wakeup
signal with the calibrated internal RC-oscillator and can switch to an external clock as system
clock. A synchronization stage avoids too short clock periods if the clock source or the clock
speed is changed. If an external input clock is selected, a supervisor circuit monitors the external
input and switches automatically to an internal RC-oscillator clock if the external clock source
fails. The ECF-bit indicates the condition of the external input clock monitoring circuit in the
CMSR register. The corresponding monitoring interrupt is executed, if the accessory interrupt
enable bit is set.
In applications that do not require exact timing, it is possible to use the fully integrated RC-oscil-
lators. Both RC-oscillators center frequency tolerance can be calibrated by VCC = 3V/25°C
within ±1% accuracy. The SRC and the Timer0 can work together as a ultra low power Watch-
dog/Interval timer stage.
The clock module is programmable via software with the clock management control register
(CMCR) and the clock prescaler register (CLKPR). The required oscillator configuration can be
selected with the CMM[1..0] bits in the CMCR-register. A system clock prescaler contains a pro-
grammable 7-bit divider stage. This stage divide the system clock by setting the Clock Prescaler
Register (CLKPR), and allows the adjustment of the system clock speed (CLK) and additionally
also the timer clock speed (CLT). This can be used with all clock source options, and it will affect
the clock frequency of the CPU and all synchronous peripherals. CLK
I/O, CLKCPU, and CLKFlash
Figure 3-11. Clock Module Unit
SRC-Osc.(Callibrated)
External Clock
Stop
CMSR Register
Fuse option bits
Control
ECF
Stop
Clock Decoder
and
Monitoring
System Clock
Prescaler
FRC
CLK
CLT
SRC
PD4
(ECIN1)
CL
ECL
SRC
FRC-Osc.(Callibrated) Stop
PC0
(ECIN0)
PC1
(CLKO)
CMCR Register
CLKPR Register