Interval Timer Core Interrupt for Nios II
I have seen many examples of using PIO cores to generate interrupts...say for button presses, and I have a grasp on those, but I am looking for a clear example of generating an interrupt using the timer core. My hardware is setup to generate a 1ms interval clock (see image attached for the setup) to IRQ 1 (high value interrupt) as I want to perform a specific task every millisecond (for example take a reading from an ADC), but I cannot grasp how to properly make this happen in the C code (I'm new to C programming not to hardware design...so it's the programming that I'm having issue with). If someone could help out a bit with a clear and small example of this that would be helpful, or point me in a direction where there is an example. Thanks, Jason