English
Language : 

MC68HC705P9 Datasheet, PDF (75/156 Pages) Motorola, Inc – HCMOS Microcontroller Unit 
Parallel I/O Ports
Port A
Writing a logic one to a DDRA bit enables the output buffer for the
corresponding port A pin; a logic zero disables the output buffer.
When bit DDRAx is a logic one, reading address $0000 reads the PAx
data latch. When bit DDRAx is a logic zero, reading address $0000
reads the voltage level on the pin. The data latch can always be written,
regardless of the state of its data direction bit. Table 1 summarizes the
operation of the port A pins.
Table 1. Port A Pin Operation
Data Direction Bit
0
I/O Pin Mode
Input, Hi-Z(1)
Accesses to Data Bit
Read
Pin
Write
Latch(2)
1
Output
Latch
Latch
1. Hi-Z = high impedance
2. Writing affects data register, but does not affect input.
5-mc68hc705p9
MOTOROLA
Parallel I/O Ports
75