Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

explain about ccp module in PIC 16F877A ?

Status
Not open for further replies.

rangerskm

Full Member level 4
Full Member level 4
Joined
Jan 23, 2013
Messages
199
Helped
0
Reputation
2
Reaction score
0
Trophy points
1,296
Activity points
2,663
can any one explain the operation of capture compare and PWM register with example program in assembly language and embedded C.
 

https://ww1.microchip.com/downloads/en/devicedoc/39582b.pdf
page 65 onward,

what are you wanting to do with it, Ive used the PWM
Code:
PR2     = 255;                //Timer2 Period Register - Period of PWM (MAX 255)
CCP1CON = 0b00111100;         //<5:4> DC LSBs, <3:2> PWM Mode
T2CON   = 0b00000100;         //<2> enables Timer2, <1:0> prescaler = 1
CCPR1L = sinedc[dctrans];

That initializes the PWM and set DC to values of a char string.

If u use the data sheet that'll tell u everything u need to switch on (or off) to get it to do what u want
hope this helps
 
can you explain with sample calculation for PWM operation
 

CCP-Campture Compare PWM... this is the combination of three(capture, compare, pwm) module... it will associated with timer.... for more detail refer this link

**broken link removed**
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top