Advantech AIMB-221 manual Example Programs, Table A.1 Watchdog timer registers

Page 102

Table A.1: Watchdog timer registers

Address of

Read/Write

Value (2F) & description

register (2E)

 

 

 

 

 

87 (hex)

-----

Write this address to I/O address port 2E (hex) twice to

 

 

unlock the W83627HF

07 (hex)

write

Write 08 (hex) to select register of watchdog timer.

30 (hex)

write

Write 01 (hex) to enable the function of the watchdog

 

 

timer. Disabled is set as default.

F5 (hex)

write

Set seconds or minutes as units for the timer. Write 0 to

 

 

bit 3: set seconds as counting unit. [default]. Write 1 to bit

 

 

3: set minutes as counting unit.

F6 (hex)

write

0: stop timer [default]

 

 

01 ~ FF (hex): The amount of the count, in seconds or

 

 

minutes, depends on the value set in register F5 (hex).

 

 

This number decides how long the watchdog timer waits

 

 

for strobe before generating an interrupt or reset signal.

 

 

Writing a new value to this register can reset the timer to

 

 

count with the new value.

F7 (hex)

read/write

Bit 6: Write 1 to enable keyboard to reset the timer, 0 to

 

 

disable.[default]

 

 

Bit 5: Write 1 to generate a timeout signal immediately

 

 

and automatically return to 0. [default=0]

 

 

Bit 4: Read status of watchdog timer, 1 means timer is

 

 

"timeout".

AA (hex)

-----

Write this address to I/O port 2E (hex) to lock the watch-

 

 

dog timer 2.

A.3.1 Example Programs

Enable watchdog timer and set 10 seconds 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

 

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

 

AIMB-221 User Manual

92

Image 102
Contents AIMB-221 Copyright Acknowledgements Message to the CustomerDeclaration of Conformity Memory Compatibility AIMB-221 Memory Tested for CompatibilityProduct warranty Initial Inspection Contents Award Bios Setup Advanced Chipset Features screen Chipset Software Installation Utility VGA Setup71 Chapter Features IntroductionSpecifications SystemMemory Mechanical and environmental specifications Jumpers and ConnectorsIndustrial features Input/OutputBoard Layout Jumper and Connector Locations ChapterAIMB-221 Block Diagram AMD M690ELabel Function Safety Precautions Jumper Settings How to set jumpersWatchdog timer output JWDT1 Cmos clear JCMOS1ATX/AT mode selector JPSON1 System Memory Memory Installation ProceduresProcessor Installation Cache MemoryPCI Bus Routing Table ID SELMINIPCI1 Routing AD28 / #INTE / #INTF PCI#IDSELAD28 Connecting Peripherals Primary IDE1 IDE Connector Connecting Peripherals IDE1DVI2 Optional PINConnecting Peripherals Front Panel Connectors JFP1, JFP2, JFP3 External Speaker JFP2 ATX Soft Power Switch JFP1Reset Connector JFP1 JFP1HDD LED Connector JFP2 SM Bus Connector JFP2 PIN6,8JFP2 Power LED and keyboard lock connector JFP3 JFP3ATX/AT Mode Selector JPSON1 JPSON1COM4 Serial Port Header COM 3/4/5/6COM3 COM5CPU Fan Connector CPU Fan1 CPUFAN1System Fan SYSFAN1, SYSFAN2 SYSFAN1SYSFAN2 Parallel Port LPT1 LPT1 JSETCOM1 JSETCOM2 JSETCOM2RS-422 GPIO1 GPIO1VGA Hdmi HDMI1 VGA114 LAN1USB12 LAN1USB1215 LAN2USB34 LAN2USB3416 USB56 USB5617 USB78 USB78Audio AUDIO1FPAUD1 FPAUD1SPKOUT1 SPKOUT1Serial ATA Interface SATA1, SATA2, SATA3, SATA4 SATA2 SATA1 SATA2 SATA3 SATA422 INV1 INV123 VGA2 TV-Out Optional TVOUT1Right click the grey TV icon and select the display mode Lvds LVDS1 Lvds Power Jumper JLVDS1 JLVDS1Page Award Bios Setup Bios Setup program Entering Setup Cmos RAM Auto-backup and RestoreTime Standard Cmos SetupDate IDE channel 0/1 Master/SlaveAdvanced Bios Features VideoHalt On Quick Power On Self Test CPU FeaturesHard Disk Boot Priority First/Second/Third Boot DeviceTypematic Rate Setting Boot Up Floppy SeekBoot Up NumLock Status Typematic Delay msecAdvanced Chipset Features Memory Hole At 15M-16MOn-Chip Frame Buffer Size Dvmt ModeIntegrated Peripherals Dvmt / Fixed Memory SizeIDE Primary Master/Slave PIO/UDMA Mode Auto IDE HDD Block ModeIDE DMA Transfer Access Sata ModeAward Bios Setup Onboard LAN2 Control Legacy mode supportOn board LAN1 ROM On board LAN2 ROMPower Management Setup PowerOn by LAN Suspend ModeHDD Power Down PowerOn by ModemPnP/PCI Configurations PC Health Status Frequency / Voltage Control Spread SpectrumPassword Setting Please Enter Your PasswordSave & Exit Setup Exit Without SavingPage 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 Installation Win XP Driver Setup LANLAN Configuration Click Finish to complete the installation AC97 Audio Setup Windows XP Driver Setup AC97 AC97 Audio Setup Page Appendix a Watchdog timer overview Reset/Interrupt selectionProgramming the Watchdog Timer Appendix a Programming the Watchdog Timer Table A.1 Watchdog timer registers Example ProgramsAppendix a Programming the Watchdog Timer Page Appendix a Programming the Watchdog Timer Page Appendix a Programming the Watchdog Timer