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 support@ccsinfo.com

I need help how to measure pwm pulse

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



Joined: 20 Apr 2004
Posts: 0
Location: Mexico

View user's profile Send private message Send e-mail MSN Messenger

I need help how to measure pwm pulse
PostPosted: Tue Apr 20, 2004 12:39 pm     Reply with quote

Hi everyone

I'm new with the ccs compiler, I want to interface a pic with a accelerometer chip which send as output a pwm signal . this signal change the pwm width depending of the sensor.

Also I want to transmit by rs-232 to a pc the digital signal.

please give me suggestions how to implement the pwm width measure and the transmitter by rs-232 without losing performance..

thanks Smile Sad
_________________
Jean Paul Talledo Vilela
PACE Laboratory
Tec de Monterrey
mvaraujo



Joined: 20 Feb 2004
Posts: 59
Location: Brazil

View user's profile Send private message

PostPosted: Tue Apr 20, 2004 1:10 pm     Reply with quote

Jean,

I don't know if understood your question, but you can use CCP module to measure PWM signal. If you need to measure frequency, you can detect every rising edge, for example. If you need to measure width and period, you should detect rising edge as period start, change for falling edge to detect width, change for rising edge again to detect period end.

Let me know if this explanation makes sense to you.

Marcus
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