Microchip Technology MA330026 Data Sheet

Page of 392
 2011-2014 Microchip Technology Inc.
DS70000652F-page 93
dsPIC33FJ16(GP/MC)101/102 AND dsPIC33FJ32(GP/MC)101/102/104
6.5
External Reset (EXTR)
The External Reset is generated by driving the MCLR
pin low. The MCLR pin is a Schmitt trigger input with an
additional glitch filter. Reset pulses that are longer than
the minimum pulse width will generate a Reset. Refer
to 
 for
minimum pulse-width specifications. The External
Reset pin (MCLR) bit (EXTR) in the Reset Control
(RCON) register is set to indicate the MCLR Reset.
6.5.1
EXTERNAL SUPERVISORY 
CIRCUIT
Many systems have external supervisory circuits that
generate Reset signals to reset multiple devices in the
system. This External Reset signal can be directly
connected to the MCLR pin to reset the device when
the rest of the system is reset.
6.5.2
INTERNAL SUPERVISORY CIRCUIT
When using the internal power supervisory circuit to
reset the device, the External Reset pin (MCLR) should
be tied directly or resistively to V
DD
. In this case, the
MCLR pin will not be used to generate a Reset. The
External Reset pin (MCLR) does not have an internal
pull-up and must not be left unconnected. 
6.6
Software RESET Instruction (SWR)
Whenever the RESET instruction is executed, the device
will assert SYSRST, placing the device in a special
Reset state. This Reset state will not re-initialize the
clock. The clock source in effect prior to the RESET
instruction will remain as the source. SYSRST is
released at the next instruction cycle and the Reset
vector fetch will commence.
The Software RESET (Instruction) Flag (SWR) bit in the
Reset Control (RCON<6>) register is set to indicate the
Software Reset.
6.7
Watchdog Timer Time-out Reset 
(WDTO)
Whenever a Watchdog Timer Time-out Reset occurs,
the device will asynchronously assert SYSRST. The
clock source will remain unchanged. A WDT time-out
during Sleep or Idle mode will wake-up the processor,
but will not reset the processor. 
The Watchdog Timer Time-out Flag (WDTO) bit in the
Reset Control (RCON<4>) register is set to indicate the
Watchdog Timer Reset. Refer to 
for more information on the
Watchdog Timer Reset.
6.8
Trap Conflict Reset 
If a lower priority hard trap occurs while a higher priority
trap is being processed, a hard Trap Conflict Reset
occurs. The hard traps include exceptions of Priority
Level 13 through Level 15, inclusive. The address error
(Level 13) and oscillator error (Level 14) traps fall into
this category.
The Trap Reset Flag (TRAPR) bit in the Reset Control
(RCON<15>) register is set to indicate the Trap Conflict
Reset. Refer to 
 for
more information on Trap Conflict Resets.
6.9
Configuration Mismatch Reset 
To maintain the integrity of the Peripheral Pin Select
Control registers, they are constantly monitored with
shadow registers in hardware. If an unexpected
change in any of the registers occurs (such as cell
disturbances caused by ESD or other external events),
a Configuration Mismatch Reset occurs.
The Configuration Mismatch Flag (CM) bit in the Reset
Control (RCON<9>) register is set to indicate the
Configuration Mismatch Reset. Refer to 
 for more information on the Configuration
Mismatch Reset.
6.10
Illegal Condition Device Reset
An Illegal Condition Device Reset occurs due to the
following sources:
• Illegal Opcode Reset
• Uninitialized W Register Reset
• Security Reset
The Illegal Opcode or Uninitialized W Access Reset
Flag (IOPUWR) bit in the Reset Control (RCON<14>)
register is set to indicate the Illegal Condition Device
Reset.
6.10.1
ILLEGAL OPCODE RESET
A device Reset is generated if the device attempts to
execute an illegal opcode value that is fetched from
program memory.
The Illegal Opcode Reset function can prevent the
device from executing program memory sections that
are used to store constant data. To take advantage of
the Illegal Opcode Reset, use only the lower 16 bits of
each program memory section to store the data values.
The upper 8 bits should be programmed with 0x3F,
which is an illegal opcode value. 
Note:
The Configuration Mismatch feature and
associated Reset flag is not available on
all devices.