Pin Functions - Hitachi H8S/2678 Series Reference Manual

16-bit single-chip microcomputer
Table of Contents

Advertisement

Port 2 Register (PORT2)
Bit
7
P27
Initial value
—*
Read/Write
R
Note: * Determined by the state of pins P27 to P20.
PORT2 is an 8-bit read-only register that shows the pin states. PORT2 cannot be written to;
writing of output data for the port 2 pins (P27 to P20) must always be performed on P2DR.
If a port 2 read is performed while P2DDR bits are set to 1, the P2DR values are read. If a port 2
read is performed while P2DDR bits are cleared to 0, the pin states are read.
After a reset and in hardware standby mode, PORT2 contents are determined by the pin states, as
P2DDR and P2DR are initialized. PORT2 retains its prior state in software standby mode.
5.3.3

Pin Functions

Port 2 pins also function as PPG output pins (PO7 to PO0), TPU I/O pins (TIOCA3, TIOCB3,
TIOCC3, TIOCD3, TIOCA4, TIOCB4, TIOCA5, and TIOCB5), interrupt input pins (IRQ15 to
IRQ8), and EXDMAC output pins (EDRAK0 and EDRAK1). Port 2 pin functions are shown in
table 5.5.
6
5
P26
P25
—*
—*
R
R
4
3
P24
P23
—*
—*
R
R
2
1
P22
P21
—*
—*
R
R
0
P20
—*
R
205

Advertisement

Table of Contents
loading

Table of Contents