Maximum Delay Achievable in Long Deep Sleep Example

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
AnCo_2736831
Level 4
Level 4
25 likes received 10 likes received 10 likes given

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

0 Likes
1 Solution
ShanmathiN_06
Employee
Employee
100 replies posted 50 replies posted 25 replies posted

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

View solution in original post

3 Replies
ShanmathiN_06
Employee
Employee
100 replies posted 50 replies posted 25 replies posted

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

Anonymous
Not applicable

Iirc, there was also an option to cascade all three timers, but that is probably overkill for any application.

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