Datasheet

Table Of Contents
223
ATmega32A [DATASHEET]
Atmel-8155D-AVR-ATmega32A-Datasheet_02/2014
Figure 25-7. Boundary-scan Cells for Oscillators and Clock Options
Table 24-3 summaries the scan registers for the external clock pin XTAL1, Oscillators with XTAL1/XTAL2 connec-
tions as well as 32kHz Timer Oscillator.
Notes: 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 between the Internal Oscilla-
tor and the JTAG TCK clock. If possible, scanning an external clock is preferred.
3. The clock configuration is programmed by fuses. As a fuse is not changed run-time, the clock configuration is con-
sidered 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. The INTCAP fuses are
not supported in the scan-chain, so the boundary scan chain can not make a XTAL Oscillator requiring internal
capacitors to run unless the fuse is correctly programmed.
25.5.5 Scanning the Analog Comparator
The relevant Comparator signals regarding Boundary-scan are shown in Figure 24-8. The Boundary-scan cell from
Figure 24-9 is attached to each of these signals. The signals are described in Table 24-4.
The Comparator need not be used for pure connectivity testing, since all analog inputs are shared with a digital
port pin as well.
Table 25-3. Scan Signals for the Oscillators
(1)(2)(3)
Enable Signal Scanned Clock Line Clock Option
Scanned Clock Line
when not Used
EXTCLKEN EXTCLK (XTAL1) External Clock 0
OSCON OSCCK External Crystal
External Ceramic
Resonator
0
RCOSCEN RCCK External RC 1
OSC32EN OSC32CK Low Freq. External Crystal 0
TOSKON TOSCK 32kHz Timer Oscillator 0
0
1
DQ
From
Previous
Cell
ClockDR
ShiftDR
To
Next
Cell
To System Logic
FF1
0
1
DQ DQ
G
0
1
From
Previous
Cell
ClockDR UpdateDR
ShiftDR
To
Next
Cell EXTEST
From Digital Logic
XTAL1/TOSC1 XTAL2/TOSC2
Oscillator
ENABLE OUTPUT