Advantech PCM-3362 user manual Software APIs, Gpio API

Page 47

4.3.2Software APIs

PCM-3362 supports software APIs including GPIO, I2C, backlight on/off, Brightness control, watchdog, Hardware Monitor, and Power Saving.

4.3.2.1The GPIO API

General Purpose Input/Output is a flexible parallel interface that allows a variety of custom connections. It allows users to monitor the level of signal input or set the out- put status to switch on/off a device. Our API also provides Programmable GPIO, which allows developers to dynamically set the GPIO input or output status.

4.3.2.2The I2C API

I2C is a bi-directional two-wire bus that was developed by Philips for use in their tele- visions in the 1980s and nowadays is used in various types of embedded systems. The strict timing requirements defined in the I2C protocol has been taken care of by SUSI. Instead of asking application programmers to figure out the strict timing requirements in the I2C protocol, the I2C API in SUSI can be used to control I2C devices by invoking other function calls. SUSI provides a consistent programming interface for different Advantech boards. That means user programs using SUSI are portable among different Advantech boards as long as the boards and SUSI provide the required functionalities. Overall product development times can be greatly reduced using SUSI.

4.3.2.3The Display Control API

There are two kinds of VGA control APIs, backlight on/off control and brightness con- trol. Backlight on/off control allows a developer to turn on or off the backlight, and to control brightness smoothly.

1.Brightness Control

The Brightness Control API allows a developer to interface with an embed- ded device to easily control brightness.

2.Backlight Control

The Backlight API allows a developer to control the backlight (screen) on/off in an embedded device.

4.3.2.4The Watchdog API

A watchdog timer (abbreviated as WDT) is a hardware device which triggers an action, e.g. rebooting the system, if the system does not reset the timer within a spe- cific period of time. The WDT API in SUSI provides developers with functions such as starting the timer, resetting the timer, and setting the timeout value if the hardware requires customized timeout values.

4.3.2.5The Hardware Monitor API

The hardware monitor (abbreviated as HWM) is a system health supervision capabil- ity achieved by placing certain I/O chips along with sensors for inspecting the target of interests for certain condition indexes, such as fan speed, temperature and voltage etc.

However, due to the inaccuracy among many commercially available hardware mon- itoring chips, Advantech has developed a unique scheme for hardware monitoring - achieved by using a dedicated micro-processor with algorithms specifically designed for providing accurate, real-time and reliable data content; helping protect your sys- tem in a more reliable manner.

4.3.2.6The Power Saving API

1.CPU Speed

Chapter 4 Software Introduction & Installation

39

PCM-3362 User Manual

Image 47
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 General Information ChapterStandard PC/104-plus Biscuit SBC Functions FeaturesSpecifications IntroductionMechanical and Environmental 2 VGA/LVDS InterfaceEthernet Interface OS supportBoard layout Dimensions Component Side Board layout dimensionsBoard layout Dimensions Solder Side Page Hardware Installation Jumpers ConnectorsConnectors solder side Connectors component sideBlock diagram Setting JumpersOpen Closed Lvds Panel Power Select JP2Clear Cmos JP1 PCI I/O Voltage Select JP4 Installing SODIMMsFlash 3 COM3 RS422/RS485 Select JP3VGA/LCD interface connections USB connectors CN9 & CN10Front Panel Connector CN12 High Definition Audio Interface CN1Giga LAN Connector CN18 Buzzer Connector CN13Sata Connector CN15 COM port connector CN16 & CN1719 I2C Bus connector CN25 Gpio Connector CN21ATX Power in connector CN23 Power Connectors CN24Page AMI Bios Setup Main Setup Entering SetupSystem time / System date Advanced Bios Features SetupIntel SpeedStepTM tech CPU ConfigurationExecute-Disable Bit Capability Hyper Threading TechnologyIDE Configuration Auto Direction Control Sel Super I/O ConfigurationHardware Health Configuration Serial Port1 / Port2 / Port3 IRQReport Video on S3 Resume Acpi SettingsTemperature & Voltage show AMI Oemb table Headless modeAcpi Apic support USB Device Wakeup From S3/S4 Ahci ConfigurationEnergy Lake Feature High Performance Event TimerAPM Configuration Clear Event Log Event Log ConfigurationMPS Configuration Mark all events as readUSB 2.0 Controller Mode Smbios ConfigurationUSB Configuration Emulation Type Advanced PCI/PnP SettingsBios Ehci Hand-Off Hotplug USB FDD SupportPalette Snooping PCI Latency TimerPlug & Play O/S Allocate IRQ to PCI VGAAddOn ROM Display Mode Boot SettingsBoot settings Configuration Quiet BootSecurity Setup Memory Hole Advanced Chipset SettingsNorth Bridge Chipset Configuration Configure Dram Timing by SPDFlat Panel Type South Bridge Chipset ConfigurationBoot Display Device DVMT/FIXED MemorySave Changes and Exit Exit OptionDiscard Changes and Exit Load Optimal DefaultsLoad Fail-Safe Defaults Software Introduction & Installation S/W Introduction Driver InstallationValue-Added Software Services Gpio API Software APIsSusi.dll Susi InstallationSusi Utilities Susi.libManual Installation Express InstallationSusiDemo.exe Windows Graphics ModeSusi Sample Programs Sample ProgramsSoftware Introduction & Installation SMBus I2CSoftware Introduction & Installation Watchdog Display ControlHardware Monitor Page Chipset Software Installation Utility Before You Begin Windows XP/Vista/Win7 Driver SetupIntegrated Graphic Device Setup Windows XP/ Vista /Win7 Driver Setup LAN Configuration Installation Pin Assignments Appendix aJP1 Clear Cmos Jumper and Connector TablesAppendix a Pin Assignments CN7 CN9 6 8CN12 Front panel Connector Part Number CN16 COM1~COM2 Connector Part Number 6 8 CN21 Gpio Connector Part Number CN25 I2C BUS connector Part Number System Assignments Appendix BDMA channel assignments System I/O Ports1st MB Memory Map Table B.4 Interrupt assignments Interrupt assignmentsPage Mechanical Drawings Appendix CFigure C.1 PCM-3362 Mechanical Drawing Component Side Board Mechanical DrawingsAppendix C Mechanical Drawings Figure C.3 PCM-3362N Heatsink Mechanical Drawing Heatsink Mechanical DrawingsFigure C.5 PCM-3362 optional Heatspreader Mechanical Drawing Optional Heat spreader Mechanical DrawingsPage Appendix D Watchdog Timer and Gpio sample codeBit 10=Reserved Bit 62Reserve=00000 Watchdog Timer sample codeGpio sample code Appendix D Watchdog Timer and Gpio sample codePage Appendix D Watchdog Timer and Gpio sample code