SMC Networks 1232 Series Watchdog modalities, Bios INT 52h functions 0Ch, 0Dh, 0Eh, Mov, Int

Page 67

67

Watchdog modalities

The watchdog function resets the board at the end of the countdown.

There are two ways to program the watchdog:

Using BIOS INT 52h

Using direct Super I/O registers programming

BIOS INT 52h - functions 0Ch, 0Dh, 0Eh

This method can be used under DOS or under Operating Systems using the board BIOS (i.e. not under Linux which erases the BIOS after the boot and autonomously manage the module hardware).

The functions implemented from the BIOS are:

INT 52h, function 0Ch: watchdog enabling with a fixed time of 2 seconds. This function programs and starts immediately the watchdog counter.

INT 52h, function 0Dh: watchdog erasing. Counting is interrupted and watchdog disabled.

INT 52h, function 0Eh: watchdog refresh. Every call to this function restarts the counting from the initial value.

When the watchdog is activated, the countdown starts immediately. If no refresh occurs, when the default timeout expires, the board reset is executed. So the watchdog must be enabled and continuously refreshed, avoiding in this way the board reset.

Example:

 

 

...

 

 

MOV

AH, 0Ch

 

INT

52h

; Enable the watchdog (fixed timeout = 2 seconds)

...

 

 

Super I/O registers programming

This method must be used when the OS doesn’t manage the BIOS (i.e. Linux) or when a personalized watchdog programming is required.

The following example shows how to change the Super I/O (SPIO) FDC 37B782 watchdog registers:

; SPIO: enter in configuration mode ...

MOV DX, 03F0h

; SPIO Index Port

67

Image 67
Contents Spacepc 1232 Series About this Manual Table of Contents Options Explanation EMI Caution Product Overview CPU-1232 CPU-1232 SpacePC 1232 Functional Block DiagramProduct Definition VGA interface PeripheralsLCD-TFT interface Jumper Description Jumper Layout and ConfigurationPIN# Type Function DefaultConnectors Layout Connectors DescriptionVGA Connector FunctionISA BUS PC/XT IDE/DOMISA BUS J1 and J2 for the ISA BusModule Stack J3 for Multifunction & J14 for Mouse J3 Multifunction Connector¾ Multifunction Pin Pin Signalƒ System reset ƒ External BatteryMsclk J14 Mouse Connectorƒ Power button Pin #Multifunction Adapter both sides Parvus Multifunction AdapterMsclk GND Msdat Respbin10N.C Kbdat Kbclk GND BattinFloppy Function Signal In/out Pin Pin Signal Function In/out DB25J4 for Parallel or FDD Slct PD6PD7 MSB BSYGND PIN1 J5 and J6 Serial Port InterfacesRS485 Function DB25RS422 Pin Function In/outJ7 for 2 x USB J7 for 2 x USB, J8 for AUDIO-CODECJ8 for AC97 Audio port Section Parvus USB/AC97-AudioCODEC Adapter Connector#FunctionSdatain USB2 J9 IDE Connector, JP10 IDE LED ConnectorJ9 IDE Connector USB1Pin SignalFunction JP10 IDE LED ConnectorRefresh Rate J10 VGA ConnectorPin Signal Function Resolution Simultaneous Colors+12VDC J11 Auxiliary Power Connector12VDC ATX Power Supply J13 Fan power supply connectorJ18 for Ethernet Net drivers J19 LCD-TFT Section 640x480 16bpp 64K colors 800x600 8bpp 256 colors 1024x768 Page Setup Program How to use the Setup program Setup pages Time GeneralFloppy disks DateExpansion Socket DiskOnChip Map Quick BootKeyboard Dram Memory Speed Boot Try Sequenceƒ USB Video Memory = Default settingFloppy Controller Eide PortPS/2 Mouse Network AdapterAudio MPU-401 CommunicationsSerial Ports 1 Parallel Port Atapi Units LBA Echs Error on Video Error on KeyboardError on Floppy Disks Error on Real Time Clock Error on Fixed DisksPage For Last Versions Visit Site How to update the BIOS. The SSDPlease Note How to update the Bios the Btool ProgramOptions Explanation \BTOOL /D a Btool /D B Integrated Solid State DiskVirtual Peripherals Virtual Peripherals modeVirtual Peripherals connection Local and redirected peripheralsHost PC serial interface Signal Function PIN NrDB25 Signal Parallel PIN Nr Port PC/104 serial interfaceNow turn on the SpacePC 1232 module Important note Watchdog Timer MOV Bios INT 52h functions 0Ch, 0Dh, 0EhWatchdog modalities Super I/O registers programmingMOV BL, AL OUT DX, ALINC AL, DXWatchdog time-out pin Troubleshooting SpacePC 1232 Module erratic operation Common Problems and SolutionsSpacePC 1232 Module will not boot SpacePC 1232 Module will not boot from DiskOnModuleTwo hard drives will not work, but one does Troubleshooting a PC/104 SystemDate and time not saved when power is off Technical/Sales AssistanceMaterial Authorization RMA number Returning For ServiceOperating Temperature Range Electrical and Environmental SpecificationsOperating Characteristics Electrical Operating CharacteristicsFrequency 64MB 128 MB Power ConsumptionBattery Backup Characteristics Absolute Maximum RatingsCPU Dimensions Mechanical Dimensions43,6 12.7 41.5 13.0 FDD Adapter DimensionsFDD Adapter Dimensions USB Audio Codec Dimensions31.0 49.0 43.4 11.9 Ethernet Adapter DimensionsEthernet Adapter Dimensions Multifunction Adapter DimensionsGround the Instrument Safety SummaryEMI Caution Disclaimer of WarrantyDo Not Substitute Parts or Modify Equipment FlammabilityLife Support Policy ReliabilityPage Acronyms and Abbreviations Limited Warranty