
32
8024A–AVR–04/08
ATmega8HVA/16HVA
Bit 7 – CLKPCE: Clock Prescaler Change Enable
The CLKPCE bit must be written to logic one to enable change of the CLKPS bits. The CLKPCE
bit is only updated when the other bits in CLKPR are simultaneously written to zero. CLKPCE is
cleared by hardware four cycles after it is written or when CLKPS bits are written. Rewriting the
CLKPCE bit within this time-out period does neither extend the time-out period, or clear the CLK-
PCE bit.
Bit 1:0 – CLKPS1:0: Clock Prescaler Select Bit 1..0
These bits define the division factor between the selected clock source and the internal system
clock. These bits can be written run-time to vary the clock frequency to suit the application
requirements. As the divider divides the master clock input to the MCU, the speed of all synchro-
nous peripherals is reduced when a division factor is used. The division factors are given in
ongoing VADC conversion.
Note:
1. Reserved values should not be written to CLKPS1..0.
Note:
1. When changing Prescaler value, the VADC Prescaler will automatically change frequency of
the VADC clock and abort any ongoing conversion.
9.13.4
OSICSR – Oscillator Sampling Interface Control and Status Register
Bits 7:5,3:2 – RES: Reserved bits
These bits are reserved bits in the ATmega8HVA/16HVA and will always read as zero.
Table 9-3.
System Clock Prescaler Select
CLKPS1
CLKPS0
Clock Division Factor
00
01
2
10
4
11
8
Table 9-4.
CLKPS1
CLKPS0
VADC Division Factor
00
Reserved
01
4
10
2
11
1
Bit
7
6
5
4
3
2
1
0
–
OSISEL0
–
OSIST
OSIEN
OSICSR
Read/Write
R
R/W
R
R/W
Initial Value
0