Datasheet

Section 8 I/O Ports
Rev.7.00 Dec. 24, 2008 Page 245 of 698
REJ09B0074-0700
8.8 Port C (H8S/2218 Group Only)
The port C is an 8-bit I/O port also functioning as address bus (A7 to A0) output pins. The port C
has the following registers.
Note: When the RTC and USB are used while the E6000 emulator is used, the PC7DDR to
PC0DDR bits in PCDDR must be set so that the PC7 to PC0 pins output addresses A7 to
A0. This note applies to both the H8S/2218 Group and H8S/2212 Group.
Port C data direction register (PCDDR)
Port C data register (PCDR)
Port C register (PORTC)
Port C pull-up MOS control register (PCPCR)
8.8.1 Port C Data Direction Register (PCDDR)
PCDDR specifies input or output for the pins of the port C.
Since PCDDR is a write-only register, the bit manipulation instructions must not be used to write
PCDDR. For details, see section 2.9.4, Accessing Registers Containing Write-Only Bits.
Bit Bit Name Initial Value R/W Description
7
6
5
4
3
2
1
0
PC7DDR
PC6DDR
PC5DDR
PC4DDR
PC3DDR
PC2DDR
PC1DDR
PC0DDR
0
0
0
0
0
0
0
0
W
W
W
W
W
W
W
W
Modes 4 and 5:
Port C pins are address output pins.
Mode 6:
Setting a PCDDR bit to 1 makes the corresponding port C
pin an address output pin, while clearing the bit to 0
makes the pin an input port.
Mode 7:
Setting a PCDDR bit to 1 makes the corresponding port C
pin an output port, while clearing the bit to 0 makes the
pin an input port.