Forum Discussion
Altera_Forum
Honored Contributor
13 years ago[URGENT] How to receive a string from UART ?
Hi! I am only able to receive the last char from the UART and was wondering how can I receive a string from UART HyperTerminal -> UART -> Terminal 0 (Nios II Console) I am using Nios II C ...
Altera_Forum
Honored Contributor
13 years ago --- Quote Start --- Hi, which board, which NIOS II program, which UART driver ? In almost programs for beginner ("getting started", tutorials), every time you send a character to UART, it triggers an interruption and copy it to the Nios II Terminal. A string is a suite of characters. So what is the problem ? You want Terminal to print the entire string ? You have to memorize the characters until a Carrier Return is received and after print it to terminal... Regards. --- Quote End --- Hi! I am able to receive a string from the HyperTerminal and send it toDE2_115 Altera Board using C Programming but I am unable to detect the carriage return ? i compare it with \r but it didn't get into the loop.