This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Serial interface HANGS!

Hi everybody. I need some help with the serial interface. The transmission is giving me no problems, but the reception is hanging my software.

In the register S0CON (Serial configuration register) I enable the Baud Rate Generator, select 8 bit asynchronous tramsmission but leave the "Enable Receiver" bit off (because I don't want to receive anything at the moment). Both pins for receive and transmit have bit defined Input, output accordingly. Anyway, when I trasmit there is no problem, but when I turn this "enable receiver" bit on my software hangs. At the beginning I thought it was the Loopback function so I put it away, it was not that, then I thought it was the interrupt function with the trap number so I put this interrupt function as a comment and still crashed.

Does anybody have an idea what may be causing the problem?

PLEASE HELP!
Thanks
Ernesto Garcia

0