English
Language : 

PIC16LF18854 Datasheet, PDF (104/668 Pages) Microchip Technology – C Compiler Optimized RISC Architecture
PIC16(L)F18856/76
5.6 RESET Instruction
A RESET instruction will cause a device Reset. The RI
bit in the PCON register will be set to ‘0’. See Table 5-4
for default conditions after a RESET instruction has
occurred.
5.7 Stack Overflow/Underflow Reset
The device can reset when the Stack Overflows or
Underflows. The STKOVF or STKUNF bits of the PCON
register indicate the Reset condition. These Resets are
enabled by setting the STVREN bit in Configuration
Words. See Section 3.4.2 “Overflow/Underflow
Reset” for more information.
5.8 Programming Mode Exit
Upon exit of In-Circuit Serial Programming (ICSP)
mode, the device will behave as if a POR had just
occurred (the device does not reset upon run time
self-programming/erase operations).
5.9 Power-Up Timer
The Power-up Timer optionally delays device execution
after a BOR or POR event. This timer is typically used to
allow VDD to stabilize before allowing the device to start
running.
The Power-up Timer is controlled by the PWRTE bit of
the Configuration Words.
The Power-up Timer provides a nominal 64 ms time out
on POR or Brown-out Reset. The device is held in
Reset as long as PWRT is active. The PWRT delay
allows additional time for the VDD to rise to an accept-
able level. The Power-up Timer is enabled by clearing
the PWRTE bit in the Configuration Words. The
Power-up Timer starts after the release of the POR and
BOR. For additional information, refer to Application
Note AN607, “Power-up Trouble Shooting” (DS00607).
5.10 Start-up Sequence
Upon the release of a POR or BOR, the following must
occur before the device will begin executing:
1. Power-up Timer runs to completion (if enabled).
2. Oscillator start-up timer runs to completion (if
required for oscillator source).
3. MCLR must be released (if enabled).
The total time-out will vary based on oscillator
configuration and Power-up Timer Configuration. See
Section 6.0 “Oscillator Module (with Fail-Safe
Clock Monitor)” for more information.
The Power-up Timer and oscillator start-up timer run
independently of MCLR Reset. If MCLR is kept low
long enough, the Power-up Timer and oscillator
start-up timer will expire. Upon bringing MCLR high, the
device will begin execution after 10 FOSC cycles (see
Figure 5-3). This is useful for testing purposes or to
synchronize more than one device operating in parallel.
DS40001824A-page 104
Preliminary
 2016 Microchip Technology Inc.