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

tachometer with pic16f877A

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



Joined: 08 Feb 2009
Posts: 72
Location: campulung muscel

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

tachometer with pic16f877A
PostPosted: Mon Feb 09, 2009 12:15 pm     Reply with quote

hy, i just start a project with PIC16F877A,
and for start i want to make a tachometer.
The input is on AN0 and the output is on a 16X2 display.


Can you help me?
I would be interested to have put everything in a project library for the project is more comprehensive with more modules.
http://img222.imageshack.us/my.php?image=calculatorqa8.jpg
dyeatman



Joined: 06 Sep 2003
Posts: 1923
Location: Norman, OK

View user's profile Send private message

PostPosted: Mon Feb 09, 2009 12:28 pm     Reply with quote

That topic has been discussed in this forum numerous times. I would recommend using the search feature to get your class project going.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Feb 09, 2009 1:04 pm     Reply with quote

Right, but he doesn't want to use the CCP for this. I recommended that
he start a new thread for that. (Didn't guarantee there would be a solution).
soulraven



Joined: 08 Feb 2009
Posts: 72
Location: campulung muscel

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

PostPosted: Mon Feb 09, 2009 1:07 pm     Reply with quote

please any help.........
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Feb 09, 2009 1:49 pm     Reply with quote

Describe the signal that you want to measure. What is the frequency ?
What is the duty cycle ? What is the amplitude ? What are the peak to
peak voltages ? (low and high). Is it a rectangular waveform or is it
a sine wave, etc. ?
soulraven



Joined: 08 Feb 2009
Posts: 72
Location: campulung muscel

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

PostPosted: Mon Feb 09, 2009 2:02 pm     Reply with quote

is a signal rectangle is retrieved from the induction coil machines. 0V minimum voltage 5V max. Installation I did print a optocultor I attached blue print in the above message .....
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Feb 09, 2009 2:11 pm     Reply with quote

What about the frequency and duty cycle ?

Also, your picture is cut off on the left side. I can't see the complete
input circuit.
soulraven



Joined: 08 Feb 2009
Posts: 72
Location: campulung muscel

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

PostPosted: Mon Feb 09, 2009 2:23 pm     Reply with quote

max. 2000hz and duty cycle 50%, on 50hz=1500RPM, 100hz=3000RPM

http://img6.imageshack.us/my.php?image=calculatorqw5.jpg
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Feb 09, 2009 3:34 pm     Reply with quote

I think it can be done. The PicBasic Pro manual has the COUNT command
which can test any pin for the frequency of an input signal. See page 64
in the Acrobat reader for the the COUNT command :
http://www.melabs.com/downloads/pbpm108.pdf
It gives the limits of the frequency range that it can accept. You could
write an ASM routine in a CCS program and duplicate the function of the
PicBasic Pro COUNT command.
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