IBM SAGP-845EV user manual Appendix a Watchdog Timer, INT 15H AH 6FH

Page 42

Appendix A Watchdog Timer

The Watchdog Timer is provided to ensure that standalone systems can always recover from catastrophic conditions that cause the CPU to crash. This condition may have occurred by external EMI or a software bug. When the CPU stops working correctly, hardware on the board will either perform a hardware reset (cold boot) or a Non-Maskable Interrupt (NMI) to bring the system back to a known state.

A BIOS function call (INT 15H) is used to control the Watchdog Timer:

INT 15H:

AH – 6FH

Sub-function:

AL – 2 : Set the Watchdog Timer’s period

BL : Time-out value(Its unit--second or minute, is dependent on the item “Watchdog Timer unit select” in CMOS setup).

The sub-function 2 needs to be called to set the time-out period of Watchdog Timer first. If the time-out value is not zero, the Watchdog Timer will start to count down. While the timer value reaches zero, the system will reset. To ensure that this reset condition does not occur, the Watchdog Timer must be periodically refreshed by calling sub-function 2. However the Watchdog timer will be disabled if the user set the time-out value to zero.

A tolerance of at least 10% must be maintained to avoid unknown routines within the operating system (DOS), such as disk I/O that can be very time-consuming.

Note: when exiting a program, it is necessary to disable the Watchdog Timer; otherwise the system will reset.

Example program:

;INITIAL TIMER PERIOD COUNTER

W_LOOP:

MOV

AX, 6F02H

;setting the time-out value

MOV

BL, 30

;time-out value is 48 seconds

INT

15H

 

;

;ADD YOUR APPLICATION PROGRAM HERE

CMP

EXIT_AP, 1

;is your application over?

JNE

W_LOOP

;No, restart your application

MOV

AX, 6F02H

;disable Watchdog Timer

MOV

BL, 0

;

INT

15H

 

;

 

 

; EXIT

 

 

;

 

 

 

 

42

Image 42
Contents Version With 10/100 Ethernet LAN & AGP4X VGA SBCCopyright Notice TrademarksSupport Table of Contents Specifications Introduction− For alternative applications, a keyboard and a PS/2 Package Contents Installation SAGP-845EV LayoutLayout Compact Flash Card Master/Slave Mode Setting Clear Cmos SetupKeyboard Power Selection CPU Voltage SettingTable of Connectors Label Function ConnectionFloppy Disk Drive Connector FDD1 FDC ConnectorUltra ATA33/66/100 IDE Disk Drive Connector IDE1 Primary IDE ConnectorIDE2 Secondary IDE Connector LPT1 Parallel Port Connector Parallel PortCOM1 10-pin Connector COM2 10-pin ConnectorSerial Ports Keyboard Connector USB Port ConnectorIrDA Infrared Interface Port Fan Connector LAN RJ45 ConnectorVGA Connector CDIN1 CD-IN Connector 1X42.54mm pin head Audio ConnectorsCN4 Audio Connector 2x82.00mm Right GND LeftGround Card DETECT1 Compact Flash Storage Card SocketCFA1 Compact Flash Storage Card Socket Pin Assignment Card DETECT2 GroundPW2 ATX12V Power Connector for CPU External Switches and IndicatorsPW1 ATX Power Switch Connector CN2 Multiple PanelPress DEL to enter Setup Award Bios SetupStarting Setup IntroductionUsing Setup Main MenuKey Function Advanced Bios Features Setup ItemsStandard Cmos Features Advanced Chipset FeaturesStandard Cmos Setup EGA/VGAIDE Main Menu Selections Options DescriptionMM DD Yyyy MonoCHS IDE AdaptersOptions Description LBAAdvanced Bios Features First/Second/Third/Other Boot Device Quick Power On Self TestLAN BootROM Boot Up Floppy SeekTypematic Delay Msec Boot Up NumLock StatusTypematic Rate Setting Gate A20 OptionReport No FDD For Win Small Logo EPA ShowDram Timing Selectable Advanced Chipset FeaturesAuto CAS Latency TimeVideo Bios Cacheable Dram RAS# to CAS# DelaySystem Bios Cacheable Delay TransactionOn-chip VGA Flash BiosIntegrated Peripherals On-Chip Primary/Secondary PCI IDEParallel Port Mode IDE HDD Block ModeUart Mode Select IDE Primary/Secondary Master/Slave UdmaS1POS Power Management SetupWatchdog Timer Unit DpmsFor SL CPU’s Power ManagementSuspend Mode Video Off MethodHDD Power Down Primary IDE Secondary IDE FDD, COM, LPT PortResource controlled by 10 PnP/PCI Configuration SetupReset Configuration Data IRQ ResourcesPCI/VGA Palette Snoop PC Health StatusIRQ3/4/5/7/9/10/11/12/14/15 assigned to VcoreSpread Spectrum Frequency/Voltage ControlAuto Detect PCI Clk CPU Host / 3V66 / PCI ClockDefaults Menu Supervisor/User Password Setting Enter PasswordPassword Disabled Exit Without Saving Exit SelectingSave to Cmos and Exit Y/N? Y Quit without saving Y/N? YAppendix a Watchdog Timer INT 15H AH 6FHPage Appendix B Address Mapping IO Address Map Address Range Description1st MB Memory Address Map Memory address Description IRQ Mapping TableDMA Channel Assignments Function Appendix C How to Upgrade a New Bios Bios Update ProcedureRecovering the previous Bios Install screenAppendix D AGP Slot