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.

TMS570LC4357: Cannot trigger ADC from HET

Part Number: TMS570LC4357
Other Parts Discussed in Thread: HALCOGEN

Tool/software:

I'm trying to use N2HET to trigger ADC conversion.

The microcode in the HET works fine, I'm using N2HET1.19 pin, and I can see the waveform with the Oscope in the pin (ball B13).

Using ADC1 Event Group configured for HET1_19, Alternate Trigger does NOT trigger the ADC.

Keeping all the rest of settings in HalCoGen the same, I've tried to use EPWM_B instead, and that works, the program stops in a breakpoint inside adc1Group0Interrupt(void).

Changing back to HET1_19,all the rest of settings the same, the breakpoint is never hit.

Is there any trick I'm missing?

Thx.

  • Hi Soroa,

    I didn't get your question clearly; can you please give more details and also provide some screenshots that would be helpful to understand it clearly.

    --
    Thanks & regards,
    Jagadish.

  • Hi Jagadish.

    The question is: why does ADC trigger by NHET not work when HET1_19 is selected?

    I just solved the issue:

    I changed the Halcogen option to pin HET1_8 (Default Trigger instead of Alternate trigger), as well as the microcode in the HET module to use pin 8 instead of 19, and it works. My problem is I cannot put the Oscope in that pin, it's not available in my board, so I cannot debug.


    I just realised that instead of using "Alternate ADC Trigger Option-B" I had to choose "Alternate ADC Trigger Option-A", as channel HET1_19 is listed there.

    That change solved the issue. Thank you for your help!