gnupic: PIC16F877 & USART


Previous by date: 5 Jan 2003 10:26:16 -0000 Re: PIC16F877 & USART, Jeff Jackowski
Next by date: 5 Jan 2003 10:26:16 -0000 PIC16F877, Philip Balister
Previous in thread: 5 Jan 2003 10:26:16 -0000 Re: PIC16F877 & USART, Jeff Jackowski
Next in thread:

Subject: Re: [PIC]: PIC16F877 & USART
From: Declan Moriarty ####@####.####
Date: 5 Jan 2003 10:26:16 -0000
Message-Id: <03010510181601.00278@genius.chateau.dec>

On Saturday 04 January 2003 19:48, somebody wrote
> On Wed, 1 Jan 2003, Rick Mann wrote:
> >on 12/31/02 1:27 PM, Andreas Junge - DSLX at ####@####.#### 
wrote:
> >> What is your clock rate for the pic? There are multiple tables for
> >> different clock rates in the documentation.
> >
> >Oh, I forgot to mention that, sorry. 4.000 MHz.
> >
> >So, here's the thing. I appreciate everyone giving me info about how
> > to set up the values, but the problem I'm facing is that I *did*
> > set up the values correctly, using both formulas (the one from
> > Microchip and the one that accounts for rounding errors).
> >
> >The formulas work for 2400 baud, but don't seem to work for 9600
> > baud.

Can you write a test program using your code to output a continual 
stream of 0xCC (=1010 1010) and 'scope the frequency? A little bit of 
copy'n'paste would at least quantify your error (too FAST, or too SLOW).
You need to divide your problem into fragments, and fix the one that's 
broken.

If you are seriously stuck, Microchip do have help lines. I got the 
phone number for the English one.
-- 
	Regards,

	Declan Moriarty

Previous by date: 5 Jan 2003 10:26:16 -0000 Re: PIC16F877 & USART, Jeff Jackowski
Next by date: 5 Jan 2003 10:26:16 -0000 PIC16F877, Philip Balister
Previous in thread: 5 Jan 2003 10:26:16 -0000 Re: PIC16F877 & USART, Jeff Jackowski
Next in thread:


Powered by ezmlm-browse 0.20.