Other Parts Discussed in Thread: SYSCONFIG, TIDM-02014
Tool/software:
Hi,
How to Read Adc data(ADCB-SOC0&1) by ePwm4 trigger using sysconfig.????
Facing issues while following sample codes provided.
Could any one please help???
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.
Tool/software:
Hi,
How to Read Adc data(ADCB-SOC0&1) by ePwm4 trigger using sysconfig.????
Facing issues while following sample codes provided.
Could any one please help???
Hello Keziah,
To check the ADC results, just look at the ADC RESULT registers in the "registers" tab while in debug mode. In your code, you can use our API function "ADC_readResult(uint32_t resultBase, ADC_SOCNumber socNumber)" to get the results. Also, when you're setting up the ADC, feel free to select ePWM4 SOC as the "SOC trigger" for starting the ADC conversion. You might want to check out some motor control examples, like TIDM-02014, for guidance.
Best Regards,
Masoud
I have selected ePWM4 SOC trigger, and what else need to add in both Adc and ePWM . ePWM trigger will be start comversion??
Keziah,
I recommend kicking things off with an example, ideally using SysConfig at this stage. For your question, make sure to choose ePWM4 SOC as the "SOC trigger" to start the ADC conversion on the correct ADC input channel. After that, by initializing the ePWM 4 time base and setting up the right "Digital Event," you should be all set to sample and get accurate ADC readings.
Best Regards,
Masoud