Analog Devices ADSP-BF506F Hardware Reference Manual page 504

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

Advertisement

Programming Examples
Listing 12-2. Service Watchdog
service_watchdog:
[--sp] = p5;
p5.h = hi(WDOG_STAT);
p5.l = lo(WDOG_STAT);
[p5] = r0;
p5 = [sp++];
rts;
service_watchdog.end:
Listing 12-3
is an interrupt service routine that restarts the watchdog.
Note that the watchdog must be disabled first.
Listing 12-3. Watchdog Restarted by Interrupt Service Routine
isr_watchdog:
[--sp] = astat;
[--sp] = (p5:5, r7:7);
p5.h = hi(WDOG_CTL);
p5.l = lo(WDOG_CTL);
r7.l = WDDIS;
w[p5] = r7;
bitset(r7, bitpos(WDRO));
w[p5] = r7;
r7 = [p5 + WDOG_CNT - WDOG_CTL];
[p5 + WDOG_CNT - WDOG_CTL] = r7;
r7.l = WDEN | WDEV_GPI;
w[p5] = r7;
(p5:5, r7:7) = [sp++];
astat = [sp++];
rti;
isr_watchdog.end:
12-10
ADSP-BF50x Blackfin Processor Hardware Reference

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?

Questions and answers

This manual is also suitable for:

Adsp-bf504Adsp-bf504f

Table of Contents