Searching \ for '[PIC:]F876 USART problem' 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/microchip/ios.htm?key=usart
Search entire site for: 'F876 USART problem'.

Exact match. Not showing close matches.
PICList Thread
'[PIC:]F876 USART problem'
2004\01\09@104719 by PSL

picon face
Hi All


I am using 16f876 USART but I have encounter something odd
below is a segment of my code


    banksel     SPBRG    ; bank0
    movlw      d'64'          ;  19200 baud @ 20 Mhz Fosc +0.16 err
    movwf      SPBRG
    movlw      b'00100100'     ; brgh = 1
    movwf     TXSTA           ; enable Async Transmission, set brgh
    banksel      RCSTA        ; bank0
    movlw      b'10010000'
    movwf      RCSTA           ; enable Async Reception
    movf       RCREG,w
    movf       RCREG,w
    movf       RCREG,w         ; flush receive buffer

Guess what i got a 5 voltage signal coming out of RC7/RX which is already
configure as a input
and all my recieve rountie did not work but the TX is still working

anyone have encounter this before?

Thanks

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.

2004\01\09@143650 by Mike Hord

picon face
What is connected to the RX pin?  Do you have it connected to an
RS-232 level shifter?  If so, are you certain that the level shifter has
the appropriate connections to ensure that the pin tied to RX gives
the proper signal?  Could the input to the Receive buffer on the
level shifter be bad or floating?

Mike H.


{Quote hidden}

_________________________________________________________________
Check your PC for viruses with the FREE McAfee online computer scan.
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.

2004\01\09@152428 by PSL

picon face
Hmmm
after looking through the whole coding again how then i see i have made a
stupid mistake

H'10111111'
Put the wrong heading for one of the constant value
{Original Message removed}

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