Hi expert,
I have a problem, in order to perfect my system including a control loop, I would like to temporarily deactivate my ADC interrupt, I explain:
My transistor control pwm works at a frequency of 40kHz and I have among others an ADC interrupt which works at 320kHz because I do a digital averaging on 8 points.
My regulation interrupt works at 20kHz in order to try to have a minimum of time to do everything (it's complicated anyway). Once the averaging is done in the ADC interrupt I would like to deactivate it and come back to it only during the next regulation interrupt in order to give me time.
My question is how to deactivate a particular interrupt? I tried the command Interrupt_disable(INT_ADCA1) but it doesn't work.
Can you help me please ?
Thanks
Damien