Hi,
I am trying to do ADC-self test for MPC5xxx family. When I enable ADC_0_STAW0R[WDTE] algorithm S timeout value. I am always seeing ADC_0_STSR1[WDTERR]. I have my ADC_0_STBRR[WDT] as 50ms.
1. Why is the ADC_0_STSR1[WDTERR] bit is set? Is there a sequence to enable ADC_0_STAW0R[WDTE]?
In the spec for ADC_0_STAW0R[WDTE] the description is as below.
Watchdog timer enable (related to the algorithm S).
Enables/disables the watchdog timer monitoring function for all ADC Supply self test steps.
The watchdog timer verifies:
• Correct sequence of the algorithm (step sequence)
• Execution of the algorithm within the safe time period as defined by STBRR[WDT]
As soon as the watchdog timer is enabled, execution must be detected within the safe time period. The
watchdog timer is reset each time the algorithm restarts.
This bit should be set only in scan mode.
0 Disabled
1 Enabled
2. what does it mean execution must be detected within safe time period?
Any help would be much appreciated.
Thanks
Hello,
1. Why is the ADC_0_STSR1[WDTERR] bit is set? Is there a sequence to enable ADC_0_STAW0R[WDTE]?
I expect you are not performing these tests periodically. This Watchdog is watching time between 2 ADC selts tests in application. For example FTTI is 1s. This means after ADC self test is executed next one must take place within 1sec.
So it is watchdog between tests, not test watchdog.
Please read carefully watchdog chapter in reference manual.
regards,
Peter
Thanks.. I corrected the sequence to enable WDTE, it is working as expected.