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.

TMS320F28379D: ADC

Part Number: TMS320F28379D

hi,

in this step of my project I only want to measure the output voltage of my circuit through ADC module.

which one of the following samples can I use, which I do not deal with much details?

  • Hi ParisaSA,

    The simplest examples are probably adc_soc_epwm or adc_soc_software, but you'll probably need to understand the example in order to modify it to read the specific ADC channel(s) that you are interested in.
  • hi Devin,

    You are completely right about getting the code. So far, I checked the code, "adc-ppb-offset" to get more about different registers. Can you guide me further through implementing a control loop. The control signal should be applied to change the ON time of PWM pulses ( pulses which are applied over the switches of a converter circuit). Which code example, you would propose me to start with?

    thanks,
  • Hi ParisaSA,

    Actually a good place to start might be the C2000 workshops, in particular the sections about the ADC and ePWM:

    After that, the adc_soc_epwm example is a good place to start for ePWM driven ADC sampling and epwm_up_aq is probably a simple example to see the ePWM parameters being changed in an ISR.  Once you understand both you can either add ADC sampling to the ePWM example or ePWM modulation to the ADC example.  

  • Also, have a look at the ADC and ePWM chapters in the TRM (www.ti.com/.../spruhm8g.pdf) if you haven't already. I'd recommend reading the bit descriptions of any registers you see being used in the above examples or the workshops.