cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 4 MCU

Contributor II

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
Reply
1 Solution
Moderator
Moderator

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

Best Regards,
Swathi

View solution in original post

0 Likes
Reply
5 Replies
Moderator
Moderator

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

Best Regards,
Swathi
0 Likes
Reply
Contributor II

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
Reply
Moderator
Moderator

Hi Neeraj,

Which PSoC device/kit are you using?

Is it PSoC 4200 Pioneer kit?

Regards,

Swathi

Best Regards,
Swathi
0 Likes
Reply
Contributor II

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
Reply
Moderator
Moderator

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

Best Regards,
Swathi

View solution in original post

0 Likes
Reply