Appendix Awatchdog Timer; About Watchdog Timer; How To Use Watchdog Timer - AXIOMTEK IPC950 User Manual

Table of Contents

Advertisement

A.1 About Watchdog Timer
Software stability is a major issue in most applications. Some embedded systems are not
watched by an operator for 24 hours. It is usually too late to wait for someone to reboot when
computer hangs. The systems need to be able to reset automatically when things go wrong.
The watchdog timer gives us a solution in this regard.
The watchdog timer is a counter that triggers a system reset when it counts down to zero from
a preset value. The software starts the counter with an initial value and must reset it periodically.
If the counter ever reaches zero which means the software has crashed, the system will reboot.
A.2 How to Use Watchdog Timer
The I/O port base addresses of watchdog timer are 2E (hex) and 2F (hex). The 2E (hex) and
2F (hex) are address and data port respectively.
Assume that program A is put in a loop that must execute at least once every 10ms. Initialize
watchdog timer with a value bigger than 10ms. If the software has no problems, watchdog timer
will never expire because software will always restart the counter before it reaches zero.
Begin
Next
Enable and Initialize
Watchdog Timer
Next
Program "A"
Next
Disable Watchdog
Timer
Next
Watchdog Timer
IPC950 user's Manual
APPENDIX A
WATCHDOG TIMER
Begin
Next
Enable and Initialize
Watchdog Timer
Next
Program "A"
Next
Reset Watchdog
Timer
Next
71

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the IPC950 and is the answer not in the manual?

Questions and answers

Table of Contents