- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi All,
I have run this example program called PSOC 4200M WDT LONG DEEP SLEEP from the following link:
http://www.cypress.com/blog/technical/psoc-4200m-wdt-long-deep-sleep
In this program, WDT0 and WDT1 are cascaded. I would like to know if the maximum delay that can be achieved is 32768 / 3600 =~ 9 hours.
Shouldn't this delay be the same as a 32-bit counter [WDT2], which goes for more than 19 hours?
Thanks,
Andrew Collins
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
You could change the match value of counters WDT0 and WDT1 to a maximum value of up to 0xFFFF (65535).
So, maximum delay achievable would be around 37 hours (65535 x 65535 / 3600 / 32KHz).
In the long deep sleep example, the delay is configured to be around 1 second (32768 / 32KHz).
You could also use 32-bit counter (WDT2) to have a delay more than 2 seconds.
You can refer to the following forum post: Watchdog Timer
You can also refer to code example Watchdog_PSoC4_Example (Navigate to PSoC Creator-> File-> Code example) to cascade WDT0 and WDT1.
Thanks,
Shanmathi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
You could change the match value of counters WDT0 and WDT1 to a maximum value of up to 0xFFFF (65535).
So, maximum delay achievable would be around 37 hours (65535 x 65535 / 3600 / 32KHz).
In the long deep sleep example, the delay is configured to be around 1 second (32768 / 32KHz).
You could also use 32-bit counter (WDT2) to have a delay more than 2 seconds.
You can refer to the following forum post: Watchdog Timer
You can also refer to code example Watchdog_PSoC4_Example (Navigate to PSoC Creator-> File-> Code example) to cascade WDT0 and WDT1.
Thanks,
Shanmathi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Iirc, there was also an option to cascade all three timers, but that is probably overkill for any application.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the information!
The time-delay achieved by two 16-bit WDT is ~37 hours, whereas time-delay achieved by a 32-bit WDT is ~19 hours. I will test the programs for both.
Best,
Andrew Collins