Port C Register (Portc); Port C Pull-Up Mos Control Register (Pcpcr); Pin Functions; Table 9.36 Pc7 Pin Function - Hitachi H8S/2215 Series Hardware Manual

Hitachi single-chip microcomputer
Table of Contents

Advertisement

9.8.3

Port C Register (PORTC)

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

Port C Pull-Up MOS Control Register (PCPCR)

PCPCR 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

Pin Functions

Port C pins also function as Address bus (A7 to A0) output. The correspondence between the
register specification and the pin functions is shown below.

Table 9.36 PC7 Pin Function

Operating Mode
PC7DDR
Pin Function
Rev. 3.0, 10/02, page 244 of 686
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 is
R
performed while PCDDR bits are cleared to 0, the pin
R
states are read.
R
R
R
R
R
R/W
Description
R/W
When a pin function is specified to 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
Modes 4 and 5
A7 output
A7 output
Mode 6
*
1
0
PC7 input
Mode 7
1
0
PC7 output
PC7 input

Advertisement

Table of Contents
loading

Table of Contents