This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

reenabled watchdog timer in DSK6455

Hello

I'm working with a dsk6455 and I'm programming the watchdog timer. I think I cannot use hardware reset and I'm using TINTLO interrupt. I simulate a timeout event and the first time it works correctly, the interrupt is serviced. I use a software interrupt via c_int00 but if I keep the loop the watchdog timer is not enabled again. I've read in spru968, page 32, that watchdog only can be enabled via a hardware reset. Is there other method to reenabled the watchdog?.

Best regards.

Manuel Fernández Ros

  • Manuel,

    The Timer User's Guide is very clear, and you have quoted it accurately. It can only be enabled by a hardware reset. This means that is the only way to enable it after it has triggered.

    The intent of the WatchDog timer is to protect the device in the event of a code failure in which something has caused the DSP to hang and not longer execute code correctly. This cannot be guaranteed to be an event that can be protected enough to allow you to start running code from a soft reset.

    If you do not want to use a hardware reset in response to a WatchDog timeout event, do not use the WatchDog timer. Instead, use the timer as a 64-bit timer that causes a timer interrupt when the count reaches its terminal value, and have your code write to the Timer's registers to restart the timer periodically. That way if you reach the terminal count without clearing the timer, then you will get a timer interrupt and that ISR can branch to _c_int00 for a soft reset, and you can re-use that timer for another round of the same thing.

    Regards,
    RandyP

  • Hello RandyP

    Thank you for your quick solution. I said I'm working with a DSK6455 board and I use a 5-6K interface to other ADC board, my doubt is: is possible to connect TOUTL pin to NMI pin, perhaps via the 5-6K board? I need to use the watchdog timer.

    Thank you.

    Manuel Fernández Ros

  • Manuel,

    Your first question was about using the Watchdog timer. I do not see how making an external hardware connection changes the answer you already had for that question, therefore negating this other use of the Watchdog timer.

    Do you find any mention in the Timer User's Guide about internally routing the Watchdog output to the NMI? Or in the other documentation for the DSP, is there anything about the various sources internally for driving NMI? You may want to look in the datasheet and the MegaModule Reference Guide.

    Your new question is about a pin connection. Have you looked at the TechRef document that comes with the DSK? It has a set of schematics and a list of signals that come to the expansion connectors. Do you find TOUTL0 or TOUT0 on a connector? Do you find NMI on a connector? If the answer is Yes to both questions, then it is possible to make this connection from the connectors. If either answer is No, then you would have to make the connection in some other way. What possible connection points do you find for these signals?

    Regards,
    RandyP