what is the difference between Timer and CyDelay in terms of power savings?

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

I get advice not to use CyDelay and so I tried to use Timer. But I do not see any current savings while using Timer. What is the current consumption of Timer?

0 Likes
1 Solution

Timer(s) ... or more specifically TCPWMs ... do not run in Deep Sleep... so you cant use it as a source of wakeup

Here is a beautiful app note about low power.

http://www.cypress.com/file/121271/download

View solution in original post

5 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Every component's datasheet has a chapter where the current consumption is listed as a function of clock frequency.  There your timer (whichever you use) will be explained.

CyDelay uses a CPU loop which will consume less power than a CPU action and a timer component. The question is: What does the CPU while the timer is running???

Bob

Thanks Bob,

15uA current consumes for Timer at 3MHz

In my application I want to wakeup DeepSleep using one shot timer.

How do I use the wakeup interrupt?

CY_ISR(WakeUp_Isr)

{

// ModeSwitch_ClearInterrupt();  /* Clears the PICU interrupt   */

    OneShotHandler_ClearInterrupt(); // What is the syntex for this?

}

0 Likes

Timer(s) ... or more specifically TCPWMs ... do not run in Deep Sleep... so you cant use it as a source of wakeup

Here is a beautiful app note about low power.

http://www.cypress.com/file/121271/download

Thanks for the information Timers do not run with DeepSleep. So only the WDT will do.

0 Likes
Anonymous
Not applicable

Yes. WDTs are the timers to use for deep sleep

0 Likes