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.
TPL5010: relation of DONE and RSTn
Part Number: TPL5010
I have a number of posts on this forum but non seemed to address my issue directly please forgive me if I missed the answer.
I have a device that naps between sensor interrupts and wakes every hope at the top of the hour to report. The process of napping / waking and reporting is already implemented. I have the TPL5010 with a 1 hour 5 minute interval to reset the device if it does not report as the watchdog is "pet" during the reporting process.
- Wake - from the TPL5010 goes to a GPIO pin on the microcontroller with a RISING interrupt
- Done - from the microcontroller to the TPL5010
- Reset - from the TPL5010 to the device's reset pin
- Two 270k resistors in parallel set an interval of just over 1 hour
This solution requires some alignment of the watchdog interval to the hourly wake cycle. If both are aligned, the device wakes at the top of the hour, pets the watchdog and goes to sleep. The watchdog gets petted during the interval and therefore never needs to send a reset to the device. If, however, the TPL5010 is not aligned to this interval, it will send WAKE signals during the hour and will cause the device to come out of napping state unnecessarily.
Can I set the timing of the TPL5010's interval to align to the hourly schedule? I had assumed that when I pet the watchdog, it would reset the next interval but apparently this is not the case.
I'm afraid that the time interval of TPL5010 and the time interval of your other device cannot be set separately otherwise they won't be aligned. For your other device, instead of making it wake every hour, can you make it wake after a "WAKE" signal from TPL5010 kicks in? This is how TPL5010 is supposed to work, and I'm afraid I can't think of a way to force the alignment of two separately set time intervals.
We are glad that we were able to resolve this issue, and will now proceed to close this thread.
If you have further questions related to this thread, you may click "Ask a related question" below. The newly created question will be automatically linked to this question.
In reply to Hao Z:
Thanks for answering - that is a bit of a bummer.
I need to report at the top of the hour - if I let the TPL5010 WAKE and set the reporting interval, it would walk all over the hours.
1) Is there another TI part which resets the Wake interval when the DONE pin is toggled?
2) Perhaps I could use a pin on the microcontroller to turn off the power to the TPL5010, this would reset the device and, I HOPE / ASSUME / AM SURE (please help me pick one) would restart the timing interval. If I take this approach, how long do I need to interrupt the power to accomplish this? would 50mSec be enough?
In reply to Charles McClelland:
According to Figure 9, RSTn is asserted at startup. So unless you have some sort of mask for the microcontroller when DONE is asserted, I don't think this is doable.
There's another nano timer TPL5110, but it doesn't seem to work for your case either.
Thank you for taking the time to research this. So, it is these two defects (at least from my use case's perspective) that make this option a bad one:
1) The inability to reset the "Wake" cycle using the Done or any other pin
2) The Watchdog asserting a reset at power on so I could not use a GPIO pin on the uC to reset the watchdog's Wake cycle
It is unfortunate that, in TI's large portfolio, there is not a solution. But, again, thank you for you for your time.
Looks like I will need to use a small low power uC to make my own - ATTINY 202 for example.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.