1 year, 4 months ago.

Configuring timer and pulse width modulation in Nucleo F103RB

Hello, I am new to this board and platform as well. Can anyone let me know what resources to follow in order to determine what functions to call, what registers to write on and how exactly to write to registers in nucleo f103rb for pulse width modulation.

2 Answers

1 year, 4 months ago.

You might have a look in some user libraries that already do this. Have a look at this one and see if it works. It does an excellent job of handling the ST PWM controller https://os.mbed.com/users/Sissors/code/FastPWM/

Accepted Answer
1 year, 4 months ago.

Hi there,

ST example

[Repository '/teams/ST/code/Nucleo_pwm/file/c198a0f824eb/main.cpp/' not found]

PWM documentation https://os.mbed.com/docs/mbed-os/v5.12/apis/pwmout.html

Best regards J.

I am aware of the pwm technique but actually wanted to do it using register editing commands (using pointers). This is because I am facing some issues using the pwmout technique and wanted to create my own functions.

posted by Bajrangi Bhaijaan 04 Apr 2019