Vault 7: Projects

This publication series is about specific projects related to the Vault 7 main publication.

© 2011 Microchip Technology Inc. DS39712D-page 7-21
Section 7. Reset
Reset
7
7.17 DESIGN TIPS
Question 1: How do I use the RCON registers?
Answer: The initialization code after a Reset should examine RCON and RCON2 to confirm the
source of the Reset. In some applications, this information can be used to take appropriate action
to correct the problem that caused the Reset to occur. All Reset status bits in the RCON register
should be cleared after reading them to ensure the RCON value provides meaningful results after
the next device Reset.
Question 2: I initialized a W register with a 16-bit address; why does the device appear
to reset when I attempt to use the register as an address?
Answer: Because all data addresses are 16-bit values, the uninitialized W register logic only
recognizes that a register has been initialized correctly if it was subjected to a word load.
Two-byte moves to a W register, even if successive, will not work, resulting in a device Reset if
the W register is used as an Address Pointer in an operation.

e-Highlighter

Click to send permalink to address bar, or right-click to copy permalink.

Un-highlight all Un-highlight selectionu Highlight selectionh