Lynx EPM-4 manual Watchdog Timer

Page 41

Watchdog Timer

Watchdog Timer

There is a flexible watchdog timer integrated into the ÉlanSC520 Microcontroller. It supports a time-out period up to 30 seconds, and can generate an interrupt, NMI, or system reset when time- out occurs. The watchdog registers are protected by write key sequences.

See the following pseudo code as a simple example of watchdog operation.

MMCR_base = DF00:0h

; segment:offset address

WDTMRCTL = MMCR_base + 0CB0h

MemWrite WDTMRCTL, 03333h

; Key sequence to allow write access to

 

; control

MemWrite WDTMRCTL, 0CCCCh

; register. These are 16-bit memory writes.

MemWrite WDTMRCTL, 0C010h

; Enable watchdog timer. 4 second timer.

 

; Reset on timeout.

Begin program loop

;perform useful instructions here that

;will never take more than 4

;seconds to complete.

MemWrite WDTMRCTL, 0AAAAh ; Key sequence to reset the timer ; countdown

MemWrite WDTMRCTL, 05555h ; These are 16-bit memory writes.

End program loop

For detailed programming instructions for the integrated watchdog timer, see chapter 19 of the ÉlanSC520 Microcontroller User's Manual, and chapter 16 of the Register Set Manual.

EPM-4 Reference Manual

Reference 33

Image 41
Contents Reference Manual EPM-4 Support Product Release NotesReference Manual Model EPM-4Page Table of Contents Appendix a CBL/CBR-5009 Appendix B References Description IntroductionCompatibility Technical SpecificationsEPM-4 Block Diagram RoHS-Compliant Version EPM-4 Support Website Technical SupportPage Overview Configuration / OperationInitial Configuration and Setup Basic Cmos Configuration Cmos Setup / Boot ProcedureConsole Redirection Boot Order Cmos Setup / IDE ConfigurationIDE Drive Geometry Drive Assignment OrderBios Ext Cmos Setup / Advanced ConfigurationDefault 0E0h Default DisabledDefault IRQ7 Default EnabledDefault SPP Default 133 MHzDefault IRQ11 Default IRQ4Default IRQ3 Save Cmos as custom defaults Using Custom Cmos DefaultsPage Reference Physical DimensionsReference EPM-4 Reference Manual Hardware Assembly B10 External ConnectorsMating Transition Cable ‡Pin 1 Location Connector Function Connector Functions and Interface CablesJumper Block Locations Jumper Block LocationsJumper Summary System Bios SelectorCBL/CBR-1008 Power SupplyMain Power Connector Pinout Signal Name Description Reorder Part No EPM-4 Revision Battery TypeReal Time Clock System RAMSerial Ports Battery Backed Static RAMIDE Hard Drive / CompactFlash / CD-ROM Interface IDE Hard Drive Connector Pinout SignalPin Name Signal Name Function CBR-5009 Pin Connector Signal Utility Connector J7Utility Connector Pinout CBR-5009 Signal KEYBOARD/MOUSE Interface Parallel / Floppy Port Centronics Floppy Signal Pin DirectionEthernet Interface RJ45 Ethernet ConnectorGreen LED Link / Activity Yellow LED SpeedWatchdog Timer PC/104-PlusModules Expansion BusPC/104 Modules Start End Address Comment Memory and I/O MapMemory Map On-Board I/O Devices MAPComponents Group Interrupt ConfigurationSCR READ/WRITE 00E0h Special Control RegisterBit Mnemonic Description Revision Indicator RegisterRevind Read only 00E1h Mpcr READ/WRITE 00E3H Map and Paging Control RegisterPage Appendix a CBL/CBR-5009 a CBL/CBR-5009 ConnectorsCBL/CBR-5009 Schematic CBL/CBR-5009 Dimensions and MountingAppendix B References