
System Integration Block (SIB)
3-30
MC68302 USER’S MANUAL
MOTOROLA
Figure 3-5. Parallel I/O Block Diagram for PA0
When acting as a general-purpose I/O pin, the signal direction for that pin is determined by
the corresponding control bit in the port A data direction register (PADDR). The port I/O pin
is configured as an input if the corresponding PADDR bit is cleared; it is configured as an
output if the corresponding PADDR bit is set. All PACNT bits and PADDR bits are cleared
on total system reset, configuring all port A pins as general-purpose input pins. (Note that
these port pins do not have internal pullup resistors).
If a port A pin is selected as a general-purpose I/O pin, it may be accessed through the port
A data register (PADAT). Data written to the PADAT is stored in an output latch. If a port A
pin is configured as an output, the output latch data is gated onto the port pin. In this case,
when the PADAT is read, the contents of the output latch associated with the output port pin
are read. If a port A pin is configured as an input, data written to PADAT is still stored in the
output latch but is prevented from reaching the port pin. In this case, when PADAT is read,
the state of the port pin is read.
If a port A pin is selected as a dedicated on-chip peripheral pin, the corresponding bit in the
PADDR is ignored, and the direction of the pin is determined by the operating mode of the
on-chip peripheral. In this case, the PADAT contains the current state of the peripheral's in-
put pin or output driver.
Certain pins may be selected as general-purpose I/O pins, even when other pins related to
the same on-chip peripheral are used as dedicated pins. For example, a system that config-
ures SCC2 to operate in a nonmultiplexed mode without the modem control lines and exter-
nal clocks (RCLK2, TCLK2, CD2, CTS2, and RTS2) may dedicate the data lines (RXD2 and
TXD2) to SCC2 and configure the others as general-purpose I/O pins. What the peripheral
MUX
MUX
0
1
EN
EN
0
1
RXD2/PA0
PIN
MUX
EN
1
0
RXD2
TO
SCC2
16 BITS
PADDR
INPUT
BUFFER
TO
PADAT
BIT 0
OUTPUT
LATCH
16 BITS
PACNT