English
Language : 

ATMEGA8U2_14 Datasheet, PDF (37/310 Pages) ATMEL Corporation – 125 Powerful Instructions – Most Single Clock Cycle Execution
Figure 8-6. PLL Clocking System
ATmega8U2/16U2/32U2
XTAL1
XTAL2
XTAL
OSCILLATOR
RC OSCILLATOR
8 MHz
CKSEL3:0
PINDIV
PLOCK PLLE
Lock
Detector
PLL clock
PLL
Prescaler clk
8MHz
To System
Clock Prescaler
PDIV3..0
PLLITM
/48
1
TclkTimer1
T1
0
/2
1
clkUSB
0
PLLUSB
8.11 Register Description
8.11.1 CLKSEL0 – Clock Selection Register 0
Bit
(0xD0)
Read/Write
Initial Value
7
RCSUT1
R/W
0
6
RCSUT0
R/W
0
5
EXSUT1
R/W
0
4
EXSUT0
R/W
0
3
RCE
R/W
2
1
EXTE
-
R/W
R
See Bit Description
0
CLKS
R/W
CLKSEL0
• Bit 7:6 – RCSUT[1:0]: SUT for RC oscillator
These 2 bits are the SUT value for the RC Oscillator. If the RC oscillator is selected by fuse bits,
the SUT fuse are copied into these bits. A firmware change will not have any effect because this
additionnal start-up time is only used after a reset and not after a clock switch.
• Bit 5:4 – EXSUT[1:0]: SUT for External Oscillator / Low Power Oscillator
These 2 bits are the SUT value for the External Oscillator / Low Power Oscillator. If the External
oscillator / Low Power Oscillator is selected by fuse bits, the SUT fuse are copyed into these
bits. The firmware can modify these bits by writing a new value. This value will be used at the
next start of the External Oscillator / Low Power Oscillator.
• Bit 3 – RCE: Enable RC Oscillator
The RCE bit must be written to logic one to enable the RC Oscillator. The RCE bit must be writ-
ten to logic zero to disable the RC Oscillator.
• Bit 2 – EXTE: Enable External Oscillator / Low Power Oscillator
The OSCE bit must be written to logic one to enable External Oscillator / Low Power Oscillator.
The OSCE bit must be written to logic zero to disable the External Oscillator / Low Power
Oscillator.
• Bit 0 – CLKS: Clock Selector
The CLKS bit must be written to logic one to select the External Oscillator / Low Power Oscillator
as CPU clock. The CLKS bit must be written to logic zero to select the RC Oscillator as CPU
clock. After a reset, the CLKS bit is set by hardware if the External Oscillator / Low Power Oscil-
37
7799D–AVR–11/10