12 port m control register (pmcr) – Renesas SH7781 User Manual

Page 1439

Advertising
background image

28. General Purpose I/O Ports (GPIO)

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

REJ09B0261-0100

28.2.12

Port M Control Register (PMCR)

PMCR 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

1

1

1

1

1

1

1

1

1

1

1

1

PM0
MD0

PM0
MD1

PM1
MD0

PM1
MD1

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 to 4

⎯ All

1

R/W

Reserved

These bits are always read as 1, and the write value
should always be 1.

3

2

PM1MD1

PM1MD0

0

0

R/W

R/W

PM1 Mode

00: LBSC module (

BREQ/BSACK)

01: Port output

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

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

1

0

PM0MD1

PM0MD0

0

0

R/W

R/W

PM1 Mode

00: LBSC module (

BACK/BSREQ)

01: Port output

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

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

Advertising