Rev. 2.0, 11/00, page 247 of 1037
11.4
Port 2
11.4.1
Overview
Port 2 is an 8-bit I/O port. Table 11.8 shows the port 2 configuration.
Port 2 consists of pins that are used both as standard I/O ports (P27 to P20) and SCI clock I/O
(SCK1, SCK2), receive data input (SI1, SI2), send data output (SO1, SO2), I
2
C bus interface
clock I/O (SCL), or data I/O (SCL). It is switched by port mode register 2 (PRM2), serial mode
register (SMR), serial control register 2 (SCR), I
2
C bus control register (ICCR), and port control
register (PCR2).
Port 2 can select the MOS pull-up function.
Table 11.8 Port 2 Configuration
Port
Function
Alternative Function
P27 (standard I/O port)
SCK2 (SCI2 clock I/O)
P26 (standard I/O port)
SO2 (SCI2 transmit data output)
P25 (standard I/O port)
SI2 (SCI2 receive data input)
P24 (standard I/O port)
SCL (I
2
C bus interface clock I/O)
P23 (standard I/O port)
SDA (I
2
C bus interface data I/O)
P22 (standard I/O port)
SCK1 (SCI1 clock I/O)
P21 (standard I/O port)
SO1 (SCI1 transmit data output)
Port 2
P20 (standard I/O port)
SI1 (SCI1 receive data input)
11.4.2
Register Configuration
Table 11.9 shows the port 2 register configuration.
Table 11.9 Port 2 Register Configuration
Name
Abbrev.
R/W
Size
Initial Value
Address
*
Port mode register 2
PMR2
R/W
Byte
H'1E
H'FFCF
Port control register 2
PCR2
W
Byte
H'00
H'FFD2
Port data register 2
PDR2
R/W
Byte
H'00
H'FFC2
MOS pull-up select
register 2
PUR2
R/W
Byte
H'00
H'FFE2
Note:
*
Lower 16 bits of the address.
Summary of Contents for Hitachi H8S/2191
Page 123: ...Rev 2 0 11 00 page 96 of 1037...
Page 149: ...Rev 2 0 11 00 page 122 of 1037...
Page 197: ...Rev 2 0 11 00 page 170 of 1037...
Page 247: ...Rev 2 0 11 00 page 220 of 1037...
Page 249: ...Rev 2 0 11 00 page 222 of 1037...
Page 347: ...Rev 2 0 11 00 page 320 of 1037...
Page 357: ...Rev 2 0 11 00 page 330 of 1037...
Page 417: ...Rev 2 0 11 00 page 390 of 1037...
Page 431: ...Rev 2 0 11 00 page 404 of 1037...
Page 439: ...Rev 2 0 11 00 page 412 of 1037...
Page 457: ...Rev 2 0 11 00 page 430 of 1037...
Page 525: ...Rev 2 0 11 00 page 498 of 1037...
Page 543: ...Rev 2 0 11 00 page 516 of 1037...
Page 845: ...Rev 2 0 11 00 page 818 of 1037...