474 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
89
views
Trying to enable PWM on Pin 63 for the Colibri-IMX8X
I want to enable PWM on Pin 63 (PWM_H - ADMA.FTM.CH2) on the Toradex Colibri IMX8X. To do this I tried modifying three device tree files: imx8qxp-ss-adma.dtsi, imx8x-colibri.dtsi, imx8x-colibri-eval-...
0
votes
0
answers
53
views
SAM3X8E / Arduino Due: Timer/Counter not generating PWM on TIOB0 (PB27) — output stuck HIGH
I'm trying to generate a PWM signal on PB27 / Arduino Due pin 13, which corresponds to TIOB0 on the SAM3X8E (used on the Arduino Due).
However, the output pin just goes HIGH and stays there — no PWM ...
1
vote
1
answer
256
views
How to Avoid Potential PWM Signal Instability from Rapid CCR Updates in While Loop on STM32"
I am working on an STM32 microcontroller (running at 168 MHz) to generate PWM signals on Timer channels (Ch1 and Ch2) with a frequency of 500 Hz. The PWM is used to control a motor's applied voltage, ...
1
vote
1
answer
193
views
How to use LL drivers on an STM32 to generate PWM deadtime
I am trying to generate 3 channel center aligned PWM with complementary outputs and deadtime insertion on an STM32G474. To test functionality of the timers, I currently have the 6 outputs connected to ...
0
votes
0
answers
52
views
Diagnose issue with PWM on nrf53 using Zephyr: seems to be ready but not erroring or working
I am looking for ways to diagnose a problem with a vibration motor NFP-3C-03208B using Zephyr on a custom nrf5340 boardh. I have working on a nordic dk but is not working on a custom board. The device ...
1
vote
0
answers
57
views
Very Specific Combination of Servo.write and analogWrite messes up frequencies on esp32 PWM pins
Preface: First time asking a question, please take it easy with the "YOU SHOULD FORMAT YOUR QUESTIONS THIS WAY!"
Question: Why does this happen?
I'm programming an esp32 S3 dev module using ...
2
votes
2
answers
455
views
STM32G4 TIM1 center aligned PWM update event problem
I'm facing an issue with the update event triggering in STM32G4 TIM1. I've configured TIM1 to generate PWM signals and set the update event to Center-Aligned Mode 1. However, I've noticed that the ...
1
vote
0
answers
56
views
Measure PWM Duty Cycle with Pic
I am trying to measure two PWM input signals and, based on them, turn a LED on or off. I am using a PIC16F18313 microcontroller.
I have a Futaba remote control, and through its receiver, I receive two ...
0
votes
0
answers
99
views
Add a PWM pin on BeagleBone Black
I need to add two new PWM pins to my DTS file on a BeagleBone Black. How can I do that?
It has the P9_42 as the PWM pin, but I'm having some difficulty in adding another PWM pin. I'll use in mg90 for ...
0
votes
0
answers
135
views
LEDC PWM in RISC-V assembly on ESP32-C3 using ESP-IDF
I've started a personal project. The idea is to output PWM on pin 8 (GPIO8) of a ESP32-C3 using LEDC peripheral on an ESP32-C3 using assembly language (RISC-V) with ESP-IDF. I've started by ...
1
vote
0
answers
55
views
Can STM32 PWM settings affect other timer settings?
#include "Main.h"
#define MAX_Intensity 1600
static volatile uint16_t Intensity = 10;
void Timer4_Configuration(void)
{
TIM_TimeBaseInitTypeDef TIM_BaseStructure;
...
0
votes
1
answer
89
views
PWM configured via DMA does not work properly at high speeds
I have set RCC on STM32F767ZI to 48 MHz (when setting to a higher frequency an error occurs, although in CubeMX with the same settings there is no error).
rcc.cr.modify(|_, w| w.hsebyp().set_bit())...
0
votes
1
answer
96
views
How to control duty cycle via DMA on Rust?
I wrote my code based on this topic, but it is not work. I'm using the stm32f7xx_hal crate, but I think the logic of my program is similar to the code from the example. My problem is that the duty ...
0
votes
1
answer
285
views
Rust Embassy SimplePwm waveform functions don't work as intended
Duty-cycle behaves strangely at high frequencies.
While at 20 KHz the error is barely noticeable
PWM of 20 KHz
At 6 MHz it becomes obvious
PWM of 6 MHz
I use the STM32F11ce6 microcontroller.
Clock ...
2
votes
2
answers
428
views
STM32: PWM output for dimming a led
I'm new here and I have some questions about generating a PWM signal for dimming an led using STM32 boards.
I'm trying to generate the PWM only by writing the nessasarry bits with bit manipulation. ...