Microchip Technology MA330026 データシート
2011-2014 Microchip Technology Inc.
DS70000652F-page 133
dsPIC33FJ16(GP/MC)101/102 AND dsPIC33FJ32(GP/MC)101/102/104
9.0
POWER-SAVING FEATURES
The dsPIC33FJ16(GP/MC)101/102 and
dsPIC33FJ32(GP/MC)101/102/104 devices provide
the ability to manage power consumption by selectively
managing clocking to the CPU and the peripherals. In
general, a lower clock frequency and a reduction in the
number of circuits being clocked constitutes lower
consumed power. Devices can manage power
consumption in four different ways:
dsPIC33FJ32(GP/MC)101/102/104 devices provide
the ability to manage power consumption by selectively
managing clocking to the CPU and the peripherals. In
general, a lower clock frequency and a reduction in the
number of circuits being clocked constitutes lower
consumed power. Devices can manage power
consumption in four different ways:
• Clock Frequency
• Instruction-Based Sleep and Idle modes
• Software-Controlled Doze mode
• Selective Peripheral Control in Software
Combinations of these methods can be used to selec-
tively tailor an application’s power consumption while
still maintaining critical application features, such as
timing-sensitive communications.
tively tailor an application’s power consumption while
still maintaining critical application features, such as
timing-sensitive communications.
9.1
Clock Frequency and Clock
Switching
Switching
dsPIC33FJ16(GP/MC)101/102 and dsPIC33FJ32(GP/
MC)101/102/104 devices allow a wide range of clock
frequencies to be selected under application control. If
the system clock configuration is not locked, users can
choose low-power or high-precision oscillators by simply
changing the NOSC<2:0> bits (OSCCON<10:8>). The
process of changing a system clock during operation, as
well as limitations to the process, are discussed in more
detail in
MC)101/102/104 devices allow a wide range of clock
frequencies to be selected under application control. If
the system clock configuration is not locked, users can
choose low-power or high-precision oscillators by simply
changing the NOSC<2:0> bits (OSCCON<10:8>). The
process of changing a system clock during operation, as
well as limitations to the process, are discussed in more
detail in
.
9.2
Instruction-Based Power-Saving
Modes
Modes
dsPIC33FJ16(GP/MC)101/102 and dsPIC33FJ32(GP/
MC)101/102/104 devices have two special power-
saving modes that are entered through the execution of
a special PWRSAV instruction. Sleep mode stops clock
operation and halts all code execution. Idle mode halts
the CPU and code execution, but allows peripheral
modules to continue operation. The assembler syntax
of the PWRSAV instruction is shown in
MC)101/102/104 devices have two special power-
saving modes that are entered through the execution of
a special PWRSAV instruction. Sleep mode stops clock
operation and halts all code execution. Idle mode halts
the CPU and code execution, but allows peripheral
modules to continue operation. The assembler syntax
of the PWRSAV instruction is shown in
Sleep and Idle modes can be exited as a result of an
enabled interrupt, WDT time-out or a device Reset. When
the device exits these modes, it is said to wake-up.
enabled interrupt, WDT time-out or a device Reset. When
the device exits these modes, it is said to wake-up.
9.2.1
SLEEP MODE
The following occurs in Sleep mode:
• The system clock source is shut down. If an
on-chip oscillator is used, it is turned off.
• The device current consumption is reduced to a
minimum, provided that no I/O pin is sourcing
current
current
• The Fail-Safe Clock Monitor does not operate,
since the system clock source is disabled
• The LPRC clock continues to run in Sleep mode if
the WDT is enabled
• The WDT, if enabled, is automatically cleared
prior to entering Sleep mode
• Some device features or peripherals may continue
to operate. This includes items such as the Input
Change Notification (ICN) on the I/O ports or
peripherals that use an external clock input.
Change Notification (ICN) on the I/O ports or
peripherals that use an external clock input.
• Any peripheral that requires the system clock
source for its operation is disabled
The device will wake-up from Sleep mode on any of the
these events:
these events:
• Any interrupt source that is individually enabled
• Any form of device Reset
• A WDT time-out
On wake-up from Sleep mode, the processor restarts
with the same clock source that was active when Sleep
mode was entered.
with the same clock source that was active when Sleep
mode was entered.
EXAMPLE 9-1:
PWRSAV
INSTRUCTION SYNTAX
Note 1: This data sheet summarizes the features
of the dsPIC33FJ16(GP/MC)101/102
and dsPIC33FJ32(GP/MC)101/102/104
family devices. It is not intended to be a
comprehensive reference source. To
complement the information in this data
sheet, refer to “Watchdog Timer and
Power-Saving Modes” (DS70196) in the
“dsPIC33/PIC24 Family Reference Man-
ual”, which is available from the Microchip
web site (
and dsPIC33FJ32(GP/MC)101/102/104
family devices. It is not intended to be a
comprehensive reference source. To
complement the information in this data
sheet, refer to “Watchdog Timer and
Power-Saving Modes” (DS70196) in the
“dsPIC33/PIC24 Family Reference Man-
ual”, which is available from the Microchip
web site (
www.microchip.com
).
2: Some registers and associated bits
described in this section may not be
available on all devices. Refer to
available on all devices. Refer to
in
this data sheet for device-specific register
and bit information.
and bit information.
Note:
SLEEP_MODE
and IDLE_MODE are
constants defined in the assembler
include file for the selected device.
include file for the selected device.
PWRSAV
#SLEEP_MODE
; Put the device into SLEEP mode
PWRSAV
#IDLE_MODE
; Put the device into IDLE mode