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

frequency measure

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







frequency measure
PostPosted: Sun Feb 01, 2009 11:51 pm     Reply with quote

Dear All,
I want to measure frequency of sine wave signal with the PIC 16f877.
I am using CCS compiler. I am converting sine wave into square wave
with the help of optocoupler. That is perfect with the frequency measured
in CRO and digital meter.
But how to measure with the help of this IC and CCS.
Regards
Sachin
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Feb 02, 2009 12:43 am     Reply with quote

See this thread:
http://www.ccsinfo.com/forum/viewtopic.php?t=29963

The input square-wave signal must be at least 4v peak-to-peak,
if the PIC is running at +5v.
sachin321
Guest







frequency measure
PostPosted: Mon Feb 02, 2009 1:32 am     Reply with quote

Thanks a lot.
I have tried this example exfreq.c but it displays frequency like 56, 57 etc. but i have to display like 49.3 , in decimal upto 1 place.
Regards
Sachin
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