Long time SLEEP and then WAKEUP

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

cross mob
Anonymous
Not applicable

Hi, 

   

I am developing, a new SW, i have been trying to put my PSOC into DEEPSLEEP during more than 2sec and it is imposible, why?¿ becouse the only way to do this, is with the WDT, i have tried to use Timers, but it is imposible, because you only can set the timer clock to HFCLK, and when you put PSOC into DEEPSLEEP this clock is shutdown.

   

And my question, are there any other way to do this? i want to SLEEP (DEEPSLEEP) my PSOC during 1 hour more or less....

   

 

   

Thanks for all

   

 

   

Carlos

0 Likes
1 Solution
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

A couple of ways -

   

 

   

1) Wakeup every 2 secs or so and count off secs, go back to sleep until you hit

   

the 1 hour point. Not exactly elegant.

   

 

   

2) Use the Low Power comparator, and a CAP and a R, to effect a long term delay/interrupt.

   

You would have to account for all leakages and R tolerance (R for charging cap) to control

   

the timeout. Use an open drain output to reset cap when going to sleep.

   

 

   

You could develop a simple cal routine to measure the time constant with A/D to improve

   

accuracy of RC approach.

   

 

   

Regards, Dana.

View solution in original post

0 Likes
1 Reply
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

A couple of ways -

   

 

   

1) Wakeup every 2 secs or so and count off secs, go back to sleep until you hit

   

the 1 hour point. Not exactly elegant.

   

 

   

2) Use the Low Power comparator, and a CAP and a R, to effect a long term delay/interrupt.

   

You would have to account for all leakages and R tolerance (R for charging cap) to control

   

the timeout. Use an open drain output to reset cap when going to sleep.

   

 

   

You could develop a simple cal routine to measure the time constant with A/D to improve

   

accuracy of RC approach.

   

 

   

Regards, Dana.

0 Likes