Intel MIC-3321 user manual Appendix a Watchdog Timer Programming, Data Time Interval 01 0.25 sec

Page 42

Appendix A Watchdog Timer Programming

To program the watchdog timer, you must write a program which writes a value to I/O port address 443 (hex). This output value represents time interval. The value range is from 01 (hex) to FF (hex), and the related time interval is

0.25sec. to 63.75sec.

Data Time Interval 01 0.25 sec.

02 0.50 sec.

03 0.75 sec.

04 1.00 sec.

••

••

FF 63.75 sec.

After data entry, your program must refresh the watchdog timer by rewriting the I/O port 443 (hex) while simultaneously setting it. When you want to dis- able the watchdog timer, your program should read I/O port 443 (hex). The fol- lowing shows how to program the watchdog timer in BASIC:

10 REM Watchdog timer example program

20 OUT &H443, data REM Start and restart the watchdog 30 GOSUB 1000 REM Your application task #1,

40 OUT &H443, data REM Reset the timer

50 GOSUB 2000 REM Your application task #2,

60 OUT &H443, data REM Reset the timer

70 X=INP (&H443) REM, Disable the watchdog timer

80 END

1000 REM Subroutine #1, your application task

••

••

1070 RETURN

2000 REM Subroutine #2, your application task

••

••

2090 RETURN.

MIC-3321 User Manual

36

Image 42
Contents MIC-3321 Copyright Notice AcknowledgementsProduct Warranty CE NotificationSafety Precaution Static Electricity Technical Support and AssistancePacking List Contents CompactFlash Interface Hardware Configuration Introduction Compact Mechanical DesignOrdering Information Standard SBC Functions SpecificationsBattery-backup RAM 512 KB System MemoryStorage Temperature -40 ~ 80 C Board Weight 0.6 kg Function Block DiagramMechanical and Environmental Specifications DisplayBoard Dimensions Dip Switch SettingsSwitch Locations MIC-3321 Switch DescriptionsSafety Precautions MIC-3321 S2 Location 2FPage Connecting Peripherals Connectors MIC-3321 Connector Locations 1FMIC-3521 Connectors MIC-3321 Connectors Overview Card Installation To install a cardChassis Installation/Removal To remove a cardSoftware Configuration Utilities and Drivers Intel Chipset Software Installation UtilityOverview Intel VGA Graphics DriverAward Bios Setup Entering Setup Setup Program Initial ScreenDate Standard Cmos SetupIDE Device Setup TimeAdvanced Bios Features Setup Halt OnMemory Hard Disk Boot Priority CPU Thermal MonitorVirus Warning Boot Up NumLock Status Quick Power On Self TestFirst/Second/Third Boot Device and Boot Other Device CPU L1 & L2 CacheSetupdefault Typematic Rate SettingTypematic Delay Msec Typematic Rate Chars/SecAdvanced Chipset Features Setup Dram Timing ConfigurationCAS Latency Time System Bios Cache-able Dram RAS# to CAS# DelayPrecharge delay tRAS Video Bios CacheableIntegrated Peripherals IDE Primary/Secondary Master/Slave PIO IDE HDD Block ModeOn-Chip Primary Sata / Secondary Pata PCI IDE IDE Primary/Secondary Master/Slave UdmaUSB Keyboard Support USB ControllerUSB 2.0 Controller USB Mouse Support5 PNP/PCI Configuration Setup Reset Configuration DataInit Display Fiest IRQ Resources PC Health StatusResource Controlled By PCI/VGA Palette SnoopPC Health Status setup screen CPU Warning TemperatureLoad Optimized Defaults Spread Spectrum ControlSpread Spectrum Set Password Save & Exit Setup Exit Without SavingProgramming Watchdog Timer Appendix a Watchdog Timer Programming Data Time Interval 01 0.25 secPin Assignment Appendix B Pin Assignment CompactFlash Interface Table B.2 CompactFlash Interface Pin DefinitionsVGA Connector USB 2.0 PortsPS/2 Keyboard and Mouse Connector COM portEthernet 10/100/1000Base-T RJ-45 Connector Secondary IDE 44-pin 2mm ConnTable B.7 Secondary IDE Connectors 2.5 HDD Serial ATA0 7pin connector