Advantech AIMB-221 manual Appendix a Programming the Watchdog Timer

Page 103

Dec dx

 

; Set second as counting unit

Mov

al,0f5h

 

Out

dx,al

 

Inc

dx

 

In

al,dx

 

And al,not 08h

 

Out

dx,al

 

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

 

Dec dx

 

; Set timeout interval as 10 seconds and start counting

Mov

al,0f6h

 

Out

dx,al

 

Inc

dx

 

Mov

al,10

 

Out

dx,al

 

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

 

Dec dx

 

; lock W83627HF

Mov

al,0aah

 

Out

dx,al

 

Enable watchdog timer and set 5 minutes as the timeout interval

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

 

Mov dx,2eh

; unlock W83627HF

Mov al,87h

 

Out dx,al

 

Out dx,al

 

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

 

Mov al,07h

; Select registers of watchdog timer

Out

dx,al

 

Inc

dx

 

Mov

al,08h

 

Out

dx,al

 

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

 

Dec dx

 

; Enable the function of watchdog timer

Mov

al,30h

 

Out

dx,al

 

Inc

dx

 

Mov

al,01h

 

Out

dx,al

 

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

 

Dec dx

 

; Set minute as counting unit

Mov

al,0f5h

 

Out

dx, al

 

Inc

dx

 

In

al,dx

 

Or al, 08h

 

Out

dx,al

 

Appendix A Programming the Watchdog Timer

93

AIMB-221 User Manual

Image 103
Contents AIMB-221 Message to the Customer Copyright AcknowledgementsDeclaration of Conformity AIMB-221 Memory Tested for Compatibility Memory CompatibilityProduct warranty Initial Inspection Contents Award Bios Setup Advanced Chipset Features screen Chipset Software Installation Utility VGA Setup71 Chapter Introduction FeaturesSystem SpecificationsMemory Input/Output Jumpers and ConnectorsIndustrial features Mechanical and environmental specificationsChapter Board Layout Jumper and Connector LocationsAMD M690E AIMB-221 Block DiagramLabel Function How to set jumpers Safety Precautions Jumper SettingsCmos clear JCMOS1 Watchdog timer output JWDT1ATX/AT mode selector JPSON1 Cache Memory Memory Installation ProceduresProcessor Installation System MemoryID SEL PCI Bus Routing TableMINIPCI1 Routing AD28 / #INTE / #INTF PCI#IDSELAD28 Connecting Peripherals Primary IDE1 IDE Connector IDE1 Connecting PeripheralsPIN DVI2 OptionalConnecting Peripherals Front Panel Connectors JFP1, JFP2, JFP3 JFP1 ATX Soft Power Switch JFP1Reset Connector JFP1 External Speaker JFP2SM Bus Connector JFP2 PIN6,8 HDD LED Connector JFP2JFP2 JFP3 Power LED and keyboard lock connector JFP3JPSON1 ATX/AT Mode Selector JPSON1COM5 Serial Port Header COM 3/4/5/6COM3 COM4CPUFAN1 CPU Fan Connector CPU Fan1SYSFAN1 System Fan SYSFAN1, SYSFAN2SYSFAN2 Parallel Port LPT1 LPT1 JSETCOM1 JSETCOM2 JSETCOM2RS-422 GPIO1 GPIO1HDMI1 VGA1 VGA HdmiLAN1USB12 14 LAN1USB12LAN2USB34 15 LAN2USB34USB56 16 USB56USB78 17 USB78AUDIO1 AudioFPAUD1 FPAUD1SPKOUT1 SPKOUT1Serial ATA Interface SATA1, SATA2, SATA3, SATA4 SATA1 SATA2 SATA3 SATA4 SATA2INV1 22 INV1TVOUT1 23 VGA2 TV-Out OptionalRight click the grey TV icon and select the display mode Lvds LVDS1 JLVDS1 Lvds Power Jumper JLVDS1Page Award Bios Setup Bios Setup program Cmos RAM Auto-backup and Restore Entering SetupIDE channel 0/1 Master/Slave Standard Cmos SetupDate TimeVideo Advanced Bios FeaturesHalt On First/Second/Third Boot Device CPU FeaturesHard Disk Boot Priority Quick Power On Self TestTypematic Delay msec Boot Up Floppy SeekBoot Up NumLock Status Typematic Rate SettingMemory Hole At 15M-16M Advanced Chipset FeaturesDvmt / Fixed Memory Size Dvmt ModeIntegrated Peripherals On-Chip Frame Buffer SizeSata Mode IDE HDD Block ModeIDE DMA Transfer Access IDE Primary Master/Slave PIO/UDMA Mode AutoAward Bios Setup On board LAN2 ROM Legacy mode supportOn board LAN1 ROM Onboard LAN2 ControlPower Management Setup PowerOn by Modem Suspend ModeHDD Power Down PowerOn by LANPnP/PCI Configurations PC Health Status Spread Spectrum Frequency / Voltage ControlPlease Enter Your Password Password SettingExit Without Saving Save & Exit SetupPage Chipset Software Installation Utility VGA Setup Before you begin Chipset Software Installation Utility and VGA Setup Windows XP Driver Setup Chipset Software Installation Utility and VGA Setup Page Chipset Software Installation Utility and VGA Setup Page Chipset Software Installation Utility and VGA Setup Page LAN Configuration Win XP Driver Setup LAN InstallationLAN Configuration Click Finish to complete the installation AC97 Audio Setup Windows XP Driver Setup AC97 AC97 Audio Setup Page Appendix a Reset/Interrupt selection Watchdog timer overviewProgramming the Watchdog Timer Appendix a Programming the Watchdog Timer Example Programs Table A.1 Watchdog timer registersAppendix a Programming the Watchdog Timer Page Appendix a Programming the Watchdog Timer Page Appendix a Programming the Watchdog Timer