This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

ISR for signal generation

Hello everybody,

I have a single question. In order to generate a sine signal according to the manual is it mandatory to call an interrupt routine (with lets say x kHz frequency)?

In the example folder of the signal generation library, which by the way I could not execute, there is no interrupt routine declared. It seems that the ipcb[i] matrix fills with no interrupt routine. 

So, do I have to declare and execute a timer interrupt in order to fill ipcb matrix with my prefered sine?

  • Hi,

    I have a single question. In order to generate a sine signal according to the manual is it mandatory to call an interrupt routine (with lets say x kHz frequency)?


    This depends on your application. According to me for complex applications timer routine is a must! Though you might've observed in sample codes that ISRs are not used but instead a for ever loop is present; this is because there is no other task other than generating signal.

    Regards,
    Gautam

  • Gautam Iyer said:

    Though you might've observed in sample codes that ISRs are not used but instead a for ever loop is present; this is because there is no other task other than generating signal.

    This is exactly what I cannot understand: with an absence of an ISR how can it fill the array with the signal's value? Because in the manual it is a obligatory to have an ISR with specific frequency in order to calculate the signal. But in the sample code there is no ISR.

    Thank you in advance for your interest!

  • I have the same question, should I declare an isr and map it to the pievect, if so, which interrupts should I use? I saw some called user_isr. Thank you!