>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
>
>
>
>
>