Datasheet
Section 8 I/O Ports
Rev. 4.00 Sep 27, 2006 page 250 of 1130
REJ09B0327-0400
8.7.3 Pin Functions
Port 6 pins also function as the 16-bit free-running timer (FRT) I/O pins (FTOA, FTOB, FTIA to
FTID, FTCI), timer X (TMRX) I/O pins (TMOX, TMIX), the timer Y (TMRY) input pin (TMIY),
timer connection I/O pins (HFBACKI, VSYNCI, VSYNCO, VFBACKI, CLAMPO), key-sense
interrupt input pins (KIN7 to KIN0), comparator input pins (CIN7 to CIN0), and external interrupt
input pins (IRQ7, IRQ6). In the H8S/2148 Group and H8S/2147N, the port 6 input level can be
switched in four stages. The port 6 pin functions are shown in table 8.15.
Table 8.15 Port 6 Pin Functions
Pin Selection Method and Pin Functions
P67/TMOX/IRQ7/
KIN7/CIN7
The pin function is switched as shown below according to the combination of
bits OS3 to OS0 in TCSR of TMRX and bit P67DDR.
OS3 to OS0 All 0 Not all 0
P67DDR 0 1 —
Pin function P67 input pin P67 output pin TMOX output pin
IRQ7 input pin, KIN7 input pin, CIN7 input pin
This pin is used as the IRQ7 input pin when bit IRQ7E is set to 1 in IER.
It can always be used as the KIN7 or CIN7 input pin.
P66/FTOB/IRQ6/
KIN6/CIN6
The pin function is switched as shown below according to the combination of
bit OEB in TOCR of the FRT and bit P66DDR.
OEB 0 1
P66DDR 0 1 —
Pin function P66 input pin P66 output pin FTOB output pin
IRQ6 input pin, KIN6 input pin, CIN6 input pin
This pin is used as the IRQ6 input pin when bit IRQ6E is set to 1 in IER.
It can always be used as the KIN6 or CIN6 input pin.
P65DDR 0 1
P65/FTID/KIN5/
CIN5
Pin function P65 input pin P65 output pin
FTID input pin, KIN5 input pin, CIN5 input pin
This pin can always be used as the FTID, KIN5, or CIN5 input pin.