CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

CCP Question....

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
boatdrinks
Guest







CCP Question....
PostPosted: Thu Aug 31, 2006 3:06 pm     Reply with quote

Hi,
I am looking to use a PIC18F4620 chip to read in two individual pulses on CCP1 and CCP2. I am looking to measure the duty cycle on a 10ms Pulse. I am also using CCP 4 and CCP5 for PWM outputs. Is is possible to determine the pulse width using a single CCP line? I know it can be done using two pins from the examples in the CCS code.

Any sugestions would be greatly appreciated.
thanks,
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Sep 01, 2006 6:10 pm     Reply with quote

Quote:
I am looking to measure the duty cycle on a 10ms Pulse.

You didn't say what chip you're using. Are you using an accelerometer
such as the ADXL210E ? I notice from the data sheet that its repetition
rate can be set for 10ms, and that the acceleration is provided by the
duty cycle of the output waveform. If so, CCS has a driver for this chip.
It uses only one CCP channel to make the measurement. The driver is
in this folder:

c:\program files\picc\drivers\adxl210.c
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group