I wrote some SCI/UART interrupt driven routines to handle Tx and Rx of data and place them into circular buffers, the problem is that every character I send is received back. The LOOPS bit in the SCI1C1 register is not set, and there is no physical connection between the pins.
I can see all this in debug time, the Rx buffer is getting filled inmediatly after the Tx sends any character, i think someway the Tx is raising the Rx interrupt flag.
I'll attach the source code in hope some of you can help me pointing me in the right direction, I have 2 days trying different things but nothing has worked yet, I don't know what to do.
(I'm not currently using getQuery() as I've not managed to get the Tx working without have the loopbacks)