Datasheet

Section 8 I/O Ports
Rev. 8.00 Mar. 09, 2010 Page 202 of 658
REJ09B0042-0800
8.2.3 Pin Functions
Table 8.3 shows the port 1 pin functions.
Table 8.3 Port 1 Pin Functions
Pin Pin Functions and Selection Method
P1
7
/IRQ
3
/TMIF The pin function depends on bit IRQ3 in PMR1, bits CKSL2 to CKSL0 in TCRF,
and bit PCR1
7
in PCR1.
IRQ
3
0 1
PCR1
7
0 1 *
CKSL2 to CKSL0 * Not 0** 0**
Pin function P1
7
input pin P1
7
output pin IRQ
3
input pin IRQ
3
/TMIF
input pin
Note: When this pin is used as the TMIF input pin, clear bit IEN3 to 0 in IENR1
to disable the IRQ
3
interrupt.
P1
6
The pin function depends on bit PCR1
6
in PCR1.
PCR1
6
0 1
Pin function P1
6
input pin P1
6
output pin
Note: Pin 16 and the associated function are not implemented on the H8/38124
Group.
P1
4
/IRQ
4
ADTRG
The pin function depends on bit IRQ4 in PMR1, bit TRGE in AMR, and bit PCR1
4
in PCR1.
IRQ4 0 1
PCR1
4
0 1 *
TRGE * 0 1
Pin function P1
4
input pin P1
4
output pin IRQ
4
input pin IRQ
4
/ADTRG
input pin
Note: When this pin is used as the ADTRG input pin, clear bit IEN4 to 0 in
IENR1 to disable the IRQ
4
interrupt.
P1
3
/TMIG The pin function depends on bit TMIG in PMR1 and bit PCR1
3
in PCR1.
TMIG 0 1
PCR1
3
0 1 *
Pin function P1
3
input pin P1
3
output pin TMIG input pin
*: Don’t care