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: Code Composer Studio
Hello,
I am using the "adc_soc_epwm_cpu01" sample code from the examples and I am able to read ADC with ePWM trigger. My question is mostly about the understanding of how it happens, so I really appreciate your help. As I understood so far, the ePWM starts (for instance the up-count) and when it reaches its period which is assigned by TBPRD, the ADC is triggered. Now suppose I want my ADC to read the values every 20uS, so based on the formula, since my ePWM frequency is 100MHz, I get TBRD=2000. So ePWM starts and it takes 20 uS for it to reach the period and command the ADC to start the reading. Two questions:
1. How long does the ADC take to read the value? Is it on nano-seconds?
2. When the ePWM is counting up to reach the period, can I do other calculations or command GPIOs during this interval?
Regards,
Ata