
274
8272E–AVR–04/2013
ATmega164A/PA/324A/PA/644A/PA/1284/P
The Boundary-scan logic is not included in the figures in the datasheet.
Figure 25-4 shows a
When no alternate port function is present, the Input Data - ID - corresponds to the PINxn Regis-
ter value (but ID has no synchronizer), Output Data corresponds to the PORT Register, Output
Control corresponds to the Data Direction - DD Register, and the Pull-up Enable - PUExn - cor-
responds to logic expression PUD DDxn PORTxn.
to make the scan chain read the actual pin value. For analog function, there is a direct connec-
tion from the external pin to the analog circuit. There is no scan chain on the interface between
the digital and the analog circuitry, but some digital control signal to analog circuitry are turned
off to avoid driving contention on the pads.
When JTAG IR contains EXTEST or SAMPLE_PRELOAD the clock is not sent out on the port
pins even if the CKOUT fuse is programmed. Even though the clock is output when the JTAG IR
contains SAMPLE_PRELOAD, the clock is not sampled by the boundary scan.
Figure 25-3. Boundary-scan cell for bi-directional port pin with pull-up function.
DQ
G
0
1
0
1
DQ
G
0
1
0
1
0
1
Port
Pin
(PXn)
Vcc
EXTEST
To Next Cell
ShiftDR
Output Control (OC)
Output Data (OD)
Input Data (ID)
From Last Cell
UpdateDR
ClockDR
FF1
LD1
LD0
FF0
0
1
Pull-up Enable (PUE)