Pin Functions - Renesas H8S/2158 User Manual

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

Advertisement

Section 9 I/O Ports
9.6.5

Pin Functions

The relationship between the operating modes, register setting values, and pin functions are as
follows. In the tables, the symbol "—" stands for Don't care.
In extended mode, port 6 pins also function as the bidirectional data bus, CompactFlash
bidirectional data bus, FRT input/output pin, enhanced A/D conversion input pin, keyboard input
pin, timer connection input/output pins, or I/O port. The extended data bus width can be specified
by bits ABW and ABW256 in WSCR of BSC and bit ABWCP in BCR2. When the 16-bit bus
interface is specified, port 6 pins function as the bidirectional data bus (D7 to D0/CPD7 to CPD0).
When the 8-bit bus interface is specified, port 6 pins function as the FRT input/output pin,
enhanced A/D conversion input pin, keyboard input pin, timer connection input/output pins, or I/O
port.
In single-chip mode, port 6 pins function as the FRT input/output pin, enhanced A/D conversion
input pin, keyboard input pin, timer connection input/output pins, or external USB driver/receiver
input/output pin, or I/O port
Extended Mode with 16-Bit Data Bus Specified: Port 6 pins function as the lower 8 bits of the
data bus.
Note: When the 16-bit data bus interface is specified in extended mode, USB should not be
enabled. If USB is enabled, port 6 cannot operate as a data bus.
Extended Mode with 8-Bit Data Bus Specified:
• P67/CIN7/KIN7
The function of port 6 pins is switched as shown below according to 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.
P67DDR
Pin function
Rev. 3.00 Jan 25, 2006 page 236 of 872
REJ09B0286-0300
0
P67 input pin
CIN7 input pin/KIN7 input pin
1
P67 output pin

Advertisement

Table of Contents
loading

Table of Contents