ATtiny15L
23
Tunable Internal RC Oscillator
The internal RC oscillator provides a fixed 1.6 MHz clock (nominal at 5V and 25
°
C). This internal clock is always the system
clock of the ATtiny15L. This oscillator can be calibrated by writing the calibration byte (see page 48) to the OSCCAL
register.
The System Clock Oscillator Calibration Register – OSCCAL
Writing the calibration byte to this address will trim the internal oscillator frequency in order to remove process variations.
When OSCCAL is zero (initial value), the lowest available frequency is chosen. Writing non-zero values to this register will
increase the frequency of the internal oscillator. Writing $FF to the register selects the highest available frequency.
Internal PLL for Fast Peripheral Clock Generation
The internal PLL in ATtiny15L generates a clock frequency that is 16x multiplied from the RC oscillator system clock. If the
RC oscillator frequency is the nominal 1.6 MHz, the fast peripheral clock is 25.6 MHz. The fast peripheral clock, or a clock
prescaled from that, can be selected as the clock source for Timer/Counter1.
The PLL is locked on the tunable internal RC oscillator and adjusting the tunable internal RC oscillator via the OSCCAL
register will adjust the fast peripheral clock at the same time. Timer1 may malfunction if the internal RC oscillator is
adjusted beyond 1.75 MHz.
It is recommended not to take the OSCCAL adjustments to a higher frequency than 1.75 MHz in order to keep proper oper-
ation of all chip functions.
Bit
7
6
5
4
3
2
1
0
$31
CAL7
CAL6
CAL5
CAL4
CAL3
CAL2
CAL1
CAL0
OSCCAL
Read/Write
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Initial value
0
0
0
0
0
0
0
0