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

19.6608MHz instead of 20MHz

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



Joined: 30 Oct 2003
Posts: 209
Location: Norfolk, England

View user's profile Send private message Send e-mail Visit poster's website MSN Messenger

19.6608MHz instead of 20MHz
PostPosted: Mon Aug 23, 2004 9:01 am     Reply with quote

Hi,
I am limited for space (physical) and a perfect size crystal is available at 19.6608MHz. It's a USB project using the USBN9603 (which is using it's own 24MHz crystal).
I was wondering how good the CCS compiler is at working out it's delay_us etc, if I set the delay(clock=19660800)? I can't see any other issues for not running at 20MHz as I wanted?

Keep well,

Will
SherpaDoug



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

View user's profile Send private message

PostPosted: Mon Aug 23, 2004 9:31 am     Reply with quote

CCS works very well with odd clock frequencies. I use all sorts of clock frequencies to make frequency divisions easy.
_________________
The search for better is endless. Instead simply find very good and get the job done.
dyeatman



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

View user's profile Send private message

Another frequency you may want to use
PostPosted: Mon Aug 23, 2004 10:15 am     Reply with quote

I use 18.432 in many of my designs as an exact multiple for accurate (0% error) baudrates.
Darren Rook



Joined: 06 Sep 2003
Posts: 287
Location: Milwaukee, WI

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

PostPosted: Mon Aug 23, 2004 10:38 am     Reply with quote

I thought the golden rule was if you sum up all the numbers and then divide equally by three, you have 0% error for baud rates.
Guest








PostPosted: Fri Sep 24, 2004 10:45 pm     Reply with quote

i just wanted to point out the digits in 18.432 add up to 18, which is evenly divisible by 3 (18%3 = 0). So you just answered your own question. (I have no idea if that golden rule is true or not, just doing some arithmetic).
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