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

help pls..clock/timer0

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



Joined: 10 May 2007
Posts: 4

View user's profile Send private message

help pls..clock/timer0
PostPosted: Thu Jun 07, 2007 4:34 am     Reply with quote

I have a pic16f88 with a 20MHz crystal,and i need a clock speed of 200KHz
with timer0 at 400MHz...Is this posible and if so...can you pls post a code for it?...
is timer0 set acording to the 20MHz crystal or acording to the clock?
This might be a newbish question...thar's because...i'm newbie Smile
Ttelmah
Guest







PostPosted: Thu Jun 07, 2007 5:14 am     Reply with quote

Er. 400MHz... No.
Table 18-6 in the data sheet. Minimum clock input period. 60nSec (asynch). Hence fastest clock possible, is 16.66MHz for the timer input in this mode. Running synchronously instead, with your Tcy of 50nSec, you get (Tcy+40)/8 nSec minimum, which gives 11.25nSec (as the absolutely fastest clock acceptable), 88.8MHz, but the counter then only runs at 11.1MHz.
There is no way, any normal PIC, can do anything at 400Mhz...

Best Wishes
sacalu



Joined: 10 May 2007
Posts: 4

View user's profile Send private message

PostPosted: Thu Jun 07, 2007 7:04 am     Reply with quote

sry...i made a mistake in my post...i ment 400KHZ
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