It's dead[time], TIM

Just discovered another interesting features of the "Advanced Timers" in the STM32G4: 3-phase combined PWM. Essentially it takes timer channels 1, 2, and 3 and ANDs them together with channel 5. On the one hand this sounds like it's kinda useless: why would you want to modify your PWM waveform during 3-phase commutation?
Top three traces: PWM for CH1-3, bottom channel shows output from CH5 (well, CH4 since CH5 doesn't have pin-mapped output)
Turns out, it's a really interesting way to add deadtime to a PWM signal without worrying about maximum duty cycle limits. In fact, you can crank the duty cycle all the way up to 100% and you'll still get center-aligned deadtime!

CH3 is "100% duty cycle" according to its the timer configuration, but it still has deadtime to do ADC sampling.
That's *super* useful for ADC sampling, which, as it turns out, is my next target. Stay tuned...

Comments

  1. This comment has been removed by the author.

    ReplyDelete
  2. Thanks for sharing, but I am a little confused. First you said that CH5 is being ANDed and then you show CH5 as the output, which it can't because when CH1-3 are low CH4 is high. Do you mean NAND?

    ReplyDelete
  3. Best Roulette Sites 2021 | Blackjack Casino Bonuses and
    If you like the 바카라에볼루션 Roulette mobile bet365 Wheel of 가상화폐 종류 Fortune slots, 해외 배팅 사이트 chances are that you like the Roulette Wheel of Fortune melbet table to play the classic Roulette game.

    ReplyDelete
  4. Harrah's Cherokee Casino Resort - Mapyro
    Find out 제주 출장마사지 more about Harrah's Cherokee Casino 화성 출장샵 Resort 광주광역 출장마사지 in Cherokee, NC. 광주 출장안마 Harrah's Cherokee Casino Resort features 충청북도 출장마사지 casino, hotel, event center,

    ReplyDelete
  5. Possibly probably the most exciting game on the ground, Craps usually draws the largest crowds. The game appears complicated to the newcomer, however the premise is actually quite 1xbet korea simple. To play, players make equal bets within the ante and blind circles and may also make the journeys bonus wager. Once players obtain their two hole playing cards, they'll both check or wager three to four occasions their ante. If players have not already made a play wager, they'll check or wager two occasions their ante.

    ReplyDelete

Post a Comment

Popular posts from this blog

It's about that time[r]

SPI-nning up