- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello, I need to run CY8C4013 in deep sleep mode waking it somehow with a timer,
At the same time I need to have WDT active.
More the sleep timer shall be somehow trimmed to reduce frequency tolerance.
Is there any sample code implementing these features?
Thanks,
Alfonso
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Alfonso,
Keep both WDT and another timer active in Deep Sleep mode...I feel it is a little difficult...
As I knew, regarding clock source, if the chip is in deep sleep, only ILO is active, IMO and its branches will shut down. And all peripherals except WDT is clocked by IMO..
Thanks,
Ryan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Alfonso,
Keep both WDT and another timer active in Deep Sleep mode...I feel it is a little difficult...
As I knew, regarding clock source, if the chip is in deep sleep, only ILO is active, IMO and its branches will shut down. And all peripherals except WDT is clocked by IMO..
Thanks,
Ryan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Ryan,
I don't need a second Timer.
I want to use one single timer (driven by ILO) to periodically wake up from deep sleep and to perform WDT Functionality.
More this timer shall be periodically calibrated in order to keep timing tolerances within +/- 10% range (while ILO tolerance is much higher)
Thanks,
Alfonso
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Alfonso,
Get it. So in this case, WDT can meet your requirement.
To get a +/- 10% tolerance, you may require WDT count calibration. The accuracy of ILO we can't change, but we can calibrate WDT count number of each cycle based on IMO to improve the accuracy of WDT.
We have some WDT code examples with calibration. FYI.
https://www.cypress.com/documentation/code-examples/ce210292-wdt-p4s-example-0
The CapSense Low power code example, remove capsense part, rest is deep sleep controlled by WDT.
https://www.cypress.com/documentation/code-examples/ce210291-psoc-4-capsense-one-button
Thanks,
Ryan