ΣSigmaStudio Ask AI Русский Log in

how to used the watchdog counter in ADAU1452

SigmaDSP & SigmaStudio latera17 Aug 10, 2018 00:00 1 replies Original on forum ↗
Subscribe
latera17 Question
Aug 10, 2018 00:00

hello, I want to set the "watchdog counter" to check if an errors would occus that the program does not finish intime for the next incoming sample.

Here is my setting in SigmaStudio(V4.1):

In the datasheet of ADAU1452(rev.c), it references that the number of "watchdog maxcounter" should be sightly larger than the maximum number of instructions expected to execute in the program.

however,I find that the watchdog do not works. no matter what value of "watchdog maxcounter" I set, the watchdog error flag is not raised in the panic manager. (e.x I set "watchdog maxcounter" is "1", then compile and download the code using the USBi , and then click the button of "Read All Registers" ).

is my setting not right?

Audio Signal Processors

adau1452

SigmaDSP Audio Processors

d12ad87e634b89d60c4363c848a9307c.png
d12ad87e634b89d60c4363c848a9307c.png
d12ad87e634b89d60c4363c848a9307c.png-1134x551.png
d12ad87e634b89d60c4363c848a9307c.png-1134x551.png
c49a81b57fc6c1828f3f6d866de02419.png
c49a81b57fc6c1828f3f6d866de02419.png
c49a81b57fc6c1828f3f6d866de02419.png-560x454.png
c49a81b57fc6c1828f3f6d866de02419.png-560x454.png
DaveThib Reply
Nov 7, 2019 00:00

Hello latera17,

Here is a post that explains how to use the Watchdog counter.

https://ez.analog.com/dsp/sigmadsp/f/q-a/118354/using-the-watchdog-counter-in-the-adau1452-or-the-adau1467-family-of-processors

Now for your goal of monitoring if the program ran out of MIPS and did not finish in time. For that you should use this new feature:

https://ez.analog.com/dsp/sigmadsp/f/q-a/117504/adau-1452-multirate-instruction-cycles-and-program-overrun

Hope this helps.

Dave T