Advantech PCM-9588 user manual RA02 Start

Page 92

;.....

;bit 7 = gpio 7 , 0 => Low; 1 => High ;===============================================================

;===============================================================

;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

;.....

;bit 7 = gpio 7 , 0 => Low; 1 => High

;output:

; ax=5E78 ;function success, other value means function fail ;===============================================================

;RA02 - END

 

 

;RA02 - START

 

 

mov

ax,5e87h

 

mov

bh,00h

 

int

15h

 

cmp

ax,5e78h

 

je

next_test

 

lea

dx, Error_Str1

mov

ah,09h

 

int

21h

 

jmp

Finish_Test

next_test:

 

 

xor

ch,ch

 

push

cx

;save NO. of GPIO chip

;RA02 - END

 

 

;1.Set GPIO 0,2,4,6 as output, GPI 1,3,5,7 as input

;RA02 - START

 

 

mov

ax,5e87h

 

mov

bx,02aah

 

int

15h

 

;RA02 - END

 

 

;2. Set GPIO 0,2,4,6 Output Low

;RA02 - START

 

 

pop

cx

;restore NO. of GPIO chip

push

cx

;save NO. of GPIO chip

mov

ax,5e87h

 

PCM-9588 User Manual

82

Image 92
Contents PCM-9588 Copyright AcknowledgementsProduct Warranty 2 years Warranty PeriodRepairs under Warranty Exclusions from WarrantyFCC Class a Declaration of ConformityTechnical Support and Assistance Optional accessories Packing ListOrdering information Model Number DescriptionPage Contents Introduction & Installation Appendix aOptional Extras for the PCM-9588 Page Chapter Product Specifications IntroductionChipset Functional SpecGeneral Introduction Chipset ICH6M I/O Other chipsetMechanical Specifications Electrical SpecificationsWeight g with Cooler 480 g Power supply VoltagePCM-9588 ATX Power Consumption Environment Specifications Operating HumidityPage W Installation Jumper list Jumper SettingsJumpers JP9 Backlight control select JP8 LCD Panel Power SelectJumper description Connectors Connector listConnector Settings Connector ListPower connector CN5 Inverter connector CN6VGA connector CN8 Lvds connector CN9IDE Connector CN16 2.12 PC-104 plus connector CN17COM port connector CN19, CN41 USB connectors CN20, CN28, CN382.20 -V5 and -V12 connector CN27 DVI interface connector CN30Sata Connector CN31 and CN32 LAN LED connector CN34Jumper and Connector Locations MechanicalBoard Dimensions Board Dimension Layout Component SidePage Bios Operation Bios Introduction Bios SetupMain Menu Standard Cmos Features Advanced Bios Features First / Second / Third / Other Boot Drive Boot Up Floppy Seek DisabledBoot Up NumLock Status Disabled Boot Up NumLock StatusEnabledAdvanced Chipset Features Integrated Peripherals OnChip IDE Device Onboard DeviceSuper IO Device Onboard Serial port 1 3F8Power Management Setup Run VGA Bios if S3 Resume Auto Power Management Min SavingHDD Power Down Disabled Suspend Mode 1 Hour7 PnP/PCI Configurations Reset Configuration Data DisabledPCI VGA Palette Snoop Disabled Init Display First PCI SlotShutdown Temperature Disabled PC Health StatusCurrent System/CPU Temp Show Only V / 3.3 V / 5 V / 12 V Show OnlyFrequency/voltage Control Load Optimized DefaultsSpread Spectrum Disabled Set Password To Establish PasswordTo Disable Password Save & Exit SetupTo Change Password Quit Without Saving Page W Introduction & Installation Driver Installation S/W IntroductionWindows XP Professional Other OSSusi Functions Susi Application LibrarySusi Introduction Susi Installation VGA Control APIWatchdog API Hardware Monitor APIWindows CE Express InstallationManual Installation Windows Graphics Mode Susi Sample ProgramsSample Programs SusiDemo.exeGpio Test Read Single Input PinTest Read Multiple Input Pin Test Write Single Output PinTest Write Multiple Output Pins 4.5 I2CRead a byte Write a byteSMBus Read a wordWrite Multiple bytes Write a wordRead Multiple bytes Brightness control VGA ControlScreen on/off control Watchdog Hardware Monitor Page Extension I/O Installation PC-104 plus PCIAppendix a CN2 CD in connector CN4 Audio connectorTable A.1 CN2 CD In connector Table A.2 CN4 Audio connectorCN5 Power connector Table A.3 CN5 Power connectorCN6 Inverter connector CN8 VGA connectorTable A.4 CN6 Inverter connector Table A.5 CN8 VGA connectorCN9 Lvds connector Table A.6 CN9 Lvds connectorCN10 TTL connector High Bits Table A.7 CN10 TTL connector High BitsCN11 TTL connector Low Bits Table A.8 CN11 TTL connector Low BitsCN12 LAN connector Table A.9 CN12 LAN connector10 CN13 HDD LED and Power LED 11 CN15 LPT / FDD connectorTable A.10 CN13 HDD LED and Power LED Table A.11 CN15 LPT / FDD connector12 CN16 IDE connector Table A.12 CN16 IDE connector13 CN17 PC104-plus connector Table A.13 CN17 PC-104/+ Connector14 CN19 COM1~4 connector Table A.14 CN19 COM1~4 Connector15 CN20 USB1/2 Connector 16 CN22 Reset Button connectorTable A.15 CN20 USB1/2 Connector Table A.16 CN22 Reset Bottom Connector17 CN23 Power Button connector 18 CN24 SIR connectorTable A.17 CN23 Power Button Connector Table A.18 CN24 SIR Connector19 CN25 PS2 Keyboard/Mouse connector 20 CN26 CF Typeii connectorTable A.19 CN25 PS2 Keyboard/Mouse connector Table A.20 CN26 CF Typeii connector21 CN27 -V5 and -V12 connector Table A.21 CN27 -V5 and -V12 connector22 CN28 USB3/4 Connector Table A.22 CN28 USB3/4 Connector23 CN29 DDR2 Sodimm Socket Table A.23 CN29 DDR2 Sodimm Socket24 CN30 DVI connector Table A.24 CN30 DVI Connector25 CN31 Sata 1 connector 26 CN32 Sata 2 connectorTable A.25 CN31 Sata 1 connector Table A.26 CN32 Sata 2 connector27 CN33 Battery Connector 28 CN34 LAN LED connectorTable A.27 CN33 Battery Connector Table A.28 CN34 LAN LED Connector29 CN36 GPIO1 Connector 30 CN37 GPIO2 ConnectorTable A.29 CN36 GPIO1 Connector Table A.30 CN37 GPIO2 Connector31 CN38 USB5/6 Connector 32 CN41 COM 5/6 RS-422 / 485 connectorTable A.31 CN38 USB5/6 Connector Table A.32 CN41 COM 5/6 / 422 / 485 connectorAppendix B PCM-10586-9588E Cable kit for PCM-9588 Table B.1 PCM-10586-9588E Cable kit for PCM-9588Appendix C Watchdog Timer Gpio Sample Code RA02 StartRA02 Start Ax=5E78 RA02 Start Mov Bx,0400h Int 15h RA02 END Check GPI 1,3,5,7 value RA02 Start CH device ID Newiodelay Push ax push cx Mov Dx,SMBusPort +04h Al,ch Clc Mov Cx,0800h ChkI2cOK Al,dx Get status END Page Appendix D Input Power Power requirementOver-current protection Rising timeI/O Port Table D.1 I/O Port