206
Table 5.5
Port 2 Pin Functions
Pin
Selection Method and Pin Functions
P27/PO7/
TIOCB5/
IRQ15
/
EDRAK1
The pin function is switched as shown below according to the combination of the
TPU channel 5 settings (by bits MD3 to MD0 in TMDR5, bits IOB3 to IOB0 in
TIOR5, and bits CCLR1 and CCLR0 in TCR5), bit NDER7 in NDERL, bit
EDRAKE in EDMDR1, bit P27DDR, and bit ITS15 in ITSR.
Modes 1, 2, 4, 5, 6, 7 (EXPE = 1)
EDRAKE
0
1
TPU channel 5
settings
(1) in table
below
(2) in table below
—
P27DDR
—
0
1
1
—
NDER7
—
—
0
1
—
Pin function
TIOCB5
output
P27
input
P27
output
PO7
output
EDRAK1
output
TIOCB5 input
*
1
IRQ15
interrupt input pin
*
2
Mode 7 (EXPE = 0)
EDRAKE
—
TPU channel 5
settings
(1) in table
below
(2) in table below
P27DDR
—
0
1
1
NDER7
—
—
0
1
Pin function
TIOCB5 output
P27 input
P27 output
PO7 output
TIOCB5 input
*
1
IRQ15
interrupt input pin
*
2
Notes: 1. TIOCB5 input when MD3 to MD0 = B'0000 or B'01xx and IOB3 = 1.
2.
IRQ15
input when ITS15 = 1.
TPU channel 5
settings
(2)
(1)
(2)
(2)
(1)
(2)
MD3 to MD0
B'0000 to B'0011
B'0010
B'0011
IOB3 to IOB0
B'0000
B'0100
B'1xxx
B'0001 to B'0011
B'0101 to B'0111
—
B'xx00
Other than B'xx00
CCLR1, CCLR0
—
—
—
—
Other
than
B'10
B'10
Output function
—
Output compare
output
—
—
PWM
mode 2
output
—
x: Don’t care
Summary of Contents for H8S/2670
Page 5: ......
Page 9: ......
Page 199: ...182 ...
Page 361: ...344 ...
Page 393: ...376 ...
Page 647: ...630 ...