beautypg.com

Appendix b

Page 32

background image

LV-67M

User’s Manual

-31-

Appendix B

The GPIO’ can be programmed with the MS-DOS debug program using simple

IN/OUT commands.

The DC characteristics please refer to GPIO paragraph (Page25).

GPIO

0

1

2

3

4

5

6

7

bit

0

1

2

3

4

5

6

7

-o 2E 87

;enter configuration

-o 2E 87

-o 2E 07

-o 2F 09

;select Logical Device

-o 2E 30

-o 2F 02

;activate GPIO function (The board use GPIO3)

-o 2E F0

-o 2F XX

;set

“01” GPIO as input, set “00” GPIO as output

-o 2E F1

-o 2F XX

;if set GPIO as output, t

his register’s value can be set “00~ FF”

Optional

-o 2E F2

-o 2F XX

;set

“01”, the respective bit are inverted (Both input and output)

;set

“00”, the respective bit are normal

For further information, please refer to Winbond W83627DHG-P datasheet.