Renesas SH7709S Stereo System User Manual


 
Rev. 5.00, 09/03, page 573 of 760
18.3.4 Port D Control Register (PDCR)
Bit: 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
PD7
MD1
PD7
MD0
PD6
MD1
PD6
MD0
PD5
MD1
PD5
MD0
PD4
MD1
PD4
MD0
PD3
MD1
PD3
MD0
PD2
MD1
PD2
MD0
PD1
MD1
PD1
MD0
PD0
MD1
PD0
MD0
Initial value:1010101010001010
R/W: R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W
The port D control register (PDCR) is a 16-bit readable/writable register that selects the pin
functions. PDCR is initialized to H'AA8A by a power-on reset, but is not initialized by a manual
reset, in standby mode, or in sleep mode.
Bits 15 and 14—PD7 Mode 1 and 0 (PD7MD1, PD7MD0)
Bits 11 and 10—PD5 Mode 1 and 0 (PD5MD1, PD5MD0)
Bits 7 and 6—PD3 Mode 1 and 0 (PD3MD1, PD3MD0)
Bits 5 and 4—PD2 Mode 1 and 0 (PD2MD1, PD2MD0)
Bits 3 and 2—PD1 Mode 1 and 0 (PD1MD1, PD1MD0)
Bits 1 and 0—PD0 Mode 1 and 0 (PD0MD1, PD0MD0)
These bits select the pin functions and perform input pull-up MOS control.
Bit (2n + 1) Bit 2n
PDnMD1 PDnMD0 Pin Function
0 0 Other function (see table 18.1) (Initial value) (n = 2)
0 1 Port output
1 0 Port input (Pull-up MOS: on) (Initial value) (n = 0, 1, 3, 5, 7)
1 1 Port input (Pull-up MOS: off)
(n = 0 to 3, 5, 7)
Bits 13 and 12—PD6 Mode 1 and 0 (PD6MD1, PD6MD0)
Bits 9 and 8—PD4 Mode 1 and 0 (PD4MD1, PD4MD0)
These bits select the pin functions and perform input pull-up MOS control.
Bit (2n + 1) Bit 2n
PDnMD1 PDnMD0 Pin Function
0 0 Other function (see table 18.1)
0 1 Reserved
1 0 Port input (Pull-up MOS: on) (Initial value)
1 1 Port input (Pull-up MOS: off)
(n = 4, 6)