Microchip Technology MCU PIC PIC18F87K22-I/PTRSL TQFP-80 MCP PIC18F87K22-I/PTRSL Hoja De Datos

Los códigos de productos
PIC18F87K22-I/PTRSL
Descargar
Página de 550
PIC18F87K22 FAMILY
DS39960D-page 274
 2009-2011 Microchip Technology Inc.
FIGURE 20-12:
PWM AUTO-SHUTDOWN WITH FIRMWARE RESTART (PxRSEN = 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 PxRSEN bit (ECCPxDEL<7>).
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 of
PWM control.
FIGURE 20-13:
PWM AUTO-SHUTDOWN WITH AUTO-RESTART ENABLED (PxRSEN = 1) 
Shutdown
PWM
ECCPxASE bit
Activity
Event
Shutdown
Event Occurs
Shutdown
Event Clears
PWM
Resumes
Normal PWM
Start of
PWM Period
ECCPxASE
Cleared by
Firmware
PWM Period
Shutdown
PWM
ECCPxASE bit
Activity
Event
Shutdown
Event Occurs
Shutdown
Event Clears
PWM
Resumes
Normal PWM
Start of
PWM Period
PWM Period