8.10
Port A
Port A is an 8-bit I/O port. Port A pins also function as the keyboard input pins and KBU
input/output pins. The output format for port A is NMOS push-pull output.
Port A has the following registers. PADDR and PAPIN have the same address.
• Port A data direction register (PADDR)
• Port A output data register (PAODR)
• Port A input data register (PAPIN)
8.10.1
Port A Data Direction Register (PADDR)
The individual bits of PADDR specify input or output for the pins of port A.
Bit
Bit Name
7
PA7DDR
6
PA6DDR
5
PA5DDR
4
PA4DDR
3
PA3DDR
2
PA2DDR
1
PA1DDR
0
PA0DDR
Initial Value
R/W
0
W
0
W
0
W
0
W
0
W
0
W
0
W
0
W
Description
The corresponding port A pins are output ports
when the PADDR bits are set to 1, and input ports
when cleared to 0.
Rev. 3.00 Jul. 14, 2005 Page 201 of 986
Section 8 I/O Ports
REJ09B0098-0300