LAUNCHXL-F29H85X: interrupt performance ADC readings

Part Number: LAUNCHXL-F29H85X


I have question regarding interrupt performance. My setup:

  • ADC with repeat active (50MHz, 6 ACQPS, n channels with m repeats)
  • Trigger of the repeater via ePWM1
  • RTDMA trigger via ADCA interrupt
  1. Due to the memory architecture in the ADC, you have to read all 16 result registers via DMA, otherwise you lose data. Can you confirm this?

  2. With n=8 channels, I can execute all possible repeats and they are triggered and executed correctly. However, if I only sample n=2 channels, the number of repeats varies (e.g., with m=5 and n=2, it only samples once).

  • Is there a timing issue with the interrupts? If so, what is their maximum resolution? If there's another reason, please correct me. I've tested this with pin toggles in the interrupts, as I'm just setting up the eRAD module.
  • Hi Jan,

    Please see my response below:

    Due to the memory architecture in the ADC, you have to read all 16 result registers via DMA, otherwise you lose data. Can you confirm this?

    JC: The end of conversion will signal the transfer of conversion data to the ADCRESULTS register.  If the old result is not read, then it will be overwritten.  This is the case regardless of the way the results are read, DMA or CPU access,

    With n=8 channels, I can execute all possible repeats and they are triggered and executed correctly. However, if I only sample n=2 channels, the number of repeats varies (e.g., with m=5 and n=2, it only samples once).

    JC: Do you have a rough diagram of what you are trying to accomplish?  Might be helpful to see what the issue might be.

    s there a timing issue with the interrupts? If so, what is their maximum resolution? If there's another reason, please correct me. I've tested this with pin toggles in the interrupts, as I'm just setting up the eRAD module

    JC: Yes, ERAD would be good tool to use for profiling the interrupt latency,  It typically takes about 17 cycles for the code to enter the interrupt but this all depends also on what other processes are running.

    Regards,

    Joseph

  • Hi Jan,

    Have not seen any response back on this thread so marking it closed for now.  If you still have any questions regarding ADC, please post it back in the forum.

    Regards,

    Joseph