I/O Ports - Hitachi HD6473867 Hardware Manual

H8/3867 series, h8/3867 series
Table of Contents

Advertisement

8.1 Overview
The H8/3864 Series is provided with six 8-bit I/O ports, one 4-bit I/O port, one 3-bit I/O port, one 8-
bit input-only port, and one 1-bit input-only port. Table 8-1 indicates the functions of each port.
Each port has of a port control register (PCR) that controls input and output, and a port data register
(PDR) for storing output data. Input or output can be assigned to individual bits.
See 2.9.2, Notes on Bit Manipulation, for information on executing bit-manipulation instructions to
write data in PCR or PDR.
Ports 5, 6, 7, 8, and A are also used as liquid crystal display segment and common pins, selectable
in 8-bit units.
Block diagrams of each port are given in Appendix C, I/O Port Block Diagrams.
Table 8-1 Port Functions
Port
Description
Port 1
• 8-bit I/O port
• MOS input pull-up
option
Port 3
• 8-bit I/O port
• MOS input pull-up
option
• Large-current port
Port 4
• 1-bit input port
• 3-bit I/O port
Section 8 I/O Ports
Pins
P1
to P1
/
7
5
IRQ
to IRQ
/
3
1
TMIF, TMIC
P1
/IRQ
/ADTRG
4
4
P1
/TMIG
3
P1
, P1
/
2
1
TMOFH, TMOFL
P1
/TMOW
0
P3
/AEVL
7
P3
/AEVH
6
P3
/TXD
5
31
P3
/RXD
4
31
P3
/SCK
3
31
P3
/RESO
2
P3
/UD
1
P3
/PWM
0
P4
/IRQ
3
0
P4
/TXD
2
32
P4
/RXD
1
32
P4
/SCK
0
32
131
Other Functions
External interrupts 3 to 1
Timer event interrupts
TMIF, TMIC
External interrupt 4 and A/D
converter external trigger
Timer G input capture input
Timer F output compare
output
Timer A clock output
SCI3-1 data output (TXD
data input (RXD
), clock
31
input/output (SCK
),
31
and asynchronous counter
event inputs AEVL, AEVH
Reset output, timer C count-
up/down select input, and
14-bit PWM output
External interrupt 0
SCI3-2 data output (TXD
data input (RXD
), clock
32
input/output (SCK
)
32
Function
Switching
Registers
PMR1
TCRF,
TMC
PMR1, AMR
PMR1
PMR1
PMR1
),
PMR3
31
SCR31
SMR31
PMR3
PMR3
),
SCR32
32
SMR32

Advertisement

Table of Contents
loading

Table of Contents