This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
HI I am
I am trying to send data from Rx to tX using SCI interface. But because of some external circuitry, i am receiving an error bit on my Rx input.
attached is an experimental plot of the same.8055.drawing.pdf
The blue signal on channel 2 is the output of Tx and the pink signal on channel 3 is the input of RX/ with some delay I am able to get a perfect transmitted data (marked as the correct signal) but I am also receiving an error bit because of fo my circuitry. I can not avoid the generation of this error bit.
While decoding the decoder is considering the error bit as next data.
Is there a simple trick which I can use in coding to solve this problem?
I only want the correct data to be stored in the buffer.
Ankit,
You could do the following. I looked at Example_2803xScia_FFDLB in Control Suite for reference:
ReceivedChar = SciaRegs.SCIRXBUF.all; //This getting the data from the register
DELAY_US(1) // Delay for some amount of time
SciaRegs.SCIRXBUF.all = 0; // Clear the RX buffer.
Let me know if that helps.
Thanks!
Vince Rodriguez
Ankit,
This is kinda tricky, because we are trying to trick the module to ignore a bit. Another thing to try is to disable the RX as soon as you receive the byte you want. You can do this with the RXENA bit.
Can you descibe what each line in your oscilloscope picture is coming from?
Regards,
Vince Rodriguez