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

human pulse counting BPM

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








human pulse counting BPM
PostPosted: Tue Feb 02, 2010 5:30 am     Reply with quote

Can anyone help me in writing a code that counts a digital signal from 50 to 180 pulses per minute.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Feb 02, 2010 1:34 pm     Reply with quote

There is tachometer code on this page, for low frequency signals.
See the code posted by Macas, and the changes that I indicate:
http://www.ccsinfo.com/forum/viewtopic.php?t=33153&start=45
Guest








PostPosted: Wed Feb 03, 2010 6:03 am     Reply with quote

I don't have 18f2580 but I have 16f877 I tried the codes in the above link but it doesn't work. Can you advise please.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Feb 03, 2010 10:59 am     Reply with quote

1. What is the frequency of the input signal to the CCP1 pin on PIC ?
2. Are you sure that you have the signal connected to the CCP1 pin ?
3. Do you have a ground connection between the signal source and the PIC ?
4. What are the high and low voltage levels of the signal ?
5. Is the signal a digital rectangular waveform, or is it an analog sinewave ?
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