Forum Discussion

ASeif's avatar
ASeif
Icon for New Contributor rankNew Contributor
6 years ago

UART + NIOS II

Hi,

I was wondering if you know "How many character could be received by UART simultaneously when we are using NIOS II"?

I run NIOS in-place (on EPCQ128). It seems that it could not receive 35 bytes when it continuously sent by external device.

For example:

scanf("%35c",&data);

This code cannot receive 35 characters. If I send the characters one by one with delay, it works.

How can I improve that?

PS. I have to receive character (%c) due to I neet to receive a RAW memory data which it might includes 0x00 to 0xFF. If I change it to (%s) when data is equal to white-space characters [like CR or LF] it terminates scanf() function.