ADC Self Test for MPC5xxx family.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

ADC Self Test for MPC5xxx family.

2,885 Views
rajan_gm
Contributor I

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

0 Kudos
Reply
2 Replies

1,827 Views
petervlna
NXP TechSupport
NXP TechSupport

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.

pastedImage_3.png

Please read carefully watchdog chapter in reference manual.

pastedImage_4.png

regards,

Peter

0 Kudos
Reply

1,827 Views
rajan_gm
Contributor I

Thanks.. I corrected the sequence to enable WDTE, it is working as expected.

0 Kudos
Reply