Nios® II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
12408 Discussions

UART RS232 communications using HAL

Altera_Forum
Honored Contributor I
795 Views

How would I code a RS232 communications between NIOS and a computer?  

 

I would like to have a preable of the character '%' and end the message with '\r\n'  

 

How can i go about this?
0 Kudos
2 Replies
Altera_Forum
Honored Contributor I
83 Views

E.g. using printf() ?

Altera_Forum
Honored Contributor I
83 Views

yes. the printf is pretty striaghtfoward, I just cant figure out how to use the scanf to recieve communications?  

 

Should I do this polling round-robin, or interrupt based receive? Do i check the register to see if there is a message? Is there a software buffer for scanf?
Reply