77
PCM-3362 User Manual
Appendix D
W
atchdog
Timer
and
GPIO
sample
code
END
D.2
GPIO sample code
;===============================================================
; Get Number of GPIO group
; one group mean 8 gpio pins (one GPIO Chip)
; Input:
; ax=5E87h
; bh=00h
; output:
; ax=5E78 ;function success, other value means function fail
; cl= n group of gpio
mov ax,5E87h
mov bh,00h
INT15
;
You will get cl=01 in 8 bit GPIO product, cl = 02 in 16 bit GPIO product
;===============================================================
;===============================================================
; Get GPIO Config
; Input:
; ax=5E87h
; bh=01h
; cl= n ; n means which group of GPIO you want to get
; output:
; ax=5E78 ;function success, other value means function fail
; bl= the n group of gpio config
; bit 0 = gpio 0 , 0 => output pin; 1 => input pin
; bit 1 = gpio 1 , 0 => output pin; 1 => input pin
; .....
; bit 7 = gpio 7 , 0 => output pin; 1 => input pin
mov ax,5E87h
mov bh,01h
mov cl,01h
INT15
;
You will get GPIO default setting from bl
;===============================================================
;===============================================================
; Set GPIO Config
; Input:
; ax=5E87h
; bh=02h
Summary of Contents for PCM-3362
Page 14: ...PCM 3362 User Manual 6 ...
Page 15: ...Chapter 2 2 Hardware Installation ...
Page 24: ...PCM 3362 User Manual 16 ...
Page 25: ...Chapter 3 3 AMI BIOS Setup ...
Page 45: ...Chapter 4 4 Software Introduction Installation ...
Page 56: ...PCM 3362 User Manual 48 ...
Page 57: ...Chapter 5 5 Chipset Software Installation Utility ...
Page 59: ...Chapter 6 6 Integrated Graphic Device Setup ...
Page 61: ...Chapter 7 7 LAN Configuration ...
Page 76: ...PCM 3362 User Manual 68 ...
Page 77: ...Appendix C C Mechanical Drawings ...
Page 82: ...PCM 3362 User Manual 74 ...
Page 83: ...Appendix D D Watchdog Timer and GPIO sample code ...