cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
604 Views
Registered: ‎02-08-2018

Microblaze UART data mismatch

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.
0 Kudos
Reply
2 Replies
Scholar
Scholar
568 Views
Registered: ‎03-22-2016

@prashantfunde91 are you sure the speed is 115200 and not 9600?

vitorian.com --- We do this for fun. Always give kudos. Accept as solution if your question was answered.
I will not answer to personal messages - use the forums instead.
0 Kudos
Reply
Moderator
Moderator
560 Views
Registered: ‎09-12-2007

Can you post the MHS file so we can see the configuration of the UART

0 Kudos
Reply