beautypg.com

Rainbow Electronics W90N745CDG User Manual

Page 329

background image

W90N745CD/W90N745CDG

Publication Release Date: September 22, 2006

-

325

-

Revision

A2

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

GPIO29 ~ GPIO20 port pin internal pull-up resister enable
There are 10 bits for this register, the corresponding bit is set to
“1” will enable pull-up resister on IO pin.
1 = enable
0 = disable
After power on, the registers are disabled.

[15:10] RESERVED -

[9:0]

OMDEN2

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