I/O Ports
Port A
MC68HC08AZ60A — Rev 1.0
Technical Data
MOTOROLA
I/O Ports
317
20.3 Port A
Port A is an 8-bit general-purpose bidirectional I/O port.
20.3.1 Port A Data Register (PTA)
The port A data register contains a data latch for each of the eight port
A pins.
PTA[7:0] — Port A Data Bits
These read/write bits are software programmable. Data direction of
each port A pin is under the control of the corresponding bit in data
direction register A. Reset has no effect on port A data.
Data Direction Register G (DDRG)
R:
0
DDRG2 DDRG1 DDRG0 $000E
W:
Data Direction Register H (DDRH)
R:
0
000
DDRH1 DDRH0 $000F
W:
= Unimplemented
Table 20-1. I/O Port Register Summary (Continued)
Register Name
Bit 7
654321
Bit 0
Addr.
Bit 7
654321
Bit 0
PTA
$0000
Read:
PTA7
PTA6
PTA5
PTA4
PTA3
PTA2
PTA1
PTA0
Write:
Reset:
Unaffected by reset
Figure 20-1. Port A data register (PTA)