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

Timer1 frequency counter limit

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



Joined: 13 Jun 2011
Posts: 14
Location: NIGERIA

View user's profile Send private message

Timer1 frequency counter limit
PostPosted: Wed Jul 27, 2011 4:26 pm     Reply with quote

I have learned PIC MCU programing to the level that want to make a digital read out from my analog tuner world receiver. I will pick the signal from the mixer stage and input onto a frequency counter. But i need to be cleared in these two areas.

1) is it possible for the 16F8XX family of mcu to measure frequency above 20 MHZ when the specified max freq. response is 20 MHZ?

2) can the CCP1 module which is a 16 bit register with max. 8 prescaler measure up to 100 MHz ?

Needs your views thanks
Eddy71ua



Joined: 23 Sep 2009
Posts: 55
Location: Ukraine

View user's profile Send private message Visit poster's website

PostPosted: Thu Jul 28, 2011 5:18 am     Reply with quote

I tested Timer1 module, it work correctly up to 70MHz.
Ttelmah



Joined: 11 Mar 2010
Posts: 19505

View user's profile Send private message

PostPosted: Thu Jul 28, 2011 8:32 am     Reply with quote

What individual examples will do, will be much better than the specified figures (which should be achievable by all chips, right across their operating voltage specs). The frequency limit for the CCP counter, is not '20MHz'. It is specified in the data sheet as an input period >:

(3Tcy+40)/N

where N is the prescaler used.
So with /16, and a chip at 20MHz (Tcy=50nSec), equals

(150+40)/16nSec = 11.875nSec, or 84MHz.

However there are also limits for the high time, and low time, at 20nSec each, with the prescaler, so 25MHz is the highest 'warranted'. Individual chips, at particular voltages, may well go far past this.

However realistically, why not just use an external hardware /10 divider?.....

Best Wishes
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