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.

TMS570LC43xx : N2HET and ADC



Hello,

I would like to know if it is possible to start ADC conversion and to read ADC value thanks to N2HET.


Best regards,

Fabrice

  • Hello Fabrice,

      I suppose you meant to ask if you can use the N2HET to generate a trigger to the ADC to start an ADC conversion. If this is the question then yes, please refer to your deivce specific datasheet for detail. Below is a snippet of the ADC event trigger hookup where multiple N2HET channels can be used as event triggers to the ADC.

  • Hello Charles,
    thanks for your answer.

    I explain a little more my need.
    I want to launch a sequence (not managed by CPU) of acquisitions and at the end, the CPU read the set of analogic values.
    For each acquisitions: the subsequence is the following:
    1/ set some GPIO
    2/ wait
    3/ update GPIO
    4/ launch ADC acquisition
    5/ update GPIO
    6/ wait
    So the CPU has only 2 things to do (cyclicly):
    a/launch, (and then do another thing)
    b/read updated value

    Then, I need to know if I can get the ADC value without using the CPU, maybe with N2HET execution unit. I think I have to copy the "adc->GxBUF[group].BUFO" to a destination address. I need to use DMA to do that ?
    Regards
    Fabrice
    I need to know also if I can get the ADC value without using the CPU, maybe with N2HET execution unit.
  • will you configure the ADC to run in continous conversion mode?

  • Hello Fabrice,
    I think you will want to use the DMA to read the ADC conversion value for you. The ADC can generate DMA request to the DMA module. DMA will then transfer the ADC values to your specified buffer location. Once all the conversion values are transferred the DMA can generate an interrupt to the CPU so CPU can process these data.
    N2HET can't do memory read/write to memories other than the N2HET RAM itself. There is the HTU (HET Transfer Unit) that can transfer data from ADC RAM to N2HET RAM. However, I don't think this is what you want.
  • Hello Charles,
    thank you for your answer. Now, i know how to design my software.

    Regards

    Fabrice