Creative PCA-6780 Appendix a Programming Gpio & Watchdog Timer, Supported Gpio Register

Page 64

Appendix A Programming GPIO & Watchdog Timer

A.1 Supported GPIO Register

Below are detailed description of the GPIO addresses and 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/written.

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.

PCA-6780 User Manual

54

Image 64
Contents PCA-6780 Copyright AcknowledgementsPacking List Additional Information and Assistance Page Page Contents Appendix a Programming Gpio & Watchdog Timer Table B.5IR Connector Appendix C General Information Introduction Features SpecificationsStandard SBC Functions System chipsets Intel 852GM +ICH4Display Interface Solid State diskEthernet interface Mechanical and EnvironmentalBoard layout dimensions Board layout dimensions component sidePage Installation Jumpers JumpersConnectors ConnectorsLocating Connectors component side Locating Connectors solder sideSetting Jumpers Clear Cmos J1 Clear Cmos J1Lvds Panel Power Select JP1 Lvds Panel Power SelectCOM2 RS-232/422/485 Select J2 COM2 RS-232/422/485 SelectInstalling SODIMMs ATX power Connector CN5CompactFlash Socket Printer port Connector CN4CompactFlash CN22 Floppy Connector CN3 Connecting the floppy driveIDE Connector CN2 Connecting the hard driveCRT display Connector CN10 Lvds LCD panel Connector CN8LCD Inverter Connector CN6 15 VGA/LVDS interface connectionsUSB Connectors CN9,CN11 Ethernet configurationLAN Connector CN13 Network bootHDD LED/Reset/Power Button CN1 Reset Pin7&Pin8Power Button Pin9&Pin10 HDD LED Pin1&Pin2,Pin3&Pin4,Pin5&Pin6COM port Connector CN14,CN15 Mini Keyboard Connector CN17External Keyboard Connector CN18 Audio Interface Connector CN7Page Bios Operation Bios Introduction Bios Setup Control KeysMain Menu Load Optimized Defaults Set PasswordSave & Exit Setup Exit Without SavingStandard Cmos Features Halt on Base MemoryExtended Memory Total MemoryAdvanced Bios Features First / Second / Third / Other Boot Drive Swap Floppy DriveDisabledBoot Up Floppy SeekDisabled Boot Up NumLock StatusDisabledSecurity OptionSetup Video Bios ShadowEnabledFull Screen Logo ShowEnabled MPS Version Control for OS1.4Advanced Chipset Features System Bios CacheableEnabled Video Bios CacheableDisabledMemory Hole At 15M-16MDisabled Delayed Transaction EnabledBoot Display Vbios Default On-Chip VGA EnabledOn-Chip Frame Buffer Size 32MB Integrated Peripherals OnChip IDE DeviceOnboard Device Super IO DevicePower Management Setup Acpi FunctionEnabledRun VGA Bios if S3 ResumeAuto Power ManagementMin SavingSuspend Mode 1 Hour HDD Power Down Mode15 MinSoft-Off by PWR-BTTNEnabled Wake-Up by PCI cardEnabledUSB KB Wake-Up From S3Enabled Resume by AlarmDisabled7 PnP/PCI Configurations PC Health Status Shutdown Temperature DisabledCurrent System/CPU Temp Show Only Auto Detect PCI Clk Enabled Spread Spectrum DisabledCPU Host/SRC/PCI Clock Default Frequency/Voltage ControlLoad Optimized Defaults To Establish Password Set PasswordTo Change Password To Disable Password Save & Exit Setup Quit Without SavingPage Page Driver Installation Driver Introduction StepDriver Installation Install Intel INF Update Driver for Windows XP/2000Install Intel Graphic Driver for Windows XP 2000 Install Audio Driver for Windows XP/2000Page Programming Gpio & Watchdog Timer Supported Gpio Register Appendix a Programming Gpio & Watchdog TimerGpio Registers Gpio Example program-1 MOV DX,2EH MOV AL,AAH OUT DX,AL Watchdog programming Page Pin Assignments Table B.1 HDD LED/Reset/Power Button CN1 HDD LED/Reset/Power Button CN1Appendix B Pin Assignments Primary IDE Connector CN2 Table B.2 Primary IDE Connector CN2Floppy Connector Table B.3 Floppy ConnectorPrinter Port Connector IR ConnectorTable B.4 Printer Port Connector Table B.5 IR ConnectorLvds Connector CN8 Table B.8 Lvds Connector CN8Audio Interface CN7 Table B.7 Audio Interface CN7USB port 1, 2 Connector CN9 SUB VGA Connector CN10USB port 3,4 Connector CN11 12 PC 104 ConnectorCOM port 1 RS-232CN14 LAN RJ45 Connector CN13COM port 2 RS-232/422/485CN15 ATX Power Connector CN16 17 KB/MS Connector CN17External KB/mouse Connector CN18 ISA Gold Finger CN19 ATX Suspend Power Connector CN20CF Connector CN22 Negative Power Input CN21Table B.19 Negative Power Input CN21 Lvds Voltage Choose JP1 3 232/422/485 SEL J2Table B.20 Lvds Voltage Choose JP1 Table B.21 Clear Cmos J1Page System Assignments System I/O Ports Appendix C System AssignmentsTable C.1 System I/O ports 1st MB memory map Table C.2 1st MB memory mapDMA channel assignments Table C.3 DMA channel assignmentsInterrupt assignments Table C.4 Interrupt assignments