Hi Jeethu,
While I have no experience with hardware USARTs, but a quick look
at your code shows a problem.
There is nothing to stop the main code from crashing through to the
"rxed" subroutine, then when it gets to the return it's off on it's own and
well, who knows. Surely not what you wanted. I believe an endless loop
after the
BSF INTCON,GIE ;I also forgot this
BSF INTCON,PEIE ;Yes, This too is required
instructions would be in order.
Heinz
At 1:57 PM 11/2/2000, Jeethu Rao wrote:
{Quote hidden}>Hi there all PICLIST Members,
>
>I am quite new to the PIClist as well as the PIC16F877. I code in
>assembly. And after reading all the relevant Data Sheets and Documents
>provided by Microchip, I wrote the source code I've attached to this
>message as a zip file. Everything seems to be Ok. But when I write this
>code on the PIC and test it with a Terminal Program, I get a lot of
>errors.
>Basically the only function of this test code is to echo whatever it gets
>back. All the hardware aspects like the MAX232 and the Computer UART seem
>to to be ok.
>
>...< html snipped>....
--
http://www.piclist.com hint: To leave the PICList
.....piclist-unsubscribe-requestKILLspam
@spam@mitvma.mit.edu