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
Posted: Fri Sep 01, 2006 6:10 pm
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:
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