Advantech PCM-3362 user manual

Page 86

;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 mov bx,02AAh mov cl,01 INT15

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

;Get GPIO status

;Input:

;ax=5E87h

;bh=03h

;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 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

mov ax,5E87h mov bh,03h mov cl,01h INT15

;You will get GPIO value from bl ;=============================================================== ;===============================================================

;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

PCM-3362 User Manual

78

Image 86
Contents PCM-3362 Copyright Acknowledgements Declaration of Conformity Packing ListAdditional Information and Assistance FCC Class a Contents AMI Bios Setup Appendix C Appendix aAppendix B Appendix D Watchdog Timer and Gpio sample Chapter General InformationIntroduction FeaturesSpecifications Standard PC/104-plus Biscuit SBC FunctionsOS support 2 VGA/LVDS InterfaceEthernet Interface Mechanical and EnvironmentalBoard layout dimensions Board layout Dimensions Component SideBoard layout Dimensions Solder Side Page Hardware Installation Connectors JumpersConnectors component side Connectors solder sideSetting Jumpers Block diagramOpen Closed Lvds Panel Power Select JP2Clear Cmos JP1 3 COM3 RS422/RS485 Select JP3 Installing SODIMMsFlash PCI I/O Voltage Select JP4High Definition Audio Interface CN1 USB connectors CN9 & CN10Front Panel Connector CN12 VGA/LCD interface connectionsCOM port connector CN16 & CN17 Buzzer Connector CN13Sata Connector CN15 Giga LAN Connector CN18Power Connectors CN24 Gpio Connector CN21ATX Power in connector CN23 19 I2C Bus connector CN25Page AMI Bios Setup Entering Setup Main SetupAdvanced Bios Features Setup System time / System dateHyper Threading Technology CPU ConfigurationExecute-Disable Bit Capability Intel SpeedStepTM techIDE Configuration Serial Port1 / Port2 / Port3 IRQ Super I/O ConfigurationHardware Health Configuration Auto Direction Control SelReport Video on S3 Resume Acpi SettingsTemperature & Voltage show AMI Oemb table Headless modeAcpi Apic support High Performance Event Timer Ahci ConfigurationEnergy Lake Feature USB Device Wakeup From S3/S4APM Configuration Mark all events as read Event Log ConfigurationMPS Configuration Clear Event LogUSB 2.0 Controller Mode Smbios ConfigurationUSB Configuration Hotplug USB FDD Support Advanced PCI/PnP SettingsBios Ehci Hand-Off Emulation TypeAllocate IRQ to PCI VGA PCI Latency TimerPlug & Play O/S Palette SnoopingQuiet Boot Boot SettingsBoot settings Configuration AddOn ROM Display ModeSecurity Setup Configure Dram Timing by SPD Advanced Chipset SettingsNorth Bridge Chipset Configuration Memory HoleDVMT/FIXED Memory South Bridge Chipset ConfigurationBoot Display Device Flat Panel TypeExit Option Save Changes and ExitDiscard Changes and Exit Load Optimal DefaultsLoad Fail-Safe Defaults Software Introduction & Installation S/W Introduction Driver InstallationValue-Added Software Services Software APIs Gpio APISusi.lib Susi InstallationSusi Utilities Susi.dllExpress Installation Manual InstallationSample Programs Windows Graphics ModeSusi Sample Programs SusiDemo.exeSoftware Introduction & Installation I2C SMBusSoftware Introduction & Installation Display Control WatchdogHardware Monitor Page Chipset Software Installation Utility Windows XP/Vista/Win7 Driver Setup Before You BeginIntegrated Graphic Device Setup Windows XP/ Vista /Win7 Driver Setup LAN Configuration Installation Appendix a Pin AssignmentsJumper and Connector Tables JP1 Clear CmosAppendix a Pin Assignments CN7 6 8 CN9CN12 Front panel Connector Part Number CN16 COM1~COM2 Connector Part Number 6 8 CN21 Gpio Connector Part Number CN25 I2C BUS connector Part Number Appendix B System AssignmentsDMA channel assignments System I/O Ports1st MB Memory Map Interrupt assignments Table B.4 Interrupt assignmentsPage Appendix C Mechanical DrawingsBoard Mechanical Drawings Figure C.1 PCM-3362 Mechanical Drawing Component SideAppendix C Mechanical Drawings Heatsink Mechanical Drawings Figure C.3 PCM-3362N Heatsink Mechanical DrawingOptional Heat spreader Mechanical Drawings Figure C.5 PCM-3362 optional Heatspreader Mechanical DrawingPage Watchdog Timer and Gpio sample code Appendix DWatchdog Timer sample code Bit 10=Reserved Bit 62Reserve=00000Appendix D Watchdog Timer and Gpio sample code Gpio sample codePage Appendix D Watchdog Timer and Gpio sample code