Datasheet

PIC18(L)F2X/45K50
DS30684A-page 200 2012 Microchip Technology Inc.
FIGURE 15-14: PWM AUTO-SHUTDOWN WITH FIRMWARE RESTART (PxRSEN = 0)
15.4.4 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 PxRSEN bit in the PWMxCON
register.
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.
FIGURE 15-15: PWM AUTO-SHUTDOWN WITH AUTO-RESTART (PXRSEN = 1)
Shutdown
PWM
ECCPxASE bit
Activity
Event
Shutdown
Event Occurs
Shutdown
Event Clears
PWM
Resumes
PWM Period
Start of
PWM Period
ECCPxASE
Cleared by
Firmware
Timer
Overflow
Timer
Overflow
Timer
Overflow
Timer
Overflow
Missing Pulse
(Auto-Shutdown)
Missing Pulse
(ECCPxASE not clear)
Timer
Overflow
Shutdown
PWM
ECCPxASE bit
Activity
Event
Shutdown
Event Occurs
Shutdown
Event Clears
PWM Period
Start of
PWM Period
ECCPxASE
Cleared by
Hardware
Timer
Overflow
Timer
Overflow
Timer
Overflow
Timer
Overflow
Missing Pulse
(Auto-Shutdown)
Missing Pulse
(ECCPxASE not clear)
Timer
Overflow
PWM
Resumes