> From: Jason R Williamson <
jrwill01
KILLspamSTARBASE.SPD.LOUISVILLE.EDU>
>
> To: .....PICLISTKILLspam
.....MITVMA.MIT.EDU
> Subject: Re: 9600 8 N 1 on PIC16c74A
> Date: Monday, February 16, 1998 2:40 PM
>
> 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
>
> > 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
> >