English
Language : 

PIC18F26K80-I Datasheet, PDF (280/622 Pages) Microchip Technology – 28/40/44/64-Pin, Enhanced Flash Microcontrollers with ECAN™ and nanoWatt XLP Technology
PIC18F66K80 FAMILY
FIGURE 20-12: PWM AUTO-SHUTDOWN WITH FIRMWARE RESTART (P1RSEN = 0)
Shutdown Event
PWM Period
ECCP1ASE bit
PWM Activity
Start of
PWM Period
Normal PWM
Shutdown
Event Occurs
ECCP1ASE
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 P1RSEN bit (ECCP1DEL<7>).
If auto-restart is enabled, the ECCP1ASE bit will
remain set as long as the auto-shutdown condition is
active. When the auto-shutdown condition is removed,
the ECCP1ASE 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 (P1RSEN = 1)
Shutdown Event
PWM Period
ECCP1ASE bit
PWM Activity
Start of
PWM Period
Normal PWM
Shutdown
Event Occurs
Shutdown
Event Clears
PWM
Resumes
DS39977F-page 280
 2010-2012 Microchip Technology Inc.