Forum Discussion

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

UART RS232 communications using HAL

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?

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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?