attiny167-esxz ATMEL Corporation, attiny167-esxz Datasheet - Page 24

no-image

attiny167-esxz

Manufacturer Part Number
attiny167-esxz
Description
8-bit Avr 8-bit Microcontroller Microcontroller With 16k Bytes In-system Programmable Flash And Lin Controller
Manufacturer
ATMEL Corporation
Datasheet
4.1.1
4.1.2
4.1.3
4.1.4
4.1.5
4.2
24
Clock Sources
ATtiny167
CPU Clock – clk
I/O Clock – clk
Flash Clock – clk
Asynchronous Timer Clock – clk
ADC Clock – clk
I/O
The CPU clock is routed to parts of the system concerned with the AVR core operation. Exam-
ples of such modules are the General Purpose Register File, the Status Register and the Data
memory holding the Stack Pointer. Halting the CPU clock inhibits the core from performing gen-
eral operations and calculations.
The I/O clock is used by the majority of the I/O modules, like synchronous Timer/Counter. The
I/O clock is also used by the External Interrupt module, but note that some external interrupts
are detected by asynchronous logic, allowing such interrupts to be detected even if the I/O clock
is halted.
The Flash clock controls operation of the Flash interface. The Flash clock is usually active simul-
taneously with the CPU clock.
The asynchronous timer clock allows the asynchronous Timer/Counter to be clocked directly
from an external clock or an external low frequency crystal. The dedicated clock domain allows
using this Timer/Counter as a real-time counter even when the device is in sleep mode.
The ADC is provided with a dedicated clock domain. This allows halting the CPU and I/O clocks
in order to reduce noise generated by digital circuitry. This gives more accurate ADC conversion
results.
The device has the following clock source options, selectable by Flash Fuse bits (default) or by
the CLKSELR register (dynamic clock switch circuit) as shown below. The clock from the
selected source is input to the AVR clock generator, and routed to the appropriate modules.
Table 4-1.
Note:
The various choices for each clocking option are given in the following sections.
CPU
Device Clocking Option
External Clock
Calibrated Internal RC Oscillator 8.0 MHz
Watchdog Oscillator 128 kHz
External Low-frequency Oscillator
External Crystal/Ceramic Resonator (0.4 - 0.9 MHz)
External Crystal/Ceramic Resonator (0.9 - 3.0 MHz)
External Crystal/Ceramic Resonator (3.0 - 8.0 MHz)
External Crystal/Ceramic Resonator (8.0 - 16.0 MHz)
ADC
FLASH
1. For all fuses “1” means unprogrammed while “0” means programmed.
2. Flash Fuse bits.
3. CLKSELR register bits.
Device Clocking Options Select
ASY
(1)
vs. PB4 and PB5 Functionality
CKSEL3..0
CSEL3..0
0000
0010
0011
01xx
100x
101x
110x
111x
b
b
b
b
b
b
b
b
(3)
(2)
XTAL1
XTAL1
XTAL1
XTAL1
XTAL1
CLKI
PB4
I/O
I/O
7728A–AUTO–07/08
CLKO - I/O
CLKO - I/O
CLKO - I/O
XTAL2
XTAL2
XTAL2
XTAL2
XTAL2
PB5

Related parts for attiny167-esxz