software reset

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

cross mob
Anonymous
Not applicable

i want to 'conditionally' reset the psoc1 device.

   

Let me know the C statement to reset it.

   

regards

   

kavin

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

The easiest woulod be to jump to address 0 which can be done with an inline-assembly-statement

   

asm("LJMP 0");

   

even within a conditional if().

   

 

   

Happy Reset

   

Bob

0 Likes
Anonymous
Not applicable

thanks Mr.Bob

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

You are welcome! (and leave the "Mr.")

   

 

   

Bob

0 Likes
Rolf_Nooteboom
Level 5
Level 5
10 sign-ins 5 solutions authored First solution authored

 Why not use the dedicated M8C_Reset macro from the M8C library?

   

Regards,

   

Rolf 

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

... always learning...

   

Thanks

   

Bob

0 Likes