English
Language : 

MC68HC705P6A Datasheet, PDF (57/130 Pages) Motorola, Inc – HCMOS Microcontroller Unit
Input/Output Ports
I/O Port Programming
Table 6-4. Port D I/O Functions
DDRD I/O Pin Mode
Accesses to
DDRD @ $0007
Read/Write
0
IN, Hi-Z
DDRD5
1
OUT
DDRD5
Notes:
1. Does not affect input, but stored to data register
2. PD7 is input only
Accesses to Data
Register @ $0003
Read
Write
I/O Pin See Note 1
PD5
PD5
NOTE:
To avoid generating a glitch on an I/O port pin, data should be written to
the I/O port data register before writing a logic 1 to the corresponding
data direction register.
At power-on or reset, all DDRs are cleared, which configures all port pins
as inputs. The DDRs are capable of being written to or read by the
processor. During the programmed output state, a read of the data
register will actually read the value of the output data latch and not the
level on the I/O port pin.
MC68HC705P6A — Rev. 2.0
MOTOROLA
Input/Output Ports
Advance Information
57