Searching \ for 'USART problems' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/io/serials.htm?key=usart
Search entire site for: 'USART problems'.

Truncated match.
PICList Thread
'USART problems'
1997\02\22@112247 by crbres

flavicon
face
Has anyone heard if the USART problems denoted in the
errata notes will be addressed in future PIC silicon?


'USART problems'
1999\05\06@141143 by Alvaro Deibe Diaz
flavicon
face
I'm trying to use the USART from a 16C65 to talk to a PC's RS2. I've put
inputs in the RC7 pin in the MPLAB with an stimulus file and with
Asynchornous stimulus, but no char gets in. The code I use to initialize the
USART is:

RS2inic bsf     STATUS,RP0 ;                 *** Banco 1 ***
       movlw   D'25'      ; 9600 Baud
       movwf   SPBRG
       movlw   B'00100100'
               ;  ||| +--> BRGH=1 High speed
               ;  ||+----> SYNC=0 Async. transmission
               ;  |+-----> TXEN=1 Enable transmission
               ;  +------> TX8/9=0 8 bits/byte transmission
       movwf   TXSTA
       bcf     STATUS,RP0 ;                 *** Banco 0 ***
       movlw   B'10010000'
               ; || +----> CREN=1 Enable reception
               ; |+------> RC8/9=0 8 bits/byte reception
               ; +-------> SPEN=1 Enable serial port
       movwf   RCSTA

And then I wait Interruptions from the USART each incoming char.

The Interruptions initialization is as follows:

; Inicializa las interrupciones
INTinic clrf    PIR1       ; TMR2IF=0 Erase int flags
       movlw   B'00110010'
               ;   ||  +--> TMR2IE=1 -> Enable tmr2 int.
               ;   |+-----> TXIE=1 -> Enable transm. int.
               ;   +------> RCIE=1 -> Enable receip. int.
       bsf     STATUS,RP0 ;                 *** Banco 1 ***
       movwf   PIE1
       bcf     STATUS,RP0 ;                 *** Banco 0 ***
       bsf     INTCON,6   ; PEIE=1 -> Enable perif. int.
       bsf     INTCON,7   ; GIE=1  -> Enable general int.
       return

(I use a constant timer int and both In and Out USART ints)

ÀWhat's wrong?

Thanks in advance.

-----Mensaje original-----
De: Tom Handley <spam_OUTthandleyTakeThisOuTspamTELEPORT.COM>
Para: .....PICLISTKILLspamspam@spam@MITVMA.MIT.EDU <PICLISTspamKILLspamMITVMA.MIT.EDU>
Fecha: miŽrcoles, 05 de mayo de 1999 14:19
Asunto: Re: PIC16c74


>   Aidi, SREN is not relevant in the Asynchronous mode so there is no need
>to clear it. What probably fixed your problem is the clearing and setting
of
{Quote hidden}

the
>>>>byte I display it on the LED's and echo it back.
>>>>This code is not working for me.  Can anybody tell me what I'm doing
wrong.
{Quote hidden}

1999\05\10@081924 by Alvaro Deibe Diaz

flavicon
face
I'm trying to use the USART from a 16C65 to talk to a PC RS232. I've put
inputs in the RC7 pin in the MPLAB with an stimulus file and with
Asynchornous stimulus, but no char gets in. The code I use to initialize the
USART is:

RS2inic bsf     STATUS,RP0 ;                 *** Banco 1 ***
       movlw   D'25'      ; 9600 Baud
       movwf   SPBRG
       movlw   B'00100100'
               ;  ||| +--> BRGH=1 High speed
               ;  ||+----> SYNC=0 Async. transmission
               ;  |+-----> TXEN=1 Enable transmission
               ;  +------> TX8/9=0 8 bits/byte transmission
       movwf   TXSTA
       bcf     STATUS,RP0 ;                 *** Banco 0 ***
       movlw   B'10010000'
               ; || +----> CREN=1 Enable reception
               ; |+------> RC8/9=0 8 bits/byte reception
               ; +-------> SPEN=1 Enable serial port
       movwf   RCSTA

And then I wait Interruptions from the USART each incoming char.

The Interruptions initialization is as follows:

; Inicializa las interrupciones
INTinic clrf    PIR1       ; TMR2IF=0 Erase int flags
       movlw   B'00110010'
               ;   ||  +--> TMR2IE=1 -> Enable tmr2 int.
               ;   |+-----> TXIE=1 -> Enable transm. int.
               ;   +------> RCIE=1 -> Enable receip. int.
       bsf     STATUS,RP0 ;                 *** Banco 1 ***
       movwf   PIE1
       bcf     STATUS,RP0 ;                 *** Banco 0 ***
       bsf     INTCON,6   ; PEIE=1 -> Enable perif. int.
       bsf     INTCON,7   ; GIE=1  -> Enable general int.
       return

(I use a constant timer int (for other purposes) and both In and Out USART
ints)

ÀWhat's wrong?

Thanks in advance.


'usart problems'
1999\09\01@170924 by Nabil Benhadj
flavicon
face
part 0 16 bytes
</x-html>

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