Chapter 4 I/O Ports
IV - 42
Port A
4-9-2 Registers
Figure 4-9-1 Port A Registers (1/2)
01245673
PAIN
PAIN5 PAIN4 PAIN3 PAIN2 PAIN1 PAIN0
0
1
Pin is low (Vss level)
Input data
Pin is high (Vdd level)
PAIN
01245673
PAPLUD
PAPLUD5 PAPLUD4PAPLUD3PAPLUD2PAPLUD1PAPLUD0
0
1
No pull-up (or pull-down) resistor
Pull-up (or pull-down)
resistor selection
Pull-up (or Pull-down) resistor
PAPLUD
Port A intput register (PAIN: X'03F2A', R)
Port A pull-up/pull-down resistor control register (PAPLUD: X'03F4A', R/W)
PAIN6
PAPLUD6
01245673
PAOUT
PAOUT5PAOUT4PAOUT3PAOUT2PAOUT1PAOUT0
0
1
Low (Vss level)
Output data
High (Vdd level)
PAOUT
Port A output register (PAOUT: X'03F1A', R/W)
PAOUT6
01245673
PADIR
PADIR5 PADIR4 PADIR3 PADIR2 PADIR1 PADIR0
0
1
Input mode
I/O mode selection
Output mode
PADIR
Port A direction control register (PADIR: X'03F3A', R/W)
PADIR6
( At reset : - 0 0 0 0 0 0 0 )
( At reset : X X X X X X X X )
( At reset : - 0 0 0 0 0 0 0 )
( At reset : - 0 0 0 0 0 0 0 )