Other Parts Discussed in Thread: CONTROLSUITE, C2000WARE
I want to implement ADC, PWM and timer interrupt in a single module. By any chance, can I find the code anywhere?
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.
I want to implement ADC, PWM and timer interrupt in a single module. By any chance, can I find the code anywhere?
Do you have C2000Ware (or controlSUITE) installed? We don't have an example that combines all three modules, but the adc_soc example (under device_support/f2802x/examples) combines ADC and ePWM, including using the ePWM to trigger the ADC conversions. You can also take a look the cpu_timer example for how to use the timer for interrupts. It should be fairly easy to combine them.
Whitney