PIC18F25J50 MICROCHIP [Microchip Technology], PIC18F25J50 Datasheet - Page 56

no-image

PIC18F25J50

Manufacturer Part Number
PIC18F25J50
Description
28/44-Pin, Low-Power, High-Performance USB Microcontrollers with nanoWatt XLP Technology
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC18F25J50-I/SO
Manufacturer:
MICROCHIP
Quantity:
1 001
Part Number:
PIC18F25J50-I/SP
Manufacturer:
MICROCHIP
Quantity:
1 001
Part Number:
PIC18F25J50-I/SS
Manufacturer:
MICROCHIP
Quantity:
1 001
Part Number:
PIC18F25J50T-I/SO
Manufacturer:
MICROCHIP
Quantity:
1 001
Part Number:
PIC18F25J50T-I/SS
Manufacturer:
MICROCHIP
Quantity:
1 001
PIC18F46J50 FAMILY
4.6.5
The Deep Sleep module contains a dedicated Deep Sleep
BOR (DSBOR) circuit. This circuit may be optionally
enabled through the DSBOREN Configuration bit.
The DSBOR circuit monitors the V
voltage. The behavior of the DSBOR circuit is
described in Section 5.4 “Brown-out Reset (BOR)”.
4.6.6
The RTCC can operate uninterrupted during Deep
Sleep mode. It can wake the device from Deep Sleep
by configuring an alarm.
The RTCC clock source is configured with the
RTCOSC bit (CONFIG3L<1>). The available reference
clock sources are the INTRC and T1OSC/T1CKI. If the
INTRC is used, the RTCC accuracy will directly depend
on the INTRC tolerance.For more information on
configuring the RTCC peripheral, see
“Real-Time Clock and Calendar
4.6.7
This section gives the typical sequence for using the Deep
Sleep mode. Optional steps are indicated, and additional
information is given in notes at the end of the procedure.
1.
2.
3.
4.
5.
6.
7.
8.
9.
10. If using an RTCC alarm for wake-up, wait until
11. Enter Deep Sleep mode by setting the DSEN bit
12. Once a wake-up event occurs, the device will
13. Determine if the device exited Deep Sleep by
DS39931D-page 56
Enable DSWDT (optional).
Configure DSWDT clock source (optional).
Enable DSBOR (optional).
Enable RTCC (optional).
Configure the RTCC peripheral (optional).
Configure the ULPWU peripheral (optional).
Enable the INT0 Interrupt (optional).
Context save SRAM data by writing to the
DSGPR0 and DSGPR1 registers (optional).
Set the REGSLP bit (WDTCON<7>) and clear
the IDLEN bit (OSCCON<7>).
the RTCSYNC bit (RTCCFG<4>) is clear.
(DSCONH<7>) and issuing a SLEEP instruction.
These two instructions must be executed
back-to-back.
perform a Power-on Reset sequence. Code
execution resumes at the device’s Reset vector.
reading the Deep Sleep bit, DS (WDTCON<3>).
This bit will be set if there was an exit from Deep
Sleep mode.
DEEP SLEEP BROWN-OUT RESET
(DSBOR)
RTCC PERIPHERAL AND DEEP
SLEEP
TYPICAL DEEP SLEEP SEQUENCE
(3)
(1)
(1)
(RTCC)”.
DD
Section 17.0
supply rail
(3)
(2)
(4)
14. Clear the Deep Sleep bit, DS (WDTCON<3>).
15. Determine the wake-up source by reading the
16. Determine if a DSBOR event occurred during
17. Read the DSGPR0 and DSGPR1 Context Save
18. Clear the RELEASE bit (DSCONL<0>).
4.6.8
If during Deep Sleep, the device is subjected to
unusual operating conditions, such as an Electrostatic
Discharge (ESD) event, it is possible that internal cir-
cuit states used by the Deep Sleep module could
become corrupted. If this were to happen, the device
may exhibit unexpected behavior, such as a failure to
wake back up.
In order to prevent this type of scenario from occurring,
the
self-monitoring capability. During Deep Sleep, critical
internal nodes are continuously monitored in order to
detect possible Fault conditions (which would not
ordinarily occur). If a Fault condition is detected, the
circuitry will set the DSFLT status bit (DSWAKEL<7>)
and automatically wake the microcontroller from Deep
Sleep, causing a POR.
During Deep Sleep, the Fault detection circuitry is
always enabled and does not require any specific
configuration prior to entering Deep Sleep.
Note 1: DSWDT and DSBOR are enabled
DSWAKEH and DSWAKEL registers.
Deep Sleep mode by reading the DSBOR bit
(DSCONL<1>).
registers (optional).
Deep
2: The DSWDT and RTCC clock sources
3: For more information, see
4: For more information on configuring this
DEEP SLEEP FAULT DETECTION
through the devices’ Configuration bits.
For more information, see
“Configuration
are selected through the devices’ Con-
figuration bits. For more information, see
Section 27.1 “Configuration
“Real-Time
(RTCC)”.
peripheral,
Low-Power
Sleep
module
 2011 Microchip Technology Inc.
Wake-up”.
see
Clock
Bits”.
Section 4.7
includes
and
Section 27.1
Section 17.0
Bits”.
Calendar
automatic
“Ultra

Related parts for PIC18F25J50