PCM-4153 User Manual
66
D.1
GPIO Function: Its Call by Int15 Hook.
GPIO configuration register:
Input_Reg EQU 00h
Output_Reg EQU 01h
Inversion_Reg EQU 02h
Configure_Reg EQU 03h
--------------------------------------------------------
Bh means int15 function you want to call:
Bh = 01h ; Get GPIO config
Bh = 02h ; Set GPIO config
Bh = 03h ; Get GPIO Status
Bh = 04h ; Set GPIO Status
--------------------------------------------------------
Sample code :
;===============================================================
; Set GPIO Config
; Input:
; ax=5E87h
; bh=02h
; cl= n ; n means which group of GPIO you want to set
; 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
; output:
; ax=5E78 ;function success, other value means function fail
;===============================================================
mov
ax, 5E87H ;int15 hook as 5E87H
mov bh,02h
mov cl,Configure_Reg
mov al, bl ;( bl = bit0~7 = GPIO0~7 : 0 => output pin; 1 => input pin)
call Ct_I2CWriteByte
mov ax,5E78h ;return function success
;===============================================================
; Set GPIO status
; Input:
; ax=5E87h
; bh=04h
; cl= n ; n means which group of GPIO you want to set
; bl= the n group of gpio status
; bit 0 = gpio 0 , 0 => Low; 1 => High
; bit 1 = gpio 1 , 0 => Low; 1 => High
; .....
Содержание PCM-4153
Страница 1: ...User Manual PCM 4153 PC 104 SBC w AMD LX800 VGA LCD LAN USB2 0 and Flash...
Страница 8: ...PCM 4153 User Manual viii D 1 GPIO Function Its Call by Int15 Hook 66...
Страница 21: ...Chapter 3 3 Award BIOS Setup...
Страница 38: ...PCM 4153 User Manual 30 6 Then click on continue anyway 7 Click on finish...
Страница 44: ...PCM 4153 User Manual 36 4 Click on browse and select target folder then click OK 5 Click on next...
Страница 45: ...37 PCM 4153 User Manual Chapter 5 Audio Setup 6 Click on continue anyway 7 Click on finish...
Страница 46: ...PCM 4153 User Manual 38...
Страница 53: ...Appendix A A Pin Assignments This appendix contains informa tion of a detailed or specialized nature...
Страница 66: ...PCM 4153 User Manual 58...
Страница 71: ...Appendix C C Mechanical Drawings...
Страница 73: ...Appendix D D Prog GPIO Watchdog Timer...
Страница 77: ...69 PCM 4153 User Manual Appendix D Prog GPIO Watchdog Timer...