Table 7.21 Port A Pin Functions (Modes 1 to 7)
Pin
Pin Functions and Selection Method
PA
/TP
/
Bit PWM0 in TMDR, bits IOB2 to IOB0 in TIOR0, bits TPSC2 to TPSC0 in 16TCR2 to
3
3
TIOCB
/
16TCR0 of the 16-bit timer, bits CKS2 to CKS0 in 8TCR2 of the 8-bit timer, bit
0
TCLKD
NDER3 in NDERA, and bit PA
16-bit timer
channel 0 settings
PA
DDR
3
NDER3
Pin function
Notes: *1 TIOCB
16-bit timer
channel 0 settings
IOB2
IOB1
IOB0
8-bit timer
channel 2 settings
CKS2
CKS1
CKS0
(1) in table below
—
—
TIOCB
output
input when IOB2 = 1 and PWM0 = 0.
0
*2 TCLKD input when TPSC2 = TPSC1 = TPSC0 = 1 in any of 16TCR2 to
16TCR0, or bits CKS2 to CKS0 in 8TCR2 are as shown in (3) in the table
below.
(2)
0
—
—
DDR select the pin function as follows.
3
0
—
PA
0
3
input
TCLKD input *
0
0
0
0
1
(4)
0
0
(2) in table below
1
0
PA
3
output
1
input *
TIOCB
0
2
(1)
1
—
(3)
1
1
1
—
1
1
TP
3
output
(2)
1
—
—
209