Eurotech Appliances CPU-1461 user manual Directly accessing Watch Dog I/O mapped registers

Page 45
How to turn the Watch Dog OFF

PC/104-PlusCPU-1461 Module

45

 

 

 

 

How to turn the Watch Dog OFF

Make a call to INT52h with AH=00Dh. The Watch Dog will be disabled. Then the Watch Dog doesn’t need to be periodically refreshed anymore.

Assembler code example:

MOV AH,00Dh

INT 052h

Directly accessing Watch Dog I/O mapped registers

This method must be used when the operating system you are using doesn’t allow you to use the System BIOS calls, or when you need a different timeout than 2 seconds.

The following assembler code examples explain how to handle the Super I/O (SPIO) National PC87364 Watch Dog:

IO_SPIO_WDT_BASE EQU 7030h ; National PC87364 SPIO Watch Dog

Use the following code to Enable Watch Dog :

; Configure Watch Dog Mask Register ...

MOV

DX,IO_SPIO_WDT_BASE+00001h

; Mask Register

IN

AL,DX

 

AND

AL,11110000b

; No IRQs refresh

OUT

DX,AL

 

; Set Time Unit ...

MOV

DX,IO_SPIO_WDT_BASE+002h

; Status Register

IN

AL,DX

 

AND

AL,NOT 10000100b

; Clear Time Unit

OUT

DX,AL

; Update Register

;Watch Dog in minutes now

IFDEF TIME_IN_SECONDS

;Add this code to set Watch Dog in seconds …

OR

AL,10000000b

; Set Seconds 1st step

OUT

DX,AL

; Update Register

OR

AL,00000100b

; Set Seconds 2nd step

OUT

DX,AL

; Update Register

ENDIF

; Set Timeout ...

Image 45
Contents EmbeddedDNA CPU-1461User’s Manual COPYRIGHT 1994-2005 Eurotech S.p.A. All Rights ReservedPC/104-Plus - CPU-1461 Module Conventions Environmental safetyImportant features or IconPage Multifunction Connector Section ContentsContents Connectors DescriptionChapter 6 Troubleshooting Chapter 5 Watch Dog TimerChapter 4 The Set-up Program AppendixChapter 1 Product Overview BIOS Flash Product DefinitionPower Supply ArchitectureChapter 2 Jumper Description Default Jumper Layout and ConfigurationJumper # TypeChapter 3 Connectors Description Note in figure 2, a red square pad indicates pin 1 of each connector Connectors LayoutJ14 J16 J17 J4J5Page J4 for Multifunction and VGA CPU-1461Carrier Module Multifunction Connector Section ƒ System reset The Eurotech Multifunction Adapterƒ External Battery ƒ SpeakerSupported CRT-VGA Video Resolutions VGA SectionIDE/DOM J5 IDE ConnectorUSB J7 for USB 2.0 Ports 5 andPower J9 Auxiliary Power ConnectorPower button input AuxiliaryThe Eurotech USB & AC97-Audio Codec Adapter J14 for USB 1.1 Ports 7 and 8 and Audio-CODECAux IN CD IN To J14 CPU Board ConnectorAux IN SpkPhone IN/OUTJ16 for USB 2.0 Ports 1to J17 for SERIAL1 and SERIAL2 Ethernet J20 for EthernetThe Eurotech Ethernet Transceiver To CPU Board NetConnectorRJ45 Connector Chapter 4 The Set-up Program Select “Quit” to exit from the Setup program Use the cursor arrow keys to move the highlight to other optionsPress the “ESC” key to return to the items of the Main menu The follow screen will be displayed General Page The Set-up pagesTime Quick BootDate Floppy disksDevices Page Boot Try SequenceFloppy Controller Video Controller Primary and secondary EIDEAC97 Controller NetworkSerial Ports 1 and Communications PageParallel Port VP2000 and VT100Parallel Port Mode ATAPI unit type Primary and Secondary ATAPI PageTranslation Mode PIO ModeCylinders HeadsDetect Now Advanced pagePCI Advanced Page ISA IRQLatency Time Devices ISA Bus Error Handling PageError on Video Error on KeyboardError on Floppy Disks Error on Fixed DisksPage This chapter explains how to use the Watch Dog timer Chapter 5 Watch Dog TimerHow to use the Watch Dog What is a Watch Dog?Use the System BIOS INT 52h functions How to turn the Watch Dog ONDirectly accessing Watch Dog I/O mapped registers How to turn the Watch Dog OFFUse the following code to Enable Watch Dog Use following code to refresh the Watch Dog Chapter 6 Troubleshooting Troubleshooting a PC/104 System Common Problems and SolutionsTechnical/Sales Assistance CPU Module doesn’t workftp//ftp.eurotech.it Returning For ServicePage Company Name Page Appendix Operating Characteristics A.1 Electrical and Environmental SpecificationsElectrical Operating Characteristics Backup Battery CharacteristicsMTBF Mean Time Between Failures Absolute Maximum RatingsThe CPU-1461 mechanical dimensions are shown in the following picture A.2 Mechanical Dimensions¾ Dimensions 90 X 96 mm 3.6”X3.8” CPU-1461 Board dimensionsEthernet Adapter Dimensions USB Audio Codec DimensionsMultifunction Adapter Dimensions A.3 Safety Summary62.0 12.0Observe Dangerous Procedure Warnings Use Caution When Exposing or Handling the CRTGround the Instrument Do Not Operate in an Explosive AtmosphereDisclaimer of Warranty ReliabilityLife Support Policy B BIOS GlossaryA ATA ATAPIC CELLULAR G GPS MPEG M MIDIN NDIS NTSCS SCSI R RAMSECAM SMBusW WAN V VGAAcronyms and Abbreviations Page Technical & Sales Assistance techsupp@eurotech.itftp//ftp.eurotech.it