Using CCP module of PIC16f877a to capture PWM

Status
Not open for further replies.

Anuradha1

Member level 2
Joined
Nov 11, 2009
Messages
49
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Location
India
Activity points
1,570
Hello all,

Am using a pic16f877a to capture the width and the time period of a PWM signal using its CCP module.
The program can be done in Assembly.
I need to move in to MikroC.

Can some1 kindly help me in this regard.

Thank you in advance.
hoping a soon reply.
 

Hi Anuradha1
First of all excuse me about my english.
last week i can do this project and write code in CCS. I upload code and Schematic in to this link. I hope these files can help you

**broken link removed**

Good luck
 
Thanks saeidjabbari.

It seems ur code produces a PWM signal using ccp module.

What I need is to use the CCP module to capture(detect) an externally given input to RC2.
Ur are using CCP pin in PWM mode while i need to use it in capture mode.

Any help is appreciated.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…