Advantech PCM-9587 user manual Watchdog programming

Page 58

A.2 Watchdog programming

Bellow is a sample of programming code for controlling the Watchdog Timer function.

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

Enter the extended function mode, interruptible double-write

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

MOV DX,2EH

MOV AL,87H

OUT DX,AL

OUT DX,AL

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

Configured logical device 8, configuration register CRF6

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

MOV DX,2EH

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

OUT DX,AL

MOV DX,2FH

MOV AL,08H; select logical device 8 OUT DX,AL;

MOV DX,2EH

MOV AL,30H;Set watch dog activate or inactivate

OUT DX,AL

MOV DX,2FH

MOV AL,01H; 01:activate 00:inactivate OUT DX,AL;

MOV DX,2EH

MOV AL,F5H; Setting counter unit is second

OUT DX,AL

MOV DX,2FH

MOV AL,00H

OUT DX,AL;

MOV DX,2EH

MOV AL,F6H

OUT DX,AL

MOV DX,2FH

MOV AL,05H; Set 5 seconds

OUT DX,AL

;--------------------------------------------------------------------------------------------------------------

; Exit extended function mode

;--------------------------------------------------------------------------------------------------------------

MOV DX,2EH

MOV AL,AAH

OUT DX,AL

PCM-9587 User Manual

50

Image 58
Contents PCM-9587 Copyright Acknowledgements Packing List Optional accessoriesOrder Information Declaration of Conformity Technical Support and AssistanceContents Software Configuration Appendix a Programming the Gpio and Watchdog Appendix E Appendix CChapter General InformationSpecifications FeaturesIntroduction 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 J3Connecting the hard drive Installing DIMMsIDE, Cdrom hard drive connector CN15 Solid State DiskKeyboard and PS/2 mouse connector CN27 Floppy drive connector CN14Parallel port connector CN16 Connecting the floppy drivePower connectors CN25,CN5 Front Panel Connector CN22ATX power ON/OFF switch con. pin 11-12 of CN22 Audio AC97 Link interfaces CN4 COM port connector CN2117 VGA/LVDS interface connections CN7, CN8,CN9 19.1 100Base-T connector CN11 Ethernet configuration CN11DVI LCD panel connectorCN9 Network bootSata Connector CN23, CN24 USB connectors CN18,CN20LCD Backlight connector CN1 DIO connector CN19System FAN connector CN13 10 CN13 System FAN connectorPage Software Configuration LG LM150X06 1024x76816 colors Lvds LCD Connections to Standard LCDsConnections to LCD/ Flat Panel CN8 Award Bios Setup This chapter describes how to set Bios configuration dataEntering setup Award Bios setupSystem configuration verification 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 Display types ChipsetDisplay memory Dual/Simultaneous DisplayPCI Graphic Installation of the PCI Graphic driver Installation for Windows 2000/XPPCI Graphic Further Information Audio Setup Before you begin Driver installationWindows 2000/XP drivers 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 Registers Supported Gpio RegisterGpio Example program-1 Appendix a Programming the Gpio and Watchdog Timer Watchdog programming Pin Assignments This appendix provides special- ized information regardingTable B.1 LCD Backlight Connector CN1 TV Out Connector CN2 TV out optional by requestCD-IN Connector CN3 Table B.2 TV Out Connector CN2 TV out optional by requestPower input Connector CN5 Audio Output Connector CN412V and -5V Connector CN6 Table B.7 VGA Connector CN7 VGA Connector CN7Lvds Connector CN8 Table B.8 CN8 Lvds connectorGigabit LAN Connector CN10 Optional DVI Connector CN911 10/100M LAN Connector CN11 Table B.12 Gigabit LAN LED Connector CN12 Gigabit LAN LED Connector CN12 OptionalFloppy Disk Drive Connector CN14 Table B.13 System FAN Connector CN13Table B.15 Primary HDD Connector CN15 Primary HDD Connector CN15Printer Port Connector CN16 Table B.16 Printer Port Connector CN16Table B.17 USB Connector CN18,20 USB Connector CN18,20Table B.18 DIO Connector CN19 Table B.19 COM Port Connector CN21 Table B.20 Front panel Connector CN22 Sata Connector 1 CN23Table B.21 Sata Connector 1 CN23 Table B.22 Sata Connector 2 CN24 Sata Connector 2 CN24CPU FAN Connector CN25 Table B.23 CPU FAN Connector CN25Table B.25 Keyboard and Mouse Connector CN27 CPU FAN Connector wafer BoxOptionalCN28Table B.26 CPU FAN Connector wafer boxOptionalCN28 Table B.27 Mini PCI Connector CN29 Mini PCI ConnectorCN29CompactFlash Card Connector CN30 Table B.28 CompactFlash Card Connector CN30Page Appendix C System AssignmentsSystem I/O Ports Table C.1 System I/O PortsTable C.2 1st MB memory map 1st MB memory mapDMA channel assignments 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