Renesas H8S/2158 User Manual page 294

16-bit single-chip microcomputer h8s family/h8s/2100 series
Table of Contents

Advertisement

Section 9 I/O Ports
Single-Chip Mode:
• P67/CIN7/KIN7/DPLS
The function of port 6 pins is switched as shown below according to the combination of the
FADSEL bit in USBCR0 of USB and the P67DDR bit.
When the KBADE bit in KBCOMP of the A/D converter is set to 1 while the KBCH2 to
KBCH0 bits are set to B'111, this pin can be used as the CIN7 input pin. When the KMIM7 bit
in KMIMR6 of the interrupt controller is cleared to 0, this pin can be used as the KIN7 input
pin. To use this pin as the KIN7 input pin, clear the P67DDR bit to 0.
FADSEL
P67DDR
Pin function
• P66/FTOB/CIN6/KIN6/CBLANK/DMNS
The function of port 6 pins is switched as shown below according to the combination of the
FADSEL bit in USBCR0 of USB, the CBOE bit in TCONRO of the timer connection, the
OEB bit in TOCR of FRT, and the P66DDR bit.
When the KBADE bit in KBCOMP of the A/D converter is set to 1 while the KBCH2 to
KBCH0 bits are set to B'110, this pin can be used as the CIN6 input pin. When the KMIM6 bit
in KMIMR6 of the interrupt controller is cleared to 0, this pin can be used as the KIN6 input
pin. To use this pin as the KIN6 input pin, clear the P66DDR bit to 0.
FADSEL
CBOE
OEB
P66DDR
Pin function
P66 input pin
Rev. 3.00 Jan 25, 2006 page 240 of 872
REJ09B0286-0300
0
0
P67 input pin
CIN7 input pin/KIN7 input pin
0
0
0
1
P66 output pin
CIN6 input pin/KIN6 input pin
1
P67 output pin
0
1
FTOB output
CBLANK
pin
output pin
1
DPLS input pin
1
1
DMNS input
pin

Advertisement

Table of Contents
loading

Table of Contents