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 meter that works up to 6-7 MHZ

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



Joined: 01 Feb 2012
Posts: 63

View user's profile Send private message

Frequency meter that works up to 6-7 MHZ
PostPosted: Sat Feb 04, 2012 8:08 am     Reply with quote

Using PIC 16f88, is possible to implement a frequency counter that could work up to about 7 mhz without using a hardware prescaler? My goal is to read the frequency every 100 ms and store it in a variable. Accuracy is not a big problem. It can be up to 100 Hz. Thank you.
SherpaDoug



Joined: 07 Sep 2003
Posts: 1640
Location: Cape Cod Mass USA

View user's profile Send private message

PostPosted: Sat Feb 04, 2012 9:12 am     Reply with quote

Look at table 18-6 of the PIC16F87/88 datasheet. If you have a good 50% duty cycle it looks like you could go up to 50MHz on T0CLK. 7MHz (megahertz) should not be a problem.

If you really only want 7mHz (millihertz) any PIC can handle that. I once worked with geologists that wanted to measure frequencies down to 1mHz, about one cycle every 17 minutes.
_________________
The search for better is endless. Instead simply find very good and get the job done.
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