|
|
View previous topic :: View next topic |
Author |
Message |
angel
Joined: 19 Oct 2004 Posts: 40
|
best combination USART : speed, quartz and PIC 16F87x |
Posted: Fri Nov 19, 2004 6:07 am |
|
|
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 |
Posted: Fri Nov 19, 2004 7:37 am |
|
|
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 |
|
|
|
|
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
|