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.

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.

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.

Click here to edit contents of this page.

Click here to toggle editing of individual sections of the page (if possible). Watch headings for an "edit" link when available.

Append content without editing the whole page source.

Check out how this page has evolved in the past.

If you want to discuss contents of this page - this is the easiest way to do it.

View and manage file attachments for this page.

A few useful tools to manage this Site.

See pages that link to and include this page.

Change the name (also URL address, possibly the category) of the page.