ATMEGA325-16AJ ATMEL [ATMEL Corporation], ATMEGA325-16AJ Datasheet - Page 223

no-image

ATMEGA325-16AJ

Manufacturer Part Number
ATMEGA325-16AJ
Description
8-bit Microcontroller with In-System Programmable Flash
Manufacturer
ATMEL [ATMEL Corporation]
Datasheet
Scanning the Clock Pins
2570A–AVR–09/04
The AVR devices have many clock options selectable by fuses. These are: Internal RC
Oscillator, External Clock, (High Frequency) Crystal Oscillator, Low-frequency Crystal
Oscillator, and Ceramic Resonator.
Figure 104 shows how each Oscillator with external connection is supported in the scan
chain. The Enable signal is supported with a general Boundary-scan cell, while the
Oscillator/clock output is attached to an observe-only cell. In addition to the main clock,
the timer Oscillator is scanned in the same way. The output from the internal RC Oscilla-
tor is not scanned, as this Oscillator does not have external connections.
Figure 104. Boundary-scan Cells for Oscillators and Clock Options
Table 93 summaries the scan registers for the external clock pin XTAL1, oscillators with
XTAL1/XTAL2 connections as well as 32kHz Timer Oscillator.
Table 93. Scan Signals for the Oscillator
Notes:
Enable Signal
EXTCLKEN
OSCON
OSC32EN
From Digital Logic
1. Do not enable more than one clock source as main clock at a time.
2. Scanning an Oscillator output gives unpredictable results as there is a frequency drift
3. The clock configuration is programmed by fuses. As a fuse is not changed run-time,
between the internal Oscillator and the JTAG TCK clock. If possible, scanning an
external clock is preferred.
the clock configuration is considered fixed for a given application. The user is advised
to scan the same clock option as to be used in the final system. The enable signals
are supported in the scan chain because the system logic can disable clock options
in sleep modes, thereby disconnecting the Oscillator pins from the scan path if not
provided.
Previous
From
Cell
ShiftDR
0
1
Scanned Clock Line
EXTCLK (XTAL1)
OSCCK
OSC32CK
ClockDR
D
UpdateDR
Q
Next
Cell
To
D
G
Q
EXTEST
ATmega325/3250/645/6450
0
1
XTAL1/TOSC1
Clock Option
External Clock
External Crystal
External Ceramic Resonator
Low Freq. External Crystal
(1)(2)(3)
ENABLE
Oscillator
XTAL2/TOSC2
OUTPUT
Previous
From
Cell
ShiftDR
0
1
ClockDR
D
FF1
Scanned Clock
Line when not
Q
Next
Cell
To
Used
1
0
1
To System Logic
223

Related parts for ATMEGA325-16AJ