133
Section 8 I/O Ports
8.1
Overview
The H8/3937 Series and H8/3937R Series are provided with six 8-bit I/O ports, two 4-bit I/O
ports, one 3-bit I/O port, and one 8-bit input-only port. Also provided are one internal 5-bit I/O
port and one internal 1-bit input-only port capable of interfacing to the on-chip FLEX™ decoder.
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.
Block diagrams of each port are given in Appendix C, I/O Port Block Diagrams
Table 8-1
Port Functions
Port
Description
Pins and
Functions
Other Functions
Function
Switching
Registers
Port 1
•
8-bit I/O port
•
MOS input pull-up option
P1
7
to P1
5
/
IRQ
3
to
IRQ
1
/TMIF, TMIC
External interrupts 3 to 1
Timer event interrupts
TMIF, TMIC
PMR1
TCRF,
TMC
P1
4
/
IRQ
4
/
ADTRG
External interrupt 4 and A/D
converter external trigger
PMR1,
AMR
P1
3
/TMIG
Timer G input capture input
PMR1
P1
2
, P1
1
/
TMOFH, TMOFL
Timer F output compare
output
PMR1
P1
0
/TMOW
Timer A clock output
PMR1
Port 2
*
1
•
5-bit I/O internal port
P2
0
/SCK
1
P2
1
/SI
1
P2
2
/SO
1
SCI1 data output (SO
1
), data
input (SI
1
), clock input/output
(SCK
1
)
PMR2
P2
4
, P2
3
None
Содержание H8/3935
Страница 1: ......
Страница 2: ......
Страница 4: ......
Страница 24: ...12 ...
Страница 53: ...41 Notation op Operation field 15 0 8 7 op op Figure 2 10 Block Data Transfer Instruction Code ...
Страница 96: ...84 ...
Страница 142: ...130 ...
Страница 144: ...132 ...
Страница 252: ...240 ...
Страница 326: ...314 ...
Страница 340: ...328 ...
Страница 520: ...508 ...