Port A Data Register (PADR): PADR is an 8-bit readable/writable register that stores output data
for pins PA
7
to PA
0
. When a bit in PADDR is set to 1, if port A is read the value of the
corresponding PADR bit is returned. When a bit in PADDR is cleared to 0, if port A is read the
corresponding pin level is read.
PADR is initialized to H'00 by a reset and in hardware standby mode. In software standby mode it
retains its previous setting.
9.11.3 Pin Functions
Table 9-19 describes the selection of pin functions.
Table 9-19 Port A Pin Functions
Pin
Pin Functions and Selection Method
PA
7
/TP
7
/
The mode setting, ITU channel 2 settings (bit PWM2 in TMDR and bits IOB2 to
TIOCB
2
/A
20
IOB0 in TIOR2), bit NDER7 in NDERA, and bit PA
7
DDR in PADDR select the pin
function as follows
Mode
1, 2, 5, 7
3, 4, 6
ITU channel 2
settings
(1) in table below
(2) in table below
—
PA
7
DDR
—
0
1
1
—
NDER7
—
—
0
1
—
Pin function
TIOCB
2
output
PA
7
PA
7
TP
7
A
20
input
output
output
output
TIOCB
2
input
*
Note:
*
TIOCB
2
input when IOB2 = 1 and PWM2 = 0.
ITU channel 2
settings
(2)
(1)
(2)
IOB2
0
1
IOB1
0
0
1
—
IOB0
0
1
—
—
Bit
Initial value
Read/Write
0
PA
0
R/W
0
1
PA
0
R/W
1
2
PA
0
R/W
2
3
PA
0
R/W
3
4
PA
0
R/W
4
5
PA
0
R/W
5
6
PA
0
R/W
6
7
PA
0
R/W
7
Port A data 7 to 0
These bits store data for port A pins
279
www.DataSheet4U.com