Forum Discussion
Altera_Forum
Honored Contributor
20 years ago --- Quote Start --- originally posted by rugbybloke+nov 26 2005, 02:24 am--><div class='quotetop'>quote (rugbybloke @ nov 26 2005, 02:24 am)</div>
--- quote start ---
<!--quotebegin-burdalex@Nov 25 2005, 01:11 PM hi scott.
first of all thanks for the tips.
i will be happy to get some nios ii ide code example for same scenario.
i want to understand how to use uart interrupts and to apply it in my application.
regards .
alex
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=11162)
--- quote end ---
--- Quote End --- Altera provide a driver for the UART, you don't need to worry about handling the interrupts from the UART. I suggest you either look at the hello world example or read the Nios II Software Developers Handbook. <div align='right'><{post_snapback}> (index.php?act=findpost&pid=11164)</div> [/b] --- Quote End --- I have the same question of how to receive and transmit data using UART interrupt .I have read the Nios II Software Developers Handbook and driver for the UART, but I don't know how to use the API function of HAL, for example: 1,how to declare the "fd" parameter of alt_avalon_uart_read (alt_fd* fd, char* ptr, int len)? 2,Can I use the alt_avalon_uart_read (alt_fd* fd, char* ptr, int len) directly or use it throuth some other system function sush as read()? can you give me some example about it ? my Email is: lvguihua23@126.com