piclist 1998\02\15\174307a >
Thread: 9600 8 N 1 on PIC16c74A
www.piclist.com/techref/microchip/devices.htm?key=16C
flavicon
face BY : Ray Gardiner email (remove spam text)



>I am trying to get a PIC16c74A to receive a 9600 baud 8 data bit,
>no parity, 1 stop bit signal.  I have configured the serial port
>with the following options:
>
>Crystal:5.0688 MHz
>
>RCSTA:0x90
>TXSTA:0xA4
>SBRGH:32
>
>Is this all I need?  The strange thing is that it actually communicates
>fairly well.  However, approximately 2-4 bytes out of every 100 received
>are completely wrong.  There doesn't seem to be a pattern.  Some are off
>by 0xCC or 0x7D or 0x8F or 0xBF, etc.
>
>Any ideas?
>
Hi Jason,

Choose a XTAL that gives 9600 baud with BRGH=0, this increases the
sampling to x64 mode and should fix the above problem.




Ray Gardiner (DSP Systems) @spam@rayRemoveMEspamTakeThisOuTdsp-systems.com http://www.dsp-systems.com
private email to:- STOPspamrayRemoveMEspamTakeThisOuTnetspace.net.au
<l03130300b10d2dd57aab@[203.57.31.59]>

In reply to: <199802141138.GAA13451@vulcan.spd.louisville.edu>
See also: www.piclist.com/techref/microchip/devices.htm?key=16C

Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) 9600 8 N 1 on PIC16c74A

month overview.

new search...