Port C Register (Portc); Port C Pull-Up Mos Control Register (Pcpcr); Port C Open-Drain Control Register (Pcodr) - Hitachi H8S/2628 Hardware Manual

H8s/2628 series 16-bit single-chip microcomputer
Table of Contents

Advertisement

9.8.3

Port C Register (PORTC)

PORTC is an 8-bit read-only register that shows port C pin states.
Bit
Bit Name
Initial Value
7
PC7
0
6
PC6
0
5
PC5
0
4
PC4
0
3
PC3
0
2
PC2
0
1
PC1
0
0
PC0
0
Note:* Determined by the states of pins PC7 to PC0.
9.8.4

Port C Pull-Up MOS Control Register (PCPCR)

PCPCR is an 8-bit readable/writable register that controls the on/off state of input pull-up MOS of
port C.
Bit
Bit Name
Initial Value
7
PC7PCR
0
6
PC6PCR
0
5
PC5PCR
0
4
PC4PCR
0
3
PC3PCR
0
2
PC2PCR
0
1
PC1PCR
0
0
PC0PCR
0
9.8.5

Port C Open-Drain Control Register (PCODR)

PCODR is an 8-bit readable/writable register that specifies an output type of port C.
Rev. 1.0, 09/02, page 148 of 568
R/W
Description
R
If a port C read is performed while PCDDR bits are
set to 1, the PCDR values are read. If a port C read
R
is performed while PCDDR bits are cleared to 0, the
R
pin states are read.
R
R
R
R
R
R/W
Description
R/W
When a pin is specified as an input port, setting the
corresponding bit to 1 turns on the input pull-up MOS
R/W
for that pin.
R/W
R/W
R/W
R/W
R/W
R/W

Advertisement

Table of Contents
loading

This manual is also suitable for:

Hd64f2628Hd6432628H8s/2627Hd6432627

Table of Contents