Hi!
We have some issues related to watchdog resets and POR. This is somewhat a continuation on the thread that is available here:
We are trying to confirm that our sequence for performing a reset via pin works. We've had a partial reset as a part of our configuration sequence. As we remove this - we want to confirm that a partial reset sequence works. I'm currently running loops of reset AFE via PIN every 30 seconds or so.
Currently, we randomly see internal watchdog triggers by the AFE after exit of our configuration sequence. Our configuration sequence is described in the original post, but basically our configuration sequence do:
--------------------------------
* Check AFE data memory registers for consistency.
If not consistent - configure:
* Enter config mode
* Write parameters
* Exit config mode
* Clear full scan bit
* Wait for fullscan bit to be set.
* Re-check AFE data memory registers for consistency.
----------------------------------------------
In our tests, we've seen that the POR bit is set ~500 ms after the fullscan check completed. We also see that we on occasion won't get response when querying data settings ~300ms after full scan has completed
A.) What should we wait for after exit of config mode - to make sure AFE is in a good state?
We've seen that query of DA STATUS 5, subcommand and data memory too soon after config mode can trigger the watchdog. Checking battery status and control status request seems OK.
B.) We've seen that waiting for fullscan bit to be set after clearing it takes around 150ms up to 1.5 seconds. 150 ms seems to fast to us, since a full measurement round should take 250 ms according to the manual. Doesn't the reset of the fullscan bit reset the measurement cycle?
In the original post, we discussed that the time it takes for AFE to store the parameters upon exiting config mode is dynamic. When returning from shutdown mode, all parameters needs to be written. But after a partial reset, the parameters are likely only re-stored. Does this make the sequencing in the AFE different?
Best regards
//Erik Almqvist
Another related question regarding POR: