Programming Examples - Analog Devices ADSP-BF506F Hardware Reference Manual

Adsp-bf50x blackfin processor
Hide thumbs Also See for ADSP-BF506F:
Table of Contents

Advertisement

Programming Examples

set whenever the watchdog timer count reaches 0. It can be cleared only by
writing a "1" to the bit when the watchdog has been disabled first.
Watchdog Control Register (WDOG_CTL)
15 14 13 12 11 10
0
0
WDRO - W1C
0 - Watchdog timer has not expired
1 - Watchdog timer has expired
Figure 12-4. Watchdog Control Register
Programming Examples
Listing 12-1
shows how to configure the watchdog timer so that it resets
the chip when it expires. At startup, the code evaluates whether the recent
reset event has been caused by the watchdog. Additionally, the example
sets the
NOBOOT
Listing 12-1. Watchdog Timer Configuration
#include <defBF527.h>/*ADSP-BF527 product is used as an example*/
#define WDOGPERIOD 0x00200000
.section L1_code;
.global _reset;
_reset:
...
/* optionally, test whether reset was caused by watchdog */
12-8
9
8
7
0
0
1
0
1
0
1
bit to prevent the memory from being rebooted.
ADSP-BF50x Blackfin Processor Hardware Reference
6
5
4
3
2
1
0
1
0
1
0
0
0
0
Reset = 0x0AD0
WDEV[1:0]
00 - Generate reset event
01 - Generate NMI
10 - Generate GP interrupt
11 - Disable event
WDEN[7:0]
0xAD - Counter disabled
All other values - Counter
enabled
generation

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ADSP-BF506F and is the answer not in the manual?

This manual is also suitable for:

Adsp-bf504Adsp-bf504f

Table of Contents