Advantech PCM-9588 user manual Susi Sample Programs, Windows Graphics Mode, SusiDemo.exe

Page 52

4.3.4SUSI Sample Programs

4.3.4.1Sample Programs

The sample programs demonstrate how to incorporate SUSI into your program. There are sample programs for two categories of operating system, i.e. Windows XP and Windows CE. The sample programs run in graphics mode in Windows XP and Windows CE. The sample programs are described in the subsections below.

4.3.4.2Windows Graphics Mode

There are sample programs of Windows in graphics mode for two categories of oper- ating system, i.e. Windows CE and Windows XP. Each demo application contains an executable file SusiDemo.exe, a shared library Susi.dll and source code within the release package. The files of Windows CE and Windows XP are not compatible with each other.

SusiDemo.exe is an executable file and it requires the shared library, Susi.dll, to demonstrate the SUSI functions. The source code of SusiDemo.exe also has two versions, i.e. Windows CE and Windows XP, and must be compiled under Microsoft Visual C++ 6.0 on Windows XP or under Microsoft Embedded Visual C++ 4.0 on Windows CE. Developers must add the header file Susi.h and library Susi.lib to their own projects when they want to develop something with SUSI.

4.3.4.3SusiDemo.exe

The SusiDemo.exe test application is an application which uses all functions of the SUSI Library. It has five major function blocks: Watchdog, GPIO, SMBus, I2C and VGA control. The following screen shot appears when you execute SusiDemo.exe. You can click function tabs to select test functions respectively. Some function tabs will not show on the test application if your platform does not support such functions. For a complete support list, please refer to Appendix A. We describe the steps to test all functions of this application.

PCM-9588 User Manual

42

Image 52
Contents PCM-9588 Copyright AcknowledgementsProduct Warranty 2 years Warranty PeriodRepairs under Warranty Exclusions from WarrantyTechnical Support and Assistance Declaration of ConformityFCC Class a 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 Jumpers Jumper SettingsJumper list Jumper description JP8 LCD Panel Power SelectJP9 Backlight control select 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 OnlySpread Spectrum Disabled Load Optimized DefaultsFrequency/voltage Control Set Password To Establish PasswordTo Change Password Save & Exit SetupTo Disable Password Quit Without Saving Page W Introduction & Installation Driver Installation S/W IntroductionWindows XP Professional Other OSSusi Introduction Susi Application LibrarySusi Functions Susi Installation VGA Control APIWatchdog API Hardware Monitor APIManual Installation Express InstallationWindows CE 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 wordRead Multiple bytes Write a wordWrite Multiple bytes Screen on/off control VGA ControlBrightness 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