English
Language : 

MC68HC705C8A_13 Datasheet, PDF (80/222 Pages) Freescale Semiconductor, Inc – Technical Data
Freescale Semiconductor, Inc.
Parallel Input/Output (I/O)
7.3.3 Port A Logic
Figure 7-3 is a diagram of the port A I/O logic.
READ $0004
WRITE $0004
RESET
DATA DIRECTION
REGISTER A
BIT DDRAx
WRITE $0000
PORT A DATA
REGISTER
PAx
BIT PAx
READ $0000
Figure 7-3. Port A I/O Logic
When a port A pin is programmed to be an output, the state of its data
register bit determines the state of the output pin. When a port A pin is
programmed to be an input, reading the port A data register returns the
logic state of the pin.
The data latch can always be written, regardless of the state of its DDRA
bit. Table 7-1 summarizes the operation of the port A pins.
Table 7-1. Port A Pin Functions
DDRA Bit I/O Pin Mode
Accesses to DDRA
Read/Write
0
Input, Hi-Z(1)
DDRA7–DDRA0
1
Output
DDRA7–DDRA0
1. Hi-Z = high impedance
2. Writing affects data register but does not affect input.
Accesses to PORTA
Read
Write
Pin
PA7–PA0(2)
PA7–PA0 PA7–PA0
NOTE:
To avoid excessive current draw, tie all unused input pins to VDD or VSS,
or change I/O pins to outputs by writing to DDRA in user code as early
as possible.
Technical Data
80
Parallel Input/Output (I/O)
For More Information On This Product,
Go to: www.freescale.com
MC68HC705C8A — Rev. 3