Advantech PCM-9588 user manual Test Write Multiple Output Pins, 4.5 I2C, Read a byte, Write a byte

Page 54

!Test Write Multiple Output Pins

Click the radio button- Multiple-Pins.

Key in the pin number from ‘0x01’ to ‘0x0F’ to choose the multiple pin num- bers to write the value of the output pin. The pin numbers are ordered bit- wise, i.e. bit 0 stands for GPIO 0, bit 1 stands for GPIO 1, etc. For example, if you want to write pin 0, 1, and 3, the pin numbers should be ‘0x0B’.

Key in the value in (R/W) Result field from ‘0x01’ to ‘0x0F’ to write the value of the output pin. The pin numbers are ordered bitwise, i.e. bit 0 stands for GPIO 0, bit 1 stands for GPIO 1, etc. For example, if you want to set pin 0 and 1 high, 3 to low, the pin number should be ‘0x0B’, and then you should key in the value ‘0x0A’ to write.

Click the WRITE GPIO DATA button to write the GPIO output pins.

4.3.4.5I2C

When the application is executed, you can read or write a byte of data through I2C devices. All data must be read or written in hexadecimal system.

!Read a byte

Key in the slave device address in Slave address field.

Key in the register offset in Register Offset field.

Click the READ A BYTE button and then a byte of data from the device will be shown on the Result field.

!Write a byte

Key in the slave device address in Slave address field.

Key in the register offset in Register Offset field.

Key in the desirous of data in Result field to write to the device.

Click the WRITE A BYTE button and then the data will be written to the device through I2C.

PCM-9588 User Manual

44

Image 54
Contents PCM-9588 Copyright AcknowledgementsRepairs under Warranty Product Warranty 2 yearsWarranty Period Exclusions from WarrantyDeclaration of Conformity Technical Support and AssistanceFCC Class a Ordering information Optional accessoriesPacking List Model Number DescriptionPage Contents Introduction & Installation Appendix aOptional Extras for the PCM-9588 Page Chapter Chipset Product SpecificationsIntroduction Functional SpecGeneral Introduction Chipset ICH6M I/O Other chipsetWeight g with Cooler 480 g Mechanical SpecificationsElectrical Specifications Power supply VoltagePCM-9588 ATX Power Consumption Environment Specifications Operating HumidityPage W Installation Jumper Settings JumpersJumper list JP8 LCD Panel Power Select Jumper descriptionJP9 Backlight control select Connector Settings ConnectorsConnector list Connector ListVGA connector CN8 Power connector CN5Inverter connector CN6 Lvds connector CN9COM port connector CN19, CN41 IDE Connector CN162.12 PC-104 plus connector CN17 USB connectors CN20, CN28, CN38Sata Connector CN31 and CN32 2.20 -V5 and -V12 connector CN27DVI interface connector CN30 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 Boot Up NumLock Status Disabled First / Second / Third / Other Boot DriveBoot Up Floppy Seek Disabled Boot Up NumLock StatusEnabledAdvanced Chipset Features Integrated Peripherals Super IO Device OnChip IDE DeviceOnboard Device Onboard Serial port 1 3F8Power Management Setup HDD Power Down Disabled Run VGA Bios if S3 Resume AutoPower Management Min Saving Suspend Mode 1 HourPCI VGA Palette Snoop Disabled 7 PnP/PCI ConfigurationsReset Configuration Data Disabled Init Display First PCI SlotCurrent System/CPU Temp Show Only Shutdown Temperature DisabledPC Health Status V / 3.3 V / 5 V / 12 V Show OnlyLoad Optimized Defaults Spread Spectrum DisabledFrequency/voltage Control Set Password To Establish PasswordSave & Exit Setup To Change PasswordTo Disable Password Quit Without Saving Page W Introduction & Installation Windows XP Professional Driver InstallationS/W Introduction Other OSSusi Application Library Susi IntroductionSusi Functions Watchdog API Susi InstallationVGA Control API Hardware Monitor APIExpress Installation Manual InstallationWindows CE Sample Programs Windows Graphics ModeSusi Sample Programs SusiDemo.exeTest Read Multiple Input Pin GpioTest Read Single Input Pin Test Write Single Output PinRead a byte Test Write Multiple Output Pins4.5 I2C Write a byteSMBus Read a wordWrite a word Read Multiple bytesWrite Multiple bytes VGA Control Screen on/off controlBrightness control Watchdog Hardware Monitor Page Extension I/O Installation PC-104 plus PCIAppendix a Table A.1 CN2 CD In connector CN2 CD in connectorCN4 Audio connector Table A.2 CN4 Audio connectorCN5 Power connector Table A.3 CN5 Power connectorTable A.4 CN6 Inverter connector CN6 Inverter connectorCN8 VGA 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 connectorTable A.10 CN13 HDD LED and Power LED 10 CN13 HDD LED and Power LED11 CN15 LPT / FDD connector 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 ConnectorTable A.15 CN20 USB1/2 Connector 15 CN20 USB1/2 Connector16 CN22 Reset Button connector Table A.16 CN22 Reset Bottom ConnectorTable A.17 CN23 Power Button Connector 17 CN23 Power Button connector18 CN24 SIR connector Table A.18 CN24 SIR ConnectorTable A.19 CN25 PS2 Keyboard/Mouse connector 19 CN25 PS2 Keyboard/Mouse connector20 CN26 CF Typeii connector Table A.20 CN26 CF Typeii connector21 CN27 -V5 and -V12 connector Table A.21 CN27 -V5 and -V12 connector23 CN29 DDR2 Sodimm Socket 22 CN28 USB3/4 ConnectorTable A.22 CN28 USB3/4 Connector Table A.23 CN29 DDR2 Sodimm Socket24 CN30 DVI connector Table A.24 CN30 DVI ConnectorTable A.25 CN31 Sata 1 connector 25 CN31 Sata 1 connector26 CN32 Sata 2 connector Table A.26 CN32 Sata 2 connectorTable A.27 CN33 Battery Connector 27 CN33 Battery Connector28 CN34 LAN LED connector Table A.28 CN34 LAN LED ConnectorTable A.29 CN36 GPIO1 Connector 29 CN36 GPIO1 Connector30 CN37 GPIO2 Connector Table A.30 CN37 GPIO2 ConnectorTable A.31 CN38 USB5/6 Connector 31 CN38 USB5/6 Connector32 CN41 COM 5/6 RS-422 / 485 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 Over-current protection Input PowerPower requirement Rising timeI/O Port Table D.1 I/O Port