This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

uV3 Simulator Watchdog problems

- Target: uPSD3454

Code runs fine on target board w/ a WD timer set at .5048 secs. Right now, running with just skeleton code, WD reset is refreshed just under 500ms and runs continuously with no problems.

However ...

Problem 1: in simulator mode, the "Watchdog Timer" window decodes the value as 2.0195..secs which is 4x the desired value. The target device is a "turbo core 8032" which is just 4 MCU clocks per machine cycle. Since the code is working correctly on the target, it appears that my calculations are correct. (notice the common multiplier of 4x?!) This is proven by varying the reset period and witnessing the watchdog reset occur.
Has anyone experienced this simulator anomaly?

Problem 2: (still in simulator) even though the WD is being refreshed every 500ms, the "Timeout in:" field of the "Watchdog Timer" window never reflects the fact that it gets reset and just continues to decrement. The end result is a
************************************
*** Watchdog Timer Reset Occured ***
************************************
It doesn't appear that the WD simulation is correct.
Again, I ask ...
Has anyone experienced this simulator anomaly?

0