Quote Originally Posted by amgen View Post
don't give up on yourself or sell yourself short !...... it is a good project
It's an awesome project. I can almost see the light at the end of the tunnel. I've done unit tests of every component all the way up to interfacing with MS Flight Sim. I'm just not seeing why I can't disable the transmitter in PIC #1.

I added a PAUSE to guarantee that everything is sent on PIC #1. The 2 PICs transmit successfully back and forth, and then I get a lone FRAMING ERROR all by itself, and PIC #2 locks up (there are no more blinking LED on channel 3).

Code:
    TXSTA.5 = 1                     ' TXEN: Transmit Enable bit
    hserout [   "[1]"    ]                             
    while TXSTA.1 = 0               ' Check TRMT: Transmit Shift Register Status bit
    wend
    
    PAUSE 100
    
    TXSTA.5 = 0                     ' <----- Causes Framing error after last byte !

So it's not an issue of losing bytes, it's definitely something peculiar about TXSTA.5 = 0.

Name:  Framing error c.png
Views: 6307
Size:  29.1 KB