beautypg.com

NEXCOM PEAK 876VL2 User Manual

Page 64

background image

Copyright © 2011 NEXCOM International Co., Ltd. All Rights Reserved.

51

Appendix C: GPI/O Programming Guide

PEAK 876VL2/877VL2 User Manual

GetInput

PROC

mov

al, 0F1h

out

2eh, al

in

2fh

;Get GPIO1 input values.

ret
GetInput ENDP

Bit0 : GPI10
Bit1 : GP I11
Bit2 : GP I12
Bit3 : GP I13
Bit4 : Don’t care
Bit5 : Don’t care
Bit6 : Don’t care
Bit7 : Don’t care
===============================================
SetOutput PROC

mov

al, 0F1h

out

2eh, al

mov

al, 0xxh

out

2fh, al ;Set GPIO1 output values.

ret
SetOutput ENDP

xxh
Bit0 : Don’t care
Bit1 : Don’t care
Bit2 : Don’t care
Bit3 : Don’t care
Bit4 : GPO14
Bit5 : GPO15
Bit6 : GPO16
Bit7 : GPO17
ExitSetup

PROC

mov

al, 0AAh

out

2eh, al

ret
ExitSetup

ENDP

This manual is related to the following products: