Forum Discussion
Altera_Forum
Honored Contributor
22 years agoCyclone SL811HS interrupts
I think there's a problem with the Cyclone Development Board. I am using the NIOS-II Kitchen sink design, and I have coded a small USB driver for the board. I am now capable of performing a...
Altera_Forum
Honored Contributor
22 years agoWow.. again.. brilliant support - thanks guys.
Yes - it did work, I am now getting interrupts - I don't know if I missed something in the docs. To anyone following this discussion here's how I enabled interrupts from the SL811HS to the NIOS-II core.. // you need this: //---------------------------------------------------------------------------------- volatile unsigned int *pAddrSel = (unsigned int*) (USB_BASE); // write a single byte to the controller at addr void Write ( unsigned int addr, unsigned int value ) { pAddrSel[0] = addr; pAddrSel[1] = value; } . . then somewhere in your code... . . // enable the interrupts to come through IOWR_ALTERA_AVALON_PIO_DATA(USB_BASE + 8, 0x04); // register an interrupt handler for the USB interrupts alt_irq_register (USB_IRQ, NULL, handle_USB_interrupts); // enable all interrupts from the controller Write ( REG_INTERRUPT_ENABLE, 0x7f ); that's it...