cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 5, 3 & 1

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
Expert II

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