Watchdog Timer
Watchdog Timer Control Register
Watchdog Timer Control Register
WDCR @ 0x007029
WDCR @ 0x007029
(lab file:
(lab file:
SysCtrl
SysCtrl
.c)
.c)
WDFLAG
WDFLAG
WDDIS
WDDIS
7
7
6
6
5
5
4
4
3
3
2
2
1
1
0
0
WDCHK1
WDCHK1
WDCHK0
WDCHK0
WDPS2
WDPS2
WDPS1
WDPS1
WDPS0
WDPS0
WDCHK2
WDCHK2
Logic Check Bits
Logic Check Bits
Write as 101 or reset
Write as 101 or reset
immediately triggered
immediately triggered
WD Prescale
WD Prescale
Selection Bits
Selection Bits
Watchdog Disable Bit
Watchdog Disable Bit
Write 1 to disable
Write 1 to disable
(Functions only if WD OVERRIDE
(Functions only if WD OVERRIDE
bit in SCSR is equal to 1)
bit in SCSR is equal to 1)
reserved
15
15
-
-
8
8
WD Flag Bit
WD Flag Bit
Gets set when the WD causes a reset
Gets set when the WD causes a reset
•
•
Writing a 1 clears this bit
Writing a 1 clears this bit
•
•
Writing a 0 has no effect
Writing a 0 has no effect
Resetting the Watchdog
Resetting the Watchdog
WDKEY @ 0x007025
WDKEY @ 0x007025
(lab file:
(lab file:
SysCtrl
SysCtrl
.c)
.c)
Allowable write values:
Allowable write values:
55h
55h
-
-
counter enabled for reset on next AAh write
counter enabled for reset on next AAh write
AAh
AAh
-
-
counter set to zero if reset enabled
counter set to zero if reset enabled
Writing any other value immediately triggers
Writing any other value immediately triggers
a CPU reset
a CPU reset
Watchdog should not be serviced solely in
Watchdog should not be serviced solely in
an ISR
an ISR
If main code crashes, but interrupt continues to
If main code crashes, but interrupt continues to
execute, the watchdog will not catch the crash
execute, the watchdog will not catch the crash
Could put the 55h WDKEY in the main code, and
Could put the 55h WDKEY in the main code, and
the AAh WDKEY in an ISR; this catches main
the AAh WDKEY in an ISR; this catches main
code crashes and also ISR crashes
code crashes and also ISR crashes
reserved
D7
D7
7
7
6
6
5
5
4
4
3
3
2
2
1
1
0
0
D6
D6
D5
D5
D4
D4
D3
D3
D2
D2
D1
D1
D0
D0
15
15
-
-
8
8
C28x - System Initialization
5 - 7
Содержание C28 Series
Страница 64: ...Summary 3 16 C28x Peripheral Registers Header Files ...
Страница 78: ...Interrupt Sources 4 14 C28x Reset and Interrupts ...
Страница 218: ...Lab 9 DSP BIOS 9 22 C28x Using DSP BIOS ...
Страница 244: ...Lab 10 Programming the Flash 10 26 C28x System Design ...
Страница 273: ...Appendix A eZdsp F2812 C28x Appendix A eZdsp F2812 A 1 ...
Страница 275: ...Appendix eZdsp F2812 eZdsp F2812 Connector Header and Pin Diagram C28x Appendix A eZdsp F2812 A 3 ...
Страница 276: ...Appendix P2 Expansion Interface A 4 C28x Appendix A eZdsp F2812 ...
Страница 277: ...Appendix P4 P8 P7 I O Interface C28x Appendix A eZdsp F2812 A 5 ...
Страница 278: ...Appendix A 6 C28x Appendix A eZdsp F2812 ...
Страница 279: ...Appendix P5 P9 Analog Interface C28x Appendix A eZdsp F2812 A 7 ...
Страница 281: ...Appendix JP7 JP8 JP11 JP12 Boot Mode Select JP9 PLL Disable DS1 DS2 LEDs C28x Appendix A eZdsp F2812 A 9 ...
Страница 282: ...Appendix A 10 C28x Appendix A eZdsp F2812 TP1 TP2 Test Points ...