Reset Software Instruction

The Reset Software instruction allows the designer to implement a Master Clear External style reset but from within the application code running on the device. It will briefly hold the PIC® MCU in reset when executed and place the Program Counter back to the beginning of the program software (org 0).

The Reset instruction is really a way for the software designer to implement an MCLR reset at any point in the application code. Care should be taken with this instruction as placement within the main loop of code will create a continuous reset loop. It should be placed in a fail safe location of the software that is executed only at a specific time as needed. A WDT reset is typically a better choice for protecting the application from outside interference that may cause the device software to not operate as expected.

resetinst.png

When the Reset instruction is executed, the RI = 0 bit in the PCON register will be cleared. This persistent bit allows the software designer to check at the beginning of the application to see if a software reset was the cause of the device reset.


For more information on 8-bit reset options visit the Reset Options wiki page.

© 2024 Microchip Technology, Inc.
Notice: ARM and Cortex are the registered trademarks of ARM Limited in the EU and other countries.
Information contained on this site regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life support and/or safety applications is entirely at the buyer's risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights.