Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
20 years ago

Nios-II SOPC UART delivers wrong bytes

We use the UART in our Nios-II design that comes with Quartus 5.0SP1 and Nios-II 5.0

We face the problem that sometimes the Uart reports wrong RX Bytes from correct RX streams.

The serial stream starts with a 0x02 byte but the UART delivers a 0x04 byte. Monitoring the serial signal outside the FPGA and inside the FPGA shortly before it enters the UART shows that the stream correctly contains the 0x02. So no electrical problem. a perfect signal.

Has somebody a clue how to find the problem for this ?

Could it be that the Altera UART has a problem ? The serial stream is 100% perfect no jitter and a 50:50 duty cycle. The UART is set to 115200 8Bit no parity 1 stopbit and the Clock is 48MHz (but will be set to 64MHz in the next step). Our FPGA is a EP1C20.

BTW we use EUROS as the real time OS.

Regards.

Michael Schmitt

Baumer Ident GmbH

30 Replies