Altera_Forum
Honored Contributor
20 years agoHow to tell there is data from UART?
Hi
Browsing through Altera documentation suggests I should be using the HAL with a UART. So using the HAL how do I determine if there is data available from the UART before calling getchar()? I need my system to be doing other stuff and can't have it block while waiting for the UART to receive data. I can see I have to use the fast version of the driver so that the UART operates under interrupts but I can't see an equivalent to the old kbhit() function. Ta, Mike