Cypress F2MC-8FX Series Note d'application - Page 2
Parcourez en ligne ou téléchargez le pdf Note d'application pour {nom_de_la_catégorie} Cypress F2MC-8FX Series. Cypress F2MC-8FX Series 16 pages. How to make on-board debug
Également pour Cypress F2MC-8FX Series : Comment faire (14 pages)
F²MC-8FX Family, MB95200H/210H Series Watchdog Timer
This application note describes how to use the watch-dog timer, the functions of the watchdog timer and gives some
examples.
Contents
1
Introduction ............................................................... 1
2
Watchdog Timer ....................................................... 1
2.1
Key Features ................................................... 1
2.2
Block Diagram ................................................. 2
2.3
Registers.......................................................... 3
2.4
NVR (Non-Volatile Register) Function ............. 4
3
Interval Time ............................................................. 5
4
Usage and Examples ............................................... 6
1
Introduction
This application note describes how to use the watch-dog timer.
The application note describes the functions of the watchdog timer and gives some examples.
2
Watchdog Timer
This chapter introduces the basic function of the watchdog timer.
2.1
Key Features
The watchdog timer functions as a counter used to prevent program from running out of control. Once the watchdog
timer is activated, its counter needs to be cleared at specified intervals regularly. A watchdog reset is generated if the
timer is not cleared within a preset interval time based on Chapter 3. The watchdog timer that is not cleared may be
due to problems in the program which has entered into an infinite loop or Stack over-run or other possible problems
that caused the CPU to hang.
The watchdog timer has the following features:
Count clock selector
Watchdog timer counter
Reset control circuit is used to generate the reset signal when the WDT counter overflows
Watchdog timer clear selector is used to selects the watchdog timer clear signal
Counter timer control circuit
Hardware and software watchdog timer
www.cypress.com
4.1
4.2
4.3
5
Note on Using Watchdog Timer ............................... 9
6
Additional Information ............................................... 9
6.1
7
Document History ................................................... 14
Document No. 002-05336 Rev.*A
Software Watchdog Timer ............................... 7
Hardware Watchdog Timer .............................. 8
Sample Code ................................................. 10
AN205336
1