English
Language : 

ATMEGA128_08 Datasheet, PDF (257/386 Pages) ATMEL Corporation – 8-bit Microcontroller with 128K Bytes In-System Programmable Flash
Figure 125. General Port Pin Schematic diagram
See Boundary-Scan description
for details!
ATmega128
PUExn
OCxn
QD
DDxn
Q CLR
RESET
PUD
WDx
RDx
Pxn
IDxn
ODxn
SLEEP
QD
PORTxn
Q CLR
RESET
SYNCHRONIZER
DQ
LQ
DQ
PINxn
Q
WPx
RRx
RPx
CLK I/O
PUD:
PUExn:
OCxn:
ODxn:
IDxn:
SLEEP:
PULLUP DISABLE
PULLUP ENABLE for pin Pxn
OUTPUT CONTROL for pin Pxn
OUTPUT DATA to pin Pxn
INPUT DATA from pin Pxn
SLEEP CONTROL
WDx:
RDx:
WPx:
RRx:
RPx:
CLK I/O :
WRITE DDRx
READ DDRx
WRITE PORTx
READ PORTx REGISTER
READ PORTx PIN
I/O CLOCK
Boundary-scan and
the Two-wire Interface
The two Two-wire Interface pins SCL and SDA have one additional control signal in the scan-
chain; Two-wire Interface Enable – TWIEN. As shown in Figure 126, the TWIEN signal enables
a tri-state buffer with slew-rate control in parallel with the ordinary digital port pins. A general
scan cell as shown in Figure 130 is attached to the TWIEN signal.
Notes:
1. A separate scan chain for the 50 ns spike filter on the input is not provided. The ordinary scan
support for digital port pins suffice for connectivity tests. The only reason for having TWIEN in
the scan path, is to be able to disconnect the slew-rate control buffer when doing boundary-
scan.
2. Make sure the OC and TWIEN signals are not asserted simultaneously, as this will lead to
drive contention.
2467R–AVR–06/08
257