ADC and EOP interrupt levels

I use the PEC to transfer data from the ADC and the EOP interrupt to reset the PEC pointers. As i understand you still need to have an end of conversion interrupt from the ADC to use the PEC EOP interrupt.
Does anyone know which of the two interrupts should have greater priority or should they be the same?

Parents
  • Sorry to jump in but your statements are very interesting. I think you have a misconception in using the EOP interrupt.

    In your example you are using the ADC interrupt to move your ADC results, typically this could be at a high priority but to reset the counters you don't need the same high priority level. This is why you could use the EOP (not that you must) at a much lower level. This is a setting in the PEC control register. Note the EOP is for all PECs so this ISR needs to understand who called it.

    If you are you using the EOP for the ADC PEC then you won't get the ADC interrupt it is an either or not both.

    Secondly you are NOT ALLOWED to have more than one interrupt set to the same level. If you do the interrupt controller will OR the results and "strange" behavior will result.

    At least this is my understanding.

Reply
  • Sorry to jump in but your statements are very interesting. I think you have a misconception in using the EOP interrupt.

    In your example you are using the ADC interrupt to move your ADC results, typically this could be at a high priority but to reset the counters you don't need the same high priority level. This is why you could use the EOP (not that you must) at a much lower level. This is a setting in the PEC control register. Note the EOP is for all PECs so this ISR needs to understand who called it.

    If you are you using the EOP for the ADC PEC then you won't get the ADC interrupt it is an either or not both.

    Secondly you are NOT ALLOWED to have more than one interrupt set to the same level. If you do the interrupt controller will OR the results and "strange" behavior will result.

    At least this is my understanding.

Children
More questions in this forum