Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

PIC16F1933-E/P Datasheet(PDF) 186 Page - Microchip Technology

Part # PIC16F1933-E/P
Description  28/40/44-Pin Flash-Based, 8-Bit CMOS Microcontrollers with LCD Driver and nanoWatt Technology
PDF  418 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  MICROCHIP [Microchip Technology]
Direct Link  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

PIC16F1933-E/P Datasheet(HTML) 186 Page - Microchip Technology

Back Button PIC16F1933-E/P Datasheet HTML 182Page - Microchip Technology PIC16F1933-E/P Datasheet HTML 183Page - Microchip Technology PIC16F1933-E/P Datasheet HTML 184Page - Microchip Technology PIC16F1933-E/P Datasheet HTML 185Page - Microchip Technology PIC16F1933-E/P Datasheet HTML 186Page - Microchip Technology PIC16F1933-E/P Datasheet HTML 187Page - Microchip Technology PIC16F1933-E/P Datasheet HTML 188Page - Microchip Technology PIC16F1933-E/P Datasheet HTML 189Page - Microchip Technology PIC16F1933-E/P Datasheet HTML 190Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 186 / 418 page
background image
PIC16F193X/LF193X
DS41364A-page 184
Preliminary
© 2008 Microchip Technology Inc.
19.1
Capture/Compare/PWM
The Capture/Compare/PWM module is a peripheral
which allows the user to time and control different
events. In Capture mode, the peripheral allows the
timing of the duration of an event. The Compare mode
allows the user to trigger an external event when a
predetermined amount of time has expired. The PWM
mode can generate a Pulse-Width Modulated signal of
varying frequency and duty cycle.
Table 19-1 shows the timer resources required by the
CCP module.
TABLE 19-1:
REQUIRED TIMER
RESOURCES
CCP Mode
Timer Resource
Capture
Timer1
Compare
Timer1
PWM
Timer2 or 4 or 6
REGISTER 19-1:
CCPXCON: CCPX CONTROL REGISTER
R/W-00
R/W-0/0
R/W-0/0
R/W-0/0
R/W-0/0
R/W-0/0
R/W-0/0
R/W-0/0
PxM1(1)
PxM0(1)
DCxB1
DCxB0
CCPxM3
CCPxM2
CCPxM1
CCPxM0
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
U = Unimplemented bit, read as ‘0’
u = bit is unchanged
x = Bit is unknown
-n/n = Value at POR and BOR/Value at all other Reset
‘1’ = Bit is set
‘0’ = Bit is cleared
bit 7-6
PxM<1:0>: Enhanced PWM Output Configuration bits(1)
If CCPxM<3:2> = 00, 01, 10:
xx
=
PxA assigned as Capture/Compare input; PxB, PxC, PxD assigned as port pins
If CCPxM<3:2> = 11:
00
=
Single output; PxA modulated; PxB, PxC, PxD assigned as port pins
01
=
Full-Bridge output forward; P1D modulated; P1A active; P1B, P1C inactive
10
=
Half-Bridge output; P1A, P1B modulated with dead-band control; P1C, P1D assigned as port pins
11
=
Full-Bridge output reverse; P1B modulated; P1C active; P1A, P1D inactive
bit 5-4
DCxB<1:0>: PWM Duty Cycle Least Significant bits
Capture mode:
Unused
Compare mode:
Unused
PWM mode:
These bits are the two LSbs of the PWM duty cycle. The eight MSbs are found in CCPRxL.
bit 3-0
CCPxM<3:0>: ECCPx Mode Select bits
0000
= Capture/Compare/PWM off (resets ECCPx module)
0001
= Reserved
0010
= Compare mode: toggle output on match
0011
= Capture mode
0100
= Capture mode: every falling edge
0101
= Capture mode: every rising edge
0110
= Capture mode: every 4th rising edge
0111
= Capture mode: every 16th rising edge
1000
= Compare mode: initialize ECCPx pin low; set output on compare match (set CCPxIF)
1001
= Compare mode: initialize ECCPx pin high; clear output on compare match (set CCPxIF)
1010
= Compare mode: generate software interrupt only; ECCPx pin reverts to I/O state
1011
= Compare mode: trigger special event (ECCPx resets TMR1 or TMR3, sets CCPxIF bit, ECCP2
trigger also starts A/D conversion if A/D module is enabled)(1)
CCP<5:4> only:
11xx
=PWM mode
ECCP<3:1> only:
1100
= PWM mode: PxA, PxC active-high; PxB, PxD active-high
1101
= PWM mode: PxA, PxC active-high; PxB, PxD active-low
1110
= PWM mode: PxA, PxC active-low; PxB, PxD active-high
1111
= PWM mode: PxA, PxC active-low; PxB, PxD active-low
Note
1:
These bits are not implemented on CCP<5:4>.



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