cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 4 MCU

New Contributor

I want to use one switch for my motor to rotate as well as to wakeup my device from hibernate mode for this i use timer interrupt but it's not work properly can you please suggest me how could i do this.

i want to put my device in hibernate mode when my fast and slow advertising period is complete.

0 Likes
Reply
1 Solution
Moderator
Moderator

Hello,

Yes, you can use the same switch to wakeup your device from hibernate as well as a gpio for the motor, but you need to alter the functionalities dynamically.

To switch between the two functionalities you need to use the HSIOM. Please use this KBA for reference: Controlling UART Tx and Rx Pins through Firmware for PSoC 4 Devices - KBA 224950

In the device datasheet you can find the alternate functionalities for the pin. Use the Architecture TRM and Register TRM for more details as well.

Please let me know which device you are referring to, I can provide specific pointers. Please attach your project as well so that I can more insights into what's going wrong.

Regards,

Dheeraj

View solution in original post

0 Likes
Reply
1 Reply
Moderator
Moderator

Hello,

Yes, you can use the same switch to wakeup your device from hibernate as well as a gpio for the motor, but you need to alter the functionalities dynamically.

To switch between the two functionalities you need to use the HSIOM. Please use this KBA for reference: Controlling UART Tx and Rx Pins through Firmware for PSoC 4 Devices - KBA 224950

In the device datasheet you can find the alternate functionalities for the pin. Use the Architecture TRM and Register TRM for more details as well.

Please let me know which device you are referring to, I can provide specific pointers. Please attach your project as well so that I can more insights into what's going wrong.

Regards,

Dheeraj

View solution in original post

0 Likes
Reply