wakeup from deepsleep using timer interrupt.

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

cross mob
lock attach
Attachments are accessible only for community members.
NeDh_4602711
Level 5
Level 5
5 solutions authored First solution authored 50 replies posted

I am trying to implement deep sleep using a timer interrupt after say 10 seconds it should display "test" on serial monitor and again it should go to deep sleep for next 10 seconds. is it possible?

I have written code but my CY_ISR is not getting triggered.

I have attached a zip file.

Thanks in advance

Regards,

Neeraj

0 Likes
1 Solution
lock attach
Attachments are accessible only for community members.
Swathi
Moderator
Moderator
Moderator
25 replies posted 25 sign-ins 10 solutions authored

Hi Neeraj,

I have attached a project that blinks an led every 10 seconds on deep sleep wakeup caused by WDT interrupt. Please select the PSoC 4200 BLE device under the device selector before programming and assign the LED pin number accordingly.

Please go through the PSoC 4 LF clock datasheet for the API definitions.

file:/C:/Program%20Files%20(x86)/Cypress/PSoC%20Creator/4.3/PSoC%20Creator/psoc/content/cycomponentl...

Also, refer to the attached document to find the steps to configure WDT.

Let me know if you have any further queries.

Regards,

Swathi

View solution in original post

0 Likes
5 Replies
Swathi
Moderator
Moderator
Moderator
25 replies posted 25 sign-ins 10 solutions authored

Hi Neeraj,

You have used a TCPWM timer to generate an interrupt. However, in deep sleep mode, the TCPWM block will be disabled. Go for a Watchdog timer instead.

Regards,

Swathi

0 Likes
lock attach
Attachments are accessible only for community members.

Thanks for the reply.

Could you please provide me an example for the same?

I am trying to check the example code but I am getting a build error. "too few arguments to function" and Clock Error: (WDT interrupt generated by PSoC Creator will be overwritten by the 'WDT_Interrupt' ISR handler of the 'WDT' component and the user will not be able to attach his functions to the individual WDT interrupts using callbacks. Either remove the component or change the interrupt generation option to 'Implementation by user').

Thanks and regards,

Neeraj

0 Likes
Swathi
Moderator
Moderator
Moderator
25 replies posted 25 sign-ins 10 solutions authored

Hi Neeraj,

Which PSoC device/kit are you using?

Is it PSoC 4200 Pioneer kit?

Regards,

Swathi

0 Likes

Yes CY8CKIT-042-BLE and using with EVAL-CYBLE-022001-00.

Regards

Neeraj

On Tue, 25 Aug 2020 at 10:05 AM, SwathiS_86 <community-manager@cypress.com>

0 Likes
lock attach
Attachments are accessible only for community members.
Swathi
Moderator
Moderator
Moderator
25 replies posted 25 sign-ins 10 solutions authored

Hi Neeraj,

I have attached a project that blinks an led every 10 seconds on deep sleep wakeup caused by WDT interrupt. Please select the PSoC 4200 BLE device under the device selector before programming and assign the LED pin number accordingly.

Please go through the PSoC 4 LF clock datasheet for the API definitions.

file:/C:/Program%20Files%20(x86)/Cypress/PSoC%20Creator/4.3/PSoC%20Creator/psoc/content/cycomponentl...

Also, refer to the attached document to find the steps to configure WDT.

Let me know if you have any further queries.

Regards,

Swathi

0 Likes