PSOC 5 LP Halt/Stop command

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

cross mob
Anonymous
Not applicable

Hi All,

   

This is pretty simple but I can't find the command and searching on "stop" isn't helping much.

   

I have a use case where I want to basically shut the microcontroller down (forcing the user to cycle the power to bring it back online).

   

What is the command to use in PSoC Creator?

   

 

   

(Basically the software detected an unsafe condition and wants to power down to prevent damage to motors, etc being controlled.)

   

 

   

thanks,

   

Bob

0 Likes
2 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

You may use CySoftwareReset() to reset the device or an infinite loop with disabled interrupts to have an external reset enforced to escape that situation. CyHalt() is another option, you can find all this in the "System Reference Guide" from Creator's "Help" menu.

   

 

   

Bob

0 Likes
Anonymous
Not applicable

thanks Bob!

0 Likes