Is there anyway I can configure the STM32L476 to get a PWM waveform such as is shown in the jpg file attached? I have tried complimentary and TIMx-CH1N is exactly the opposite of TIMx-CH1. Adjustable DutyCycle with DeadTime.
Is there anyway I can configure the STM32L476 to get a PWM waveform such as is shown in the jpg file attached? I have tried complimentary and TIMx-CH1N is exactly the opposite of TIMx-CH1. Adjustable DutyCycle with DeadTime.
You should be able to do this with a single timer on CH1 and CH1N channels. Set it for 50% duty cycle and adjust the dead-time to give you different duty cycles. With zero dead time, the channels are opposite, but with nonzero dead time they will be different.
"If you feel a post has answered your question, please click ""Accept as Solution""."
If you have a 40us period waveform and observing it with LA or oscilloscope you don't see a 1.5us deadtime between the two waveforms, you have set something incorrectly. Read out and post the timer registers.
You may also describe your timing requirements in more depth. What should be the exact relationship between the two waveforms, what is fixed and what is required to be variable?
In the 'L4, timers already have Combined PWM mode, where output is generated as AND or OR of two adjacent channels, That's useful to generate phase-shifted pulses within one timer, and that is maybe what you need here. Read the TIM chapter in RM.
I want to change the D/C depending on the MPPT point of a 375watt 90Vdc solar panel array feeding a load via a PCB with a full H-Bridge at a frequency of 25KHz.
My system will start off with a low value of D/C, say 5%, and increase the D/C until the MPPT point of the incoming solar array is reached.
I realise that there will be no D/T viewed if the D/C is low as electrically they is no need for it. Approaching the 50% mark the D/T should become visible as per image.