Electronic Components Datasheet Search
  New Zealand  ▼
ALLDATASHEET.CO.NZ

X  

PIC18F23K20-E/ML Datasheet(PDF) 183 Page - Microchip Technology

Part # PIC18F23K20-E/ML
Description  28/40/44-Pin Flash Microcontrollers with nanoWatt XLP Technology
PDF  456 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  MICROCHIP [Microchip Technology]
Direct Link  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

PIC18F23K20-E/ML Datasheet(HTML) 183 Page - Microchip Technology

Back Button PIC18F23K20-E/ML Datasheet HTML 179Page - Microchip Technology PIC18F23K20-E/ML Datasheet HTML 180Page - Microchip Technology PIC18F23K20-E/ML Datasheet HTML 181Page - Microchip Technology PIC18F23K20-E/ML Datasheet HTML 182Page - Microchip Technology PIC18F23K20-E/ML Datasheet HTML 183Page - Microchip Technology PIC18F23K20-E/ML Datasheet HTML 184Page - Microchip Technology PIC18F23K20-E/ML Datasheet HTML 185Page - Microchip Technology PIC18F23K20-E/ML Datasheet HTML 186Page - Microchip Technology PIC18F23K20-E/ML Datasheet HTML 187Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 183 / 456 page
background image
 2010 Microchip Technology Inc.
DS41303G-page 183
PIC18F2XK20/4XK20
16.4.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 ECCP1AS register. A
shutdown event may be generated by:
•A logic ‘0’ on the FLT0 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 ECCP1AS
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 16.4.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 ECCP1AS register. Each pin pair may
be placed into one of three states:
• Drive logic ‘1’
• Drive logic ‘0’
• Tri-state (high-impedance)
REGISTER 16-2:
ECCP1AS: ENHANCED CAPTURE/COMPARE/PWM AUTO-SHUTDOWN
CONTROL REGISTER
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
ECCPASE
ECCPAS2
ECCPAS1
ECCPAS0
PSSAC1
PSSAC0
PSSBD1
PSSBD0
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
U = Unimplemented bit, read as ‘0’
-n = Value at POR
‘1’ = Bit is set
‘0’ = Bit is cleared
x = Bit is unknown
bit 7
ECCPASE: ECCP Auto-Shutdown Event Status bit
1
= A shutdown event has occurred; ECCP outputs are in shutdown state
0
= ECCP outputs are operating
bit 6-4
ECCPAS<2:0>: ECCP Auto-shutdown Source Select bits
000
= Auto-Shutdown is disabled
001
= Comparator C1OUT output is high
010
= Comparator C2OUT output is high
011
= Either Comparator C1OUT or C2OUT is high
100
=VIL on FLT0 pin
101
=VIL on FLT0 pin or Comparator C1OUT output is high
110
=VIL on FLT0 pin or Comparator C2OUT output is high
111
=VIL on FLT0 pin or Comparator C1OUT or Comparator C2OUT is high
bit 3-2
PSSACn: Pins P1A and P1C Shutdown State Control bits
00
= Drive pins P1A and P1C to ‘0’
01
= Drive pins P1A and P1C to ‘1’
1x
= Pins P1A and P1C tri-state
bit 1-0
PSSBDn: Pins P1B and P1D Shutdown State Control bits
00
= Drive pins P1B and P1D to ‘0’
01
= Drive pins P1B and P1D to ‘1’
1x
= Pins P1B and P1D tri-state



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com