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++
12603 Discussions

i2c slave based on interrupt

FRava3
Beginner
994 Views

Hello, is there an example of Avalon i2c slave which can generate an interrupt on the NiosII when an i2c query arrives ?

All examples I found was Master or slave based on polling.

 

Fpga: Arria10

mcu : NiosII

Quartus 17

 

Thank you 

0 Kudos
1 Reply
GuaBin_N_Intel
Employee
593 Views
I didn't find out any ISR handling for I2C. You can refer to one of UART example to declare and initialize the ISR https://www.intel.com/content/dam/www/programmable/us/en/pdfs/literature/hb/nios2/n2sw_nii52006.pdf, example 8-1, pg8-16
0 Kudos
Reply