Other Parts Discussed in Thread: C2000WARE
Tool/software: Code Composer Studio
Hi,
Thank you for your time.
I am using an ADC interrupt to collect external voltage, from which I calculate the CMPA value by designing a controller through 28379D launchpad. Initially, I implemented ADC interrupt and PWM interrupts by two separate programmes. The ADC programme accurately measured the data with some desired calculation. Similarly, the PWM programme generates the output through PWM1,2,3 with variable switching cycle. But when, I combined the two programme into one with ADC interrupt, though the measurement comes correctly with ADC results, I don't get any PWM output. My task was to calculate the duty from ADC input and to use it as compare variable in PWM
. Please suggest me in this regard. For reference, I am attaching an overview of the programme.
Thank you