Searching \ for '9600 8 N 1 on PIC16c74A' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: massmind.org/techref/microchip/devices.htm?key=16C
Search entire site for: '9600 8 N 1 on PIC16c74A'.

Truncated match.
PICList Thread
'9600 8 N 1 on PIC16c74A'
1998\02\14@103130 by Williamson

flavicon
face
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?

Jason

1998\02\15@090026 by Charles Hoss

flavicon
face
Jason R Williamson wrote:
>
> 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:
>

would you mind sending the
initialization codefragment (or the
whole
routine) to me , I'm working on the same
problem with a 16c65
the usart is the same , but I can't make
it work .
it must be something simple , trivial -
but I can't see problem :(

bye
charley

1998\02\15@174307 by Ray Gardiner

flavicon
face
>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_OUTrayTakeThisOuTspamdsp-systems.com http://www.dsp-systems.com
private email to:- .....rayKILLspamspam@spam@netspace.net.au

1998\02\16@164538 by Williamson

flavicon
face
Sure.  Enjoy.

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;SETUP_COMM
; Setup the asynchronous comm. stuff
; inputs: baudrate, TXSTA_INIT, RCSTA_INIT
; outputs: none
; calls: none
setup_comm
       bsf     STATUS,RP0      ; switch to bank 1

       movlw   baudrate
       movwf   SPBRG           ;set baudrate

       ;these are the only two cnnctns for serial comm.
       bsf     TRISC, 7        ;bit7 input (RX)
       bcf     TRISC, 6        ;bit6 output (TX)

       movlw   TXSTA_INIT
       movwf   TXSTA

       bcf     STATUS, RP0     ; switch to bank 0
       movlw   RCSTA_INIT
       movwf   RCSTA

       return

That's it.  Let me know if you have any questions.

Jason

{Quote hidden}

1998\02\16@190239 by Charles Hoss

flavicon
face
Jason R Williamson wrote:
>
> Sure.  Enjoy.
>

thanks , I did the same , just mixed up
some decimal and hex values :)

bye
charley

1998\02\17@172535 by Justin Crooks

flavicon
face
P.S.  This is pretty well-known, but just in case, don't forget to use
something to invert the input/output!!!

----------
{Quote hidden}

1998\02\17@182843 by Charles Hoss

flavicon
face
Justin Crooks wrote:
>
> P.S.  This is pretty well-known, but just in case, don't forget to use
> something to invert the input/output!!!
>
>

yeah , finally managed to make it work
:)

it seems to be just compatible with the
stuff I made for testing :)

now comes the irq stuff :)

More... (looser matching)
- Last day of these posts
- In 1998 , 1999 only
- Today
- New search...