Other Parts Discussed in Thread: CONTROLSUITE
Dear All,
I am interesting in clarify one doubt related with the ADC SOC trigger derived from a Timer interrupt.
TheTimer0 is configured in auto reload mode. The Timer0 triggers an interrupt each 50 us.
In the ADC configuration I have the burst disabled and I have 8 SOCS configured with a trigger from Timer0. So, the ADC will generate a conversion each 50 us.
Additionally, I have some control code that needs to be executed each 200 us, synchronous with the conversion number four and eight. This code is executed on the Timer interrupt and needs to have access to the current conversion.
However, this control code, each 200 us, may need more than 50 us to execute. It may need 75 us to be concluded. The Timer PIEACK will be sent only on the end of the execution of that code.
What will happen to the SOC conversion of the fifth conversion? It will be triggered at 250 us, or only after the Timer PIEACK signal (at 275 us) and when the new Timer interrupt is attended?
What will trigger the SOC conversion? The Timer peripheral or when the Timer interrupt is attended?
Best regards,
Peter