Datasheet
PIC18F66K80 FAMILY
DS39977F-page 280 2010-2012 Microchip Technology Inc.
FIGURE 20-12: PWM AUTO-SHUTDOWN WITH FIRMWARE RESTART (P1RSEN = 0)
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
PWM
ECCP1ASE bit
Activity
Event
Shutdown
Event Occurs
Shutdown
Event Clears
PWM
Resumes
Normal PWM
Start of
PWM Period
ECCP1ASE
Cleared by
Firmware
PWM Period
Shutdown
PWM
ECCP1ASE bit
Activity
Event
Shutdown
Event Occurs
Shutdown
Event Clears
PWM
Resumes
Normal PWM
Start of
PWM Period
PWM Period