CAPA13R Capa Board
Watchdog Timer
59
Appendix A
Watchdog Timer
A.1 About Watchdog Timer
Software stability is major issue in most application. Some embedded systems are not
watched by operator for 24 hours. It is usually too slow 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 solution.
The watchdog timer is a counter that triggers a system reset when it counts down to zero from
a preset value. The software starts 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
Enable and Initialize
Watchdog Timer
Program
“
A
”
Disable Watchdog
Timer
Next
Next
Next
Next
Begin
Enable and Initialize
Watchdog Timer
Program
“
A
”
Reset Watchdog
Timer
Next
Next
Next
Next
Содержание CAPA13R
Страница 1: ...CAPA13R AMD RYZENTM Embedded V1605B V1807B 3 5 Board User s Manual ...
Страница 6: ...vi This page is intentionally left blank ...
Страница 10: ...CAPA13R capa Board 4 Introduction This page is intentionally left blank ...
Страница 12: ...CAPA13R capa Board 6 Board and Pin Assignments Bottom View Side View ...
Страница 13: ...CAPA13R Capa Board Board and Pin Assignments 7 2 2 Board Layout Top View Side View ...
Страница 14: ...CAPA13R capa Board 8 Board and Pin Assignments Bottom View ...
Страница 32: ...CAPA13R capa Board 26 Board and Pin Assignments This page is intentionally left blank ...
Страница 34: ...CAPA13R capa Board 28 Hardware Description 3 4 I O Port Address Map ...
Страница 36: ...CAPA13R capa Board 30 Hardware Description ...
Страница 37: ...CAPA13R Capa Board Hardware Description 31 ...
Страница 38: ...CAPA13R capa Board 32 Hardware Description ...
Страница 39: ...CAPA13R Capa Board Hardware Description 33 ...
Страница 40: ...CAPA13R capa Board 34 Hardware Description 3 6 Memory Map The memory mapping list is shown as follows ...
Страница 64: ...CAPA13R capa Board 58 AMI BIOS Setup Utility This page is intentionally left blank ...
Страница 68: ...CAPA13R capa Board 62 Watchdog Timer This page is intentionally left blank ...