beautypg.com

Rainbow Electronics W90P710CDG User Manual

Page 402

background image

W90P710CD/W90P710CDG

- 402 -

11 10 01 00

PT2CFG9

Name Type Name Type

Name Type

Name

Type

PORT2_9 VD17 O

KPROW1

O

PHY_MDC

O

GPIO51

I/O

GPIO Port2 Direction Register (GPIO_DIR2)

REGISTER ADDRESS

R/W

DESCRIPTION

RESET

VALUE

GPIO_DIR2 0xFFF8_3024

R/W

GPIO

port2 in/out direction control

and pull-up enable register

0x0000_0000

31

30

29

28

27

26

25

24

RESERVED PUPEN2[9:8]

23

22

21

20

19

18

17

16

PUPEN2[7:0]

15

14

13

12

11

10

9

8

RESERVED OMDEN2[9:8]

7

6

5

4

3

2

1

0

OMDEN2[7:0]

BITS

DESCRIPTION

[31:26] RESERVED -

[25:16]

PUPEN2

GPIO51 ~ GPIO42 port pin internal pull-up resister enable
This is a 10-bit register, write corresponding bit “1” will enable
pull –up resister in the IO pin.
1 = enable
0 = disable
After power on, the registers are disabled.

[15:10] RESERVED

[9:0]

OMDEN2

GPIO51 ~ GPIO42 output mode enable
1 = output mode
0 = input mode
NOTE: Output mode enable bits are valid only when bit
PT2CFG7-0 is configured as general purpose I/O mode.
Each port pin can be enabled individually by setting the
corresponding control bit.