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.
Hi,
I perform the cycle by cycle pik current mode control. I use both high comparator and low comparator of the CMPSS. I update the value of COMPDAC with 100 kHz ISR. My code is working with constant COMPDAC value. But, when I update with the 100kHz ISR the COMPDAC value, my code behaves strangely. ADC readings, Cycle by Cycle PWM and the other functions is not working for variable COMPDAC value.
What is the problem ?
Thanks,
Hi,
I guess, this problem is usage of 2 quantity CMPSS. I use CMPSS5 and CMPSS6. I update the COMPDAC values with EPMW4SYNCPER. If I use only one CMPSS, my code is working. But, If I use CMPSS5 and CMPSS6, COMPDAC values is not updated.
So, what can I solve this problem ?
Thanks,
Ahmet,
I will need a little time to look into this.
Best Regards,
Ben Collier
Hi,
I solved the problem. I have three epwm interrupt and they interpenetrate each other. So, my code is not working. Now, my comparators are working correctly.
Thanks,