DatasheetQ Logo
Electronic component search and free download site. Transistors,MosFET ,Diode,Integrated circuits

PIC16F882-I/SPQTP View Datasheet(PDF) - Microchip Technology

Part Name
Description
Manufacturer
PIC16F882-I/SPQTP
Microchip
Microchip Technology 
PIC16F882-I/SPQTP Datasheet PDF : 338 Pages
First Prev 141 142 143 144 145 146 147 148 149 150 Next Last
PIC16F882/883/884/886/887
11.6.4
ENHANCED PWM AUTO-
SHUTDOWN MODE
The PWM mode supports an Auto-Shutdown mode that
will disable the PWM outputs when an external
shutdown event occurs. Auto-Shutdown mode places
the PWM output pins into a predetermined state. This
mode is used to help prevent the PWM from damaging
the application.
The auto-shutdown sources are selected using the
ECCPAS<2:0> bits of the ECCPAS register. A shutdown
event may be generated by:
• A logic ‘0’ on the INT pin
• Comparator C1
• Comparator C2
• Setting the ECCPASE bit in firmware
A shutdown condition is indicated by the ECCPASE
(Auto-Shutdown Event Status) bit of the ECCPAS
register. If the bit is a ‘0’, the PWM pins are operating
normally. If the bit is a ‘1’, the PWM outputs are in the
shutdown state.
When a shutdown event occurs, two things happen:
The ECCPASE bit is set to ‘1’. The ECCPASE will
remain set until cleared in firmware or an auto-restart
occurs (see Section 11.6.5 “Auto-Restart Mode”).
The enabled PWM pins are asynchronously placed in
their shutdown states. The PWM output pins are
grouped into pairs [P1A/P1C] and [P1B/P1D]. The state
of each pin pair is determined by the PSSAC and
PSSBD bits of the ECCPAS register. Each pin pair may
be placed into one of three states:
• Drive logic ‘1
• Drive logic ‘0
• Tri-state (high-impedance)
FIGURE 11-14: AUTO-SHUTDOWN BLOCK DIAGRAM
ECCPAS<2:0>
111
110
101
100
INT
011
From Comparator C2
010
From Comparator C1
001
000
PRSEN
R
From Data Bus
D
Write to ECCPASE
S
Q ECCPASE
PSSAC<0> 1
P1A_DRV
0
PSSAC<1>
TRISx
PSSBD<0> 1
P1B_DRV
0
PSSBD<1>
TRISx
PSSAC<0> 1
P1C_DRV
0
P1A
P1B
PSSAC<1>
P1C
TRISx
PSSBD<0> 1
P1D_DRV
0
PSSBD<1>
P1D
TRISx
2006-2012 Microchip Technology Inc.
DS41291G-page 145

Share Link: 

datasheetq.com  [ Privacy Policy ]Request Datasheet ] [ Contact Us ]