Renesas H8S/2111B 用户手册

下载
页码 582
Rev. 1.00, 05/04, page 132 of 544 
 
7.12 
Ports C, D 
Port C and port D are two sets of 8-bit I/O ports. Port C and port D have the following registers. 
•  Port C data direction register (PCDDR) 
•  Port C output data register (PCODR) 
•  Port C input data register (PCPIN) 
•  Port C Nch-OD control register (PCNOCR) 
•  Port D data direction register (PDDDR) 
•  Port D output data register (PDODR) 
•  Port D input data register (PDPIN) 
•  Port D Nch-OD control register (PDNOCR) 
 
7.12.1 
Port C and Port D Data Direction Registers (PCDDR, PDDDR) 
PCDDR and PDDDR select input or output for the pins of port C and port D on a bit-by-bit basis.  
Bit Bit 
Name
Initial 
Value 
R/W Description 
7 PC7DDR 
6 PC6DDR 
5 PC5DDR 
4 PC4DDR 
3 PC3DDR 
2 PC2DDR 
1 PC1DDR 
0 PC0DDR 
0: Port C pin is an input pin 
1: Port C pin is an output pin 
PCDDR has the same address as PCPIN, and if read, 
the port C pin states will be returned. 
 
Bit Bit 
Name
Initial 
Value R/W 
Description 
7 PD7DDR 
6 PD6DDR 
5 PD5DDR 
4 PD4DDR 
3 PD3DDR 
2 PD2DDR 
1 PD1DDR 
0 PD0DDR 
0: Port D pin is an input pin 
1: Port D pin is an output pin 
PDDDR has the same address as PDPIN, and if read, 
the port D pin states will be returned.