Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12600 Discussions

Sending and Receiving Data via UART using interrupts in NIOS

NMitt6
Beginner
633 Views

Hello,

I am trying to send and receive data from UART using interrupts in NIOS soft-core processor. I have registered the "Interrupt Handler function", and registered it using "alt_irq_register()" function. But my program gets stuck in an infinite loop while trying to close the UART File handler.

Can anybody please help me resolve the issue

Thanks and Regards

Prince

0 Kudos
1 Reply
Ahmed_H_Intel1
Employee
397 Views

Hi,

This is been done so many times before. I am sharing with you now a design example that will teach you how to create a UART and use the interrupts with it.

https://fpgacloud.intel.com/devstore/platform/16.1.0/Standard/uart-rs-232-maximum-baud-rate-reference-design/

If you need more help please let me know.

Regards,

 

Reply