English
Language : 

PIC18F44J50-I Datasheet, PDF (262/562 Pages) Microchip Technology – 28/44-Pin, Low-Power, High-Performance USB Microcontrollers
PIC18F46J50 FAMILY
FIGURE 18-14: 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
Shutdown Cleared by PWM
Event Clears Firmware Resumes
18.5.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 in the ECCPxDEL 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.
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 PWM
control.
FIGURE 18-15: 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
DS39931D-page 262
 2011 Microchip Technology Inc.