4 port d control register (pdcr) – Renesas SH7781 User Manual

Page 1423

Advertising
background image

28. General Purpose I/O Ports (GPIO)

Rev.1.00 Jan. 10, 2008 Page 1393 of 1658

REJ09B0261-0100

28.2.4

Port D Control Register (PDCR)

PDCR is a 16-bit readable/writable register that selects the pin function and controls the input
pull-up MOS.

0

1

2

3

4

5

6

7

8

9

10

11

12

13

15

14

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

PD0

MD0

PD0

MD1

PD1

MD0

PD1

MD1

PD2

MD0

PD2

MD1

PD3

MD0

PD3

MD1

PD4

MD0

PD4

MD1

PD5

MD0

PD5

MD1

PD6

MD0

PD6

MD1

PD7

MD1

PD7

MD0

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

Bit:

Initial value:

R/W:

Bit Bit

Name

Initial
value R/W Description

15

14

PD7MD1

PD7MD0

0

0

R/W

R/W

PD7 Mode

00: LBSC/PCIC/DU module (D39/AD7/DG1)*

01: Port output

10: Port input (pull-up MOS: Off)

11: Port input (pull-up MOS: On)

13

12

PD6MD1

PD6MD0

0

0

R/W

R/W

PD6 Mode

00: LBSC/PCIC/DU module (D38/AD6/DG0)*

01: Port output

10: Port input (pull-up MOS: Off)

11: Port input (pull-up MOS: On)

11

10

PD5MD1

PD5MD0

0

0

R/W

R/W

PD5 Mode

00: LBSC/PCIC/DU module (D37/AD5/DR5)*

01: Port output

10: Port input (pull-up MOS: Off)

11: Port input (pull-up MOS: On)

9

8

PD4MD1

PD4MD0

0

0

R/W

R/W

PD4 Mode

00: LBSC/PCIC/DU module (D36/AD4/DR4)*

01: Port output

10: Port input (pull-up MOS: Off)

11: Port input (pull-up MOS: On)

Advertising