English
Language : 

PIC18F87K22 Datasheet, PDF (272/548 Pages) Microchip Technology – 64/80-Pin, High-Performance, 1-Mbit Enhanced Flash Microcontrollers with 12-Bit A/D and nanoWatt XLP Technology
PIC18F87K22 FAMILY
FIGURE 20-12: PWM AUTO-SHUTDOWN WITH FIRMWARE RESTART (PxRSEN = 0)
Shutdown Event
PWM Period
ECCPxASE bit
PWM Activity
Start of
PWM Period
Normal PWM
Shutdown
Event Occurs
ECCPxASE
Cleared by
Shutdown Firmware PWM
Event Clears
Resumes
20.4.5 AUTO-RESTART MODE
The Enhanced PWM can be configured to automatically
restart the PWM signal once the auto-shutdown condi-
tion has been removed. Auto-restart is enabled by
setting the PxRSEN bit (ECCPxDEL<7>).
If auto-restart is enabled, the ECCPxASE bit will
remain set as long as the auto-shutdown condition is
active. When the auto-shutdown condition is removed,
the ECCPxASE bit will be cleared via hardware and
normal operation will resume.
The module will wait until the next PWM period begins,
however, before re-enabling the output pin. This behav-
ior allows the auto-shutdown with auto-restart features
to be used in applications based on current mode of
PWM control.
FIGURE 20-13: PWM AUTO-SHUTDOWN WITH AUTO-RESTART ENABLED (PxRSEN = 1)
Shutdown Event
PWM Period
ECCPxASE bit
PWM Activity
Start of
PWM Period
Normal PWM
Shutdown
Event Occurs
Shutdown
Event Clears
PWM
Resumes
DS39960B-page 272
Preliminary
 2010 Microchip Technology Inc.