Port C; Port C Data Direction Register (Pcddr) - Hitachi H8S/2378, H8S/2378R Series Hardware Manual

16 bit single-chip microcomputer
Table of Contents

Advertisement

10.11

Port C

Port C is an 8-bit I/O port that also has other functions. The port C has the following registers.

• Port C data direction register (PCDDR)

• Port C data register (PCDR)
• Port C register (PORTC)
• Port C MOS pull-up control register (PCPCR)
10.11.1 Port C Data Direction Register (PCDDR)
The individual bits of PCDDR specify input or output for the pins of port C.
PCDDR cannot be read; if it is, an undefined value will be read.
Bit
Bit Name
7
PC7DDR
6
PC6DDR
5
PC5DDR
4
PC4DDR
3
PC3DDR
2
PC2DDR
1
PC1DDR
0
PC0DDR
Rev. 1.0, 09/01, page 464 of 904
Initial Value
R/W
0
W
0
W
0
W
0
W
0
W
0
W
0
W
0
W
Description
Modes 1, 2, 5, and 6
Port C pins are address outputs regardless of the
PCDDR settings.
Modes 4 and 7 (when EXPE = 1)
Setting a PCDDR bit to 1 makes the corresponding
port C pin an address output, while clearing the bit to
0 makes the pin an input port.
Mode 7 (when EXPE = 0)
Port C is an I/O port, and its pin functions can be
switched with PCDDR.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents