Datasheet
PIC18(L)F1XK22
DS40001365F-page 120 2009-2016 Microchip Technology Inc.
13.4.5 AUTO-RESTART MODE
The Enhanced PWM can be configured to
automatically restart the PWM signal once the
auto-shutdown condition has been removed.
Auto-restart is enabled by setting the PRSEN bit in the
PWM1CON register.
If auto-restart is enabled, the ECCPASE bit will remain
set as long as the auto-shutdown condition is active.
When the auto-shutdown condition is removed, the
ECCPASE bit will be cleared via hardware and normal
operation will resume.
FIGURE 13-13: PWM AUTO-SHUTDOWN WITH AUTO-RESTART ENABLED (PRSEN = 1)
Shutdown
PWM
ECCPASE bit
Activity
Event
Shutdown
Event Occurs
Shutdown
Event Clears
PWM
Resumes
Normal PWM
Start of
PWM Period
PWM Period