Hi Laurence, Go to http://redrival.com/mcgahee/ and download PICUART.ZIP, which is Fr. Tom McGahee's PIC UART tutorial. I think this is a known "gotcha" and there is a way to clear the framing error. It is addressed in his (well commented) example code. Sean At 12:48 PM 11/28/01 +0100, you wrote: >Hello All, > >I am having trouble with the UART of an 16F877. > >I am using a piece of software which simulates the PIC extremely >well and does simulate the UART (Proteous). Every time I initialise >the UART the Rx State changes to "Start Bit" straight away >despite the input being configured as an input and its being driven >high. > >The UART goes to start bit as soon as the instruction: > >bsf rcsta, cren > >is executed. Because the UART thinks it has recived a start bit, it >gets a framing error which is impossible to clear for some reason. >Mabe its because the UART status goes immediatly to start bit >again after recieveing anything ???? > >Thanks for any help in advance > >-- >http://www.piclist.com hint: PICList Posts must start with ONE topic: >[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads ---------------------------------------------------- Sign Up for NetZero Platinum Today Only $9.95 per month! http://my.netzero.net/s/signup?r=platinum&refcd=PT97 -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics