PWM App: PWM_SetFreq Problem

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Not applicable
Hello,
maybe I understand it not, but I have the following problem.
I have to build the frequency (~50 Hz) and the RMS-value of an electrical 3-phase system. For that I use the PWM App. From each wave I take 32 measurements with the ADC-MEASUREMENT App.
So, at the end of the wave the period duration is calculated (and also the frequency).
Included in this calculation for the period is the calcuation for the next PWM-frequency. The ADC-MEASUREMENT-Conversion is started with the PWM-compare-period Interrupt.
So far, so good, but it seems to me, that, after changing the PWM-frequency, something happens, so that I have the same ADC-MEASUREMENT-Values for exact 2 PWM-Interrupts.
I am not sure, if I have explained it in a way, that can be understood. But if, please ask for more details.

Best regards,
Oliver
0 Likes
1 Reply
Not applicable
No one with an idea? Maybe you need some more information?

Best regards,
Oliver
0 Likes