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

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
4.0
The PIC18F46J50 family devices can manage power
consumption through clocking to the CPU and the
peripherals. In general, reducing the clock frequency
and number of circuits being clocked reduce power
consumption.
For managing power in an application, the primary
modes of operation are:
• Run Mode
• Idle Mode
• Sleep Mode
• Deep Sleep Mode
Additionally, there is an Ultra Low-Power Wake-up
(ULPWU) mode for generating an interrupt-on-change
on RA0.
These modes define which portions of the device are
clocked and at what speed.
• The Run and Idle modes can use any of the three
• The Sleep mode does not use a clock source.
The ULPWU mode on RA0 allows a slow falling voltage
to generate an interrupt-on-change on RA0 without
excess current consumption. See
Low-Power
The
power-saving features offered on previous PIC
devices, such as clock switching, ULPWU and Sleep
mode. In addition, the PIC18F46J50 family devices add
a new power-managed Deep Sleep mode.
4.1
Selecting a power-managed mode requires these
decisions:
• Will the CPU be clocked?
• If so, which clock source will be used?
 2011 Microchip Technology Inc.
available clock sources (primary, secondary or
internal oscillator blocks).
power-managed
LOW-POWER MODES
Selecting Power-Managed Modes
Wake-up”.
modes
Section 4.7 “Ultra
include
several
®
PIC18F46J50 FAMILY
The IDLEN bit (OSCCON<7>) controls CPU clocking
and the SCS<1:0> bits (OSCCON<1:0>) select the
clock source. The individual modes, bit settings, clock
sources and affected modules are summarized in
Table
4.1.1
The SCS<1:0> bits allow the selection of one of three
clock sources for power-managed modes. They are:
• Primary clock source – Defined by the
• Timer1 clock – Provided by the secondary
• Postscaled internal clock – Derived from the
4.1.2
Switching from one clock source to another begins by
loading the OSCCON register. The SCS<1:0> bits
select the clock source.
Changing these bits causes an immediate switch to the
new clock source, assuming that it is running. The
switch also may be subject to clock transition delays.
These delays are discussed in
Transitions and Status Indicators”
sections.
Entry to the power-managed Idle or Sleep modes is
triggered by the execution of a SLEEP instruction. The
actual mode that results depends on the status of the
IDLEN bit.
Depending on the current mode and the mode being
switched to, a change to a power-managed mode does
not always require setting all of these bits. Many transi-
tions may be done by changing the oscillator select
bits, the IDLEN bit, or the DSEN bit prior to issuing a
SLEEP instruction.
If the IDLEN and DSEN bits are already configured
correctly, it only may be necessary to perform a SLEEP
instruction to switch to the desired mode.
FOSC<2:0> Configuration bits
oscillator
internal oscillator block
4-1.
CLOCK SOURCES
ENTERING POWER-MANAGED
MODES
Section 4.1.3 “Clock
DS39931D-page 47
and subsequent

Related parts for PIC18F25J50