Rev. 6.00, 08/04, page 187 of 628
Section 8 I/O Ports
8.1
Overview
The LSI is provided with five 8-bit I/O ports, two 4-bit I/O ports, one 3-bit I/O port, one 8-bit
input-only port, one 1-bit input-only port, and one 6-bit output-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 section 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 4-bit units.
Block diagrams of each port are given in Appendix C, I/O Port Block Diagrams.
Table 8.1
Port Functions
Port
Description
Pins
Other Functions
Function
Switching
Registers
Port 1
P1
7
/
IRQ
3
/TMIF
External interrupt 3, timer
event input pin TMIF
PMR1
TCRF
P1
6
*
1
None
P1
4
/
IRQ
4
/
ADTRG
External interrupt 4, A/D
converter external trigger
PMR1
AMR
•
4-bit I/O port
•
MOS input pull-up
option
P1
3
/TMIG
Timer G input capture
PMR1
PMR2
Port 3
P3
7
/AEVL
P3
6
/AEVH
Asynchronous counter event
input pins AEVL, AEVH
PMR3
ECCR
P3
5
to P3
3
None
PMR2
P3
2
, TMOFH
P3
1
, TMOFL
Timer F output compare
output
PMR3
•
8-bit I/O port
•
MOS input pull-up
option
•
Large-current
port
*
2
•
MOS open drain
output selectable
(only P3
5
)
P3
0
/UD
Timer C count up/down
selection input
PMR3
Summary of Contents for H8/38024 Series
Page 18: ...Rev 6 00 08 04 page xviii of xxx...
Page 30: ...Rev 6 00 08 04 page xxx of xxx...
Page 130: ...Rev 6 00 08 04 page 100 of 628...
Page 216: ...Rev 6 00 08 04 page 186 of 628...
Page 416: ...Rev 6 00 08 04 page 386 of 628...
Page 432: ...Rev 6 00 08 04 page 402 of 628...
Page 468: ...Rev 6 00 08 04 page 438 of 628...
Page 661: ...H8 38024 H8 38024S H8 38024F ZTAT H8 38124 Group Hardware Manual...