English
Language : 

MC68HC05PV8 Datasheet, PDF (95/196 Pages) Freescale Semiconductor, Inc – Techinal Data - rev 1.9
Freescale Semiconductor, Inc.
Input/Output Ports
Port A
Data Direction
Register Bit
Internal
HC05
Connections
Latched Output
Data Bit
I/O
Output
Pin
Input
Reg
Bit
Input
I/O
Figure 7-1 Port I/O Circuitry
NOTE: To avoid a glitch on the output pins, write data to the I/O port data
register before writing a one to the corresponding data direction register.
NOTE:
If the I/O pin is an input and a read-modify-write (RMW) instruction is
executed, the I/O pin will be read into the HC05 CPU and the computed
result will then be written to the data latch.
7.4 Port A
Port A is an 8-bit bidirectional port (PA0–7) with interrupt capability,
shared with the A/D converter (AN1–6, VREFL, VREFH).
The port A data register is located at $0000 and the data direction register
(DDR) at $0004. Reset does not affect the data registers, but clears the
data direction registers, thereby returning the ports to inputs. Writing a
one to a DDR bit sets the corresponding port bit to output mode.
When the A/D converter is turned on, one of the channels AN1–6 may
be selected through the A/D status and control register for conversion.
The input lines of port A include software programmable pull-up
resistors.
MC68HC(8)05PV8/A — Rev. 1.9
Input/Output Ports
For More Information On This Product,
Go to: www.freescale.com
Technical Data