Datasheet

Table Of Contents
Figure 27-6. General Port Pin Schematic diagram
CLK
RPx
RRx
WPx
RDx
WDx
PUD
SYNCHRONIZER
WDx: WRITE DDRx
WPx: WRITE PORTx
RRx: READ PORTx REGISTER
RPx: READ P ORTx PIN
PUD: P ULLUP DISABLE
CLK : I/O CLOCK
RDx: READ DDRx
D
L
Q
Q
RES ET
RES ET
Q
Q
D
Q
Q
D
CLR
PORTxn
Q
Q
D
CLR
DDxn
PINxn
DATA BUS
SLEEP
SLEEP : SLEEP CONTROL
Pxn
I/O
I/O
Se e Boundary-Sca n de s cription
for de ta ils!
PUExn
OCxn
ODxn
IDxn
PUExn: PULLUP ENABLE for pin Pxn
OCxn: OUTP UT CONTROL for pin P xn
ODxn: OUTPUT DATA to pin P xn
IDxn: INPUT DATA from pin Pxn
Related Links
I/O Ports on page 74
27.13.2. 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 the figure below, 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
27-11 is attached to the TWIEN signal.
Note: 
1. A separate scan chain for the 50ns 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.
Atmel ATmega32A [DATASHEET]
Atmel-8155I-ATmega32A_Datasheet_Complete-08/2016
293