Yes. This is the problem. When there is a Hserout command inside the program (no matter where, even at the end), the TX pin is engaged by the UART and cannot be controlled.
Now I have to find out how to release it from the UART control.
TXSTA=2 and RCSTA=0 did not help.
What I really want to do is to emulate a 1200 baud trasnmission of one zero (0), like this:
LOW PORTC.6
PAUSEUS 7500
HIGH PORTC.6
That way there is no need to deal with BAUD rate change. If it only worked...
Ioannis
Bookmarks