Hitachi H8S/2646 Hardware Manual page 300

Hitachi 16-bit single-chip microcomputer h8s/2646 series
Table of Contents

Advertisement

Port C Register (PORTC)
Bit
:
7
PC7
Initial value :
—*
R/W
:
R
Note: * Determined by state of pins PC7 to PC0.
PORTC is an 8-bit read-only register that shows the pin states. It cannot be written to. Writing of
output data for the port C pins (PC7 to PC0) must always be performed on PCDR.
If a port C read is performed while PCDDR bits are set to 1, the PCDR values are read. If a port C
read is performed while PCDDR bits are cleared to 0, the pin states are read.
Reading a pin being used as an LCD driver returns an undefined value.
After a reset and in hardware standby mode, PORTC contents are determined by the pin states, as
PCDDR and PCDR are initialized. PORTC retains its prior state in software standby mode.
Port C MOS Pull-Up Control Register (PCPCR)
Bit
:
7
PC7PCR PC6PCR PC5PCR PC4PCR PC3PCR PC2PCR PC1PCR PC0PCR
Initial value :
0
R/W
:
R/W
PCPCR is an 8-bit readable/writable register that controls the MOS input pull-up function
incorporated into port C on an individual bit basis.
In modes 6 and 7, if PCPCR is set to 1 when the port is in the input state in accordance with the
settings of the LCD driver LPCR and PCDDR, the MOS input pull-up is set to ON.
PCPCR is initialized to H'00 by a reset, and in hardware standby mode. It retains its prior state by
a manual reset or in software standby mode.
268
6
5
PC6
PC5
PC4
—*
—*
R
R
6
5
0
0
R/W
R/W
R/W
4
3
PC3
PC2
—*
—*
—*
R
R
4
3
0
0
R/W
R/W
2
1
0
PC1
PC0
—*
—*
R
R
R
2
1
0
0
0
0
R/W
R/W

Advertisement

Table of Contents
loading

Table of Contents