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

best combination USART : speed, quartz and PIC 16F87x

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



Joined: 19 Oct 2004
Posts: 40

View user's profile Send private message

best combination USART : speed, quartz and PIC 16F87x
PostPosted: Fri Nov 19, 2004 6:07 am     Reply with quote

Hi
I noticed that using different type of quartz and different USART speed the USART behaviour is different. Exemple : printf function depends of this selection.
Does anyone know the best combination Usart Speed, quart for a PIC 16F87x using CCS?
Ttelmah
Guest







Re: best combination USART : speed, quartz and PIC 16F87x
PostPosted: Fri Nov 19, 2004 7:37 am     Reply with quote

angel wrote:
Hi
I noticed that using different type of quartz and different USART speed the USART behaviour is different. Exemple : printf function depends of this selection.
Does anyone know the best combination Usart Speed, quart for a PIC 16F87x using CCS?


Have a look at the MicroChip data sheet for the chip. Note especially the section in table 10-3, showing baud rate errors for some typical clock rates. The 'best', will depend on how fast you want to run the chip, and what baud rates you want, but probably (getting as close to 20MHz as possible), 18.432MHz. The 'key', is that this is a direct binary multiple of most common rates (it is 5* the 3.6864MHz rate used by MicroChip to show the effectiveness of this approach), and is a common crystal for baud rate applications for exactly this reason.

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