I am using ISE 14.4 for Sparatan 3A DSP device.
I have to test UART functionality hence i added MicroBlaze in my ISE project.
I am using RS422 to send and Rcv data from PC.
When i am sending some data from PC to Board and receive it back from SDK code,
First byte received is not correct.
Data on Docklight:
09-02-2018 10:48:06.547 [TX] - 12 13 25
09-02-2018 10:48:06.558 [RX] - 89 13 25
09-02-2018 10:48:23.503 [TX] - 55 AA CC
09-02-2018 10:48:23.511 [RX] - AA AA CC
Code in SDK:
data1 = XUartLite_RecvByte(XPAR_XPS_UARTLITE_0_BASEADDR);
XUartLite_SendByte(XPAR_XPS_UARTLITE_0_BASEADDR, data1);
data2 = XUartLite_RecvByte(XPAR_XPS_UARTLITE_0_BASEADDR);
XUartLite_SendByte(XPAR_XPS_UARTLITE_0_BASEADDR, data2);
Baud rate set from UART in Mblaze is 115200 and No Parity.
But still not received correct data for first byte.
LSB is reoved and MSB added as 1. Why this happens for first byte. I wanted to know.