Skip to main content

All Questions

Tagged with
0 votes
0 answers
27 views

Problems with OCR1B on Atmega328p

Trying to control 4 servos (SG90) using 4 pots on an arduino nano and the one connected to OC1B keeps having problems, with bits of jittering and it just not moving correctly (occasionally spinning), ...
jimothy's user avatar
0 votes
1 answer
49 views

PWM on STM32F411 is not working using timer1

I am trying to use this code to control brightness of a LED using channel 3 of Timer 1 (PA10 pin) on the STM32F411: ...
JPgiq's user avatar
  • 59
3 votes
3 answers
489 views

STM32, how to create microseconds long custom pulses

In steady state the line (output) is high and we have to create pulses that are microseconds long and are low. It is going to be a custom sequence with different pulse lengths (for example the line ...
dsplover123's user avatar
0 votes
1 answer
466 views

STM32 Timers - how to generate short pulses with long intervals between them?

I have STM32L451 and need to configure TIM3 to generate short pulses (duration is in the range of 1..10 us) and long time intervals (1 second) between the pulses on three PWM channels. The pulses in ...
hdmi87's user avatar
  • 1
0 votes
1 answer
385 views

STM32 SVPWM switch timing algorithm

I am designing a 3-phase to 3-phase matrix converter modulated using SVPWM on an STM32F767ZI and I am wondering how you guys would recommend I design the following timing algorithm: Figure 12 above ...
Luis's user avatar
  • 41
2 votes
1 answer
225 views

STM32 inaccurate/inconsistent PWM Frequency for STM32G071

I have a PWM pin that is configured to be at 40Khz but I am seeing it bounce around in my oscilloscope. It would read 40.045KHz and bounce ~ +/- 4Hz or so. I have another module that is using Atmel ...
C_Saetern's user avatar
1 vote
1 answer
2k views

STM32 PWM and Output Compare

I have some simple firmware written for an ATmega328 (not Arduino) and I'm converting to STM32. I have more than one STM32 development board, so for now I'm searching a generic config and generic code....
Giovanni's user avatar
2 votes
1 answer
102 views

ATTiny861A fast PWM mode not working

For a couple of hours, I struggle to find the source of my PWM output to not generate a PWM signal. I changed register values to explicitly show their contents - I hope it will make the diagnostics ...
drydre's user avatar
  • 75
-1 votes
1 answer
87 views

Complimentary PWM generation with timer IC [closed]

Provided PWM1, with frequency f and duty d, I need to generate PWM2 with frequency f and duty d but phase shifted 180 degree relative to PWM1. Requirements: small foot print, the board space is very ...
7E10FC9A's user avatar
  • 429
0 votes
1 answer
418 views

STM32H7 DMA not transferring correct values into TIM15 CCR1 register, why?

I feel like I am running out of options as to why this is occurring as the RM isn't that accurate to setup DMA + PWM using Timers. The goal is to use TIM15 as a PWM generator running @ 800kHz running ...
Leoc's user avatar
  • 1,421
2 votes
1 answer
367 views

What does LSB mean in PWM?

I have this PWM exam preparation question in Computer Engineering where it says "What is one V_LSB?". However we've discussed nothing about LSB in the PWM section. What does it means?
nowsqwhat's user avatar
3 votes
3 answers
1k views

"Idle State" Not Respected after PWM on STM32

I am playing a tune on a speaker on an STM32G0B1 using PWM, however, sometimes after playing a tune the speaker continues to be driven despite Stop being called and ...
Harry Beadle's user avatar
3 votes
2 answers
3k views

How to add some μs delay inside the for loop for this STM32 code?

I'm using HAL library and the finction called HAL_TIM_PWM_PulseFinishedCallback to update DAC output at the end of each pulse. Here is the related section of the code: ...
cm64's user avatar
  • 2,193
1 vote
1 answer
213 views

STM32F7: Two timer channels share one DMA channel

I am trying to write a driver that sends DShot commands to an ESC. I am using an STM32F722 MCU. The DShot protocol is similar to addressable LEDs where 1/3 duty cycle represents a 0 and a 2/3 duty ...
Jeremy Wolfe's user avatar
1 vote
2 answers
2k views

How to Have Two PWM Signals with Adjustable Duty Cycle

I am using Mosfets as switches in half bridge application. I use STM32F407VG as PWM generator. I used TIM1(TIM1 CH1 and TIM1 CH1N) in order to generate two complementary PWM signals to switch Mosfets. ...
Bowman's user avatar
  • 339

15 30 50 per page
1
2 3 4 5 6