one switch for two functions

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

cross mob
suga_4501896
Level 1
Level 1
10 sign-ins 5 replies posted 5 sign-ins

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
1 Solution
DheerajK_81
Moderator
Moderator
Moderator
First comment on KBA First comment on blog 5 questions asked

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
1 Reply
DheerajK_81
Moderator
Moderator
Moderator
First comment on KBA First comment on blog 5 questions asked

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

0 Likes