Pin Functions - Hitachi H8S/2646 Hardware Manual

Hitachi 16-bit single-chip microcomputer h8s/2646 series
Table of Contents

Advertisement

9.11.3

Pin Functions

In modes 4 to 6, each pin on port D automatically becomes one of the data bus I/O pins (D15 to
D8). In mode 7, each pin on port D functions as an I/O port and can be specified to function as an
input or output bit by bit.
The function of pins on port D are as listed in tables 9-23 (1) and 9-23 (2).
Table 9-23 (1)
Port D Pin Functions (H8S/2646, H8S/2646R, H8S/2645)
Pins
PD7/D15, PD6/D14,
PD5/D13, PD4/D12,
PD3/D11, PD2/D10,
PD1/D9, PD0/D8
Table 9-23 (2)
Port D Pin Functions (H8S/2648, H8S/2648R, H8S/2647)
Pins
PD7/D15/SEG9 to
PD0/D8/SEG16
Note: Modes 4 and 5 are expanded modes with on-chip ROM disabled.
If segment output is selected, data input/output and interfacing to external ROM are no
longer possible. Therefore segment output settings should not be made in these modes.
274
Method of Selection and Pin Function
Pin functions are changed by a combination of the operating mode and the
PDDDR.
Operating mode
PDnDDR
Pin function
Method of Selection and Pin Function
Setting of SGS3
to SGS0
Operating mode Mode 4 to 6
PDDDR
Pin function
D15 to D8 I/O PD7 to PD0
Mode 4 to 6
Data bus I/O (D15 to D8)
Port
0
input
Mode 7
0
PDn input
PDn output
SEG output
Mode 7
1
PD7 to PD0
output
1
n = 7 to 0
SEG9 to
SEG16

Advertisement

Table of Contents
loading

Table of Contents