Tool/software:
Hello everyone, i aim to generate a sinusoidal pwm modulation, i have readen the manuals about how to generate a simple pwm with desired frequency and duty cycle and it works. Now i want a pwm modulated by a sine wave of 50 Hz, given my carrier frequency signal at 10 kHz. My board is the F28388D. How is possible to correctly write a sin wave of 50Hz?What are the logical steps i have to follow ? i have generated interrupts and also ISR, in my case i will have 2 interrupts for each period of my carrier signal, one interrupt on 0 and another on PRD,using a counter in up-down mode.How should be choosen the angle or the time step of the sine wave in order to generate a 50Hz wave given these carrier signal features? thanks in advice