Advantech PCM-9587 user manual Supported Gpio Register, Gpio Registers, Gpio Example program-1

Page 56

A.1 Supported GPIO Register

Below are detailed descriptions of the GPIO addresses and a programming sample.

A.1.1 GPIO Registers

CRF0 (GP10-GP17 I/O selection register. Default 0xFF)

When set to a '1', respective GPIO port is programmed as an input port. When set to a '0', respective GPIO port is programmed as an output port.

CRF1 (GP10-GP17 data register. Default 0x00)

If a port is programmed to be an output port, then its respective bit can be read/writ- ten.

If a port is programmed to be an input port, then its respective bit can only be read.

CRF2 (GP10-GP17 inversion register. Default 0x00)

When set to a '1', the incoming/outgoing port value is inverted.

When set to a '0', the incoming/outgoing port value is the same as in data register.

Extended Function Index Registers (EFIRs)

The EFIRs are write-only registers with port address 2Eh or 4Eh on PC/AT systems.

Extended Function Data Registers (EFDRs)

the EFDRs are read/write registers with port address 2Fh or 4Fh on PC/AT systems.

A.1.2 GPIO Example program-1

---------------------------------------------------------------------------------------------------------------

Enter the extended function mode, interruptible double-write

---------------------------------------------------------------------------------------------------------------

MOV DX,2EH

MOV AL,87H

OUT DX,AL

OUT DX,AL

---------------------------------------------------------------------------------------------------------------

Configured logical device 7 (GP10~GP17), configuration register CRF0,CRF1,CRF2

---------------------------------------------------------------------------------------------------------------

MOV DX,2EH

MOV AL,07H; point to Logical Device Number Reg.

OUT DX,AL

MOV DX,2FH

MOV AL,07H; select logical device 7 OUT DX,AL;

MOV DX,2EH

MOV AL,F0

OUT DX,AL

MOV DX,2FH

MOV AL,00H; 01:Input 00:output for GP10~GP17

OUT DX,AL

MOV DX,2EH

PCM-9587 User Manual

48

Image 56
Contents PCM-9587 Copyright Acknowledgements Order Information Optional accessoriesPacking List Declaration of Conformity Technical Support and AssistanceContents Software Configuration Appendix a Programming the Gpio and Watchdog Appendix E Appendix CChapter General InformationIntroduction FeaturesSpecifications General Information Board layout dimensions Board layout dimensions component sideInstallation Jumpers setting drawing JumpersInstallation J5 COM2 RS 232/422/485 SelectConnectors ConnectorsLocating jumpers and Connectors Jumper & Connector component sideSetting Jumpers Clear Cmos J3Installing DIMMs IDE, Cdrom hard drive connector CN15Connecting the hard drive Solid State DiskFloppy drive connector CN14 Parallel port connector CN16Keyboard and PS/2 mouse connector CN27 Connecting the floppy driveATX power ON/OFF switch con. pin 11-12 of CN22 Front Panel Connector CN22Power connectors CN25,CN5 17 VGA/LVDS interface connections CN7, CN8,CN9 COM port connector CN21Audio AC97 Link interfaces CN4 Ethernet configuration CN11 DVI LCD panel connectorCN919.1 100Base-T connector CN11 Network bootUSB connectors CN18,CN20 LCD Backlight connector CN1Sata Connector CN23, CN24 DIO connector CN19System FAN connector CN13 10 CN13 System FAN connectorPage Software Configuration Connections to LCD/ Flat Panel CN8 Connections to Standard LCDsLG LM150X06 1024x76816 colors Lvds LCD Award Bios Setup This chapter describes how to set Bios configuration dataAward Bios setup System configuration verificationEntering setup System test and initializationStandard Cmos Features setup Advanced Bios Features setupAdvanced Chipset Features setup Integrated PeripheralsPower Management Setup 7 PnP/PCI ConfigurationsPC Health Status Frequency/Voltage ControlLoad Optimized Defaults Set PasswordSave & Exit Setup Exit Without SavingPCI Graphic Chipset Display memoryDisplay types Dual/Simultaneous DisplayPCI Graphic Installation of the PCI Graphic driver Installation for Windows 2000/XPPCI Graphic Further Information Audio Setup Windows 2000/XP drivers Driver installationBefore you begin Audio Setup Page LAN Configuration Installation of Ethernet Driver Installation for WindowsLAN Configuration Choose Hardware Device Ethernet Controller LAN Configuration Page LAN Configuration Further information Programming Gpio and Watchdog Timer Appendix aGpio Example program-1 Supported Gpio RegisterGpio Registers Appendix a Programming the Gpio and Watchdog Timer Watchdog programming Pin Assignments This appendix provides special- ized information regardingTV Out Connector CN2 TV out optional by request CD-IN Connector CN3Table B.1 LCD Backlight Connector CN1 Table B.2 TV Out Connector CN2 TV out optional by request12V and -5V Connector CN6 Audio Output Connector CN4Power input Connector CN5 VGA Connector CN7 Lvds Connector CN8Table B.7 VGA Connector CN7 Table B.8 CN8 Lvds connector11 10/100M LAN Connector CN11 DVI Connector CN9Gigabit LAN Connector CN10 Optional Gigabit LAN LED Connector CN12 Optional Floppy Disk Drive Connector CN14Table B.12 Gigabit LAN LED Connector CN12 Table B.13 System FAN Connector CN13Primary HDD Connector CN15 Printer Port Connector CN16Table B.15 Primary HDD Connector CN15 Table B.16 Printer Port Connector CN16Table B.18 DIO Connector CN19 USB Connector CN18,20Table B.17 USB Connector CN18,20 Table B.19 COM Port Connector CN21 Table B.21 Sata Connector 1 CN23 Sata Connector 1 CN23Table B.20 Front panel Connector CN22 Sata Connector 2 CN24 CPU FAN Connector CN25Table B.22 Sata Connector 2 CN24 Table B.23 CPU FAN Connector CN25Table B.26 CPU FAN Connector wafer boxOptionalCN28 CPU FAN Connector wafer BoxOptionalCN28Table B.25 Keyboard and Mouse Connector CN27 Mini PCI ConnectorCN29 CompactFlash Card Connector CN30Table B.27 Mini PCI Connector CN29 Table B.28 CompactFlash Card Connector CN30Page Appendix C System AssignmentsSystem I/O Ports Table C.1 System I/O Ports1st MB memory map DMA channel assignmentsTable C.2 1st MB memory map Table C.3 DMA channel assignmentsInterrupt assignments Table C.4 Interrupt assignmentsAppendix D Optional Extras for the PCM-9587Table D.1 PCM-10586-6200E wiring kit PCM-10586-6200E Cable kit for PCM-9587Appendix E Mechanical DrawingsMechanical Drawings Figure E.1 PCM-9587 Mechanical Drawing component sideAppendix E Mechanical Drawings