Hi everyone,
In my project, analog inputs must be sampled at Ts=50 us. These signals are used as modulating waves to generate PWM signals. However, the PWM period must be lower than Ts (for example Tpwm = 500us) because the hardware connected to the pwm signals has limitations on switching frequency. It means that ADC module adquires several samples per PWM period. If I only use the first ADC sample to compare, the duty cycle of the PWM signal will have poor accuracy because the modulating signal can change significantly during the PWM period. In the other hand, if I want to use more than one sample I should use the immediate load mode (to my best knowledge),which seems to be pretty tricky. Then, the question is:
How can I achieve a good duty accuracy using a low frequency PWM carrier?
Thanks, Juan