cancel
Showing results for 
Search instead for 
Did you mean: 

Is there possible to get PWM (0-5V) instead of (0-3.3V) in stm32f4?

musthafafarhan
Associate II
Posted on January 19, 2016 at 08:06

I am trying to generate the PWM from STM32F4 micrcontroller. The PWM output was done but it is 0-3.3V range. May I possible to configure the PWM voltage range (0-5V) if so, can someone guide me the way to proceed it.

Thank you. 

#stm32f4-pwm #pwm #stm324 #5v
4 REPLIES 4
Posted on January 19, 2016 at 19:08

[DEAD LINK /public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Is%20there%20possible%20to%20get%20PWM%20%280-5V%29%20instead%20of%20%280-3.3V%29%20in%20stm32f4&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B&TopicsView=https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/AllItems.aspx&currentviews=37]Dupe

Understand your audience here is finite.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
schelven
Associate II
Posted on January 20, 2016 at 09:56

Hi,

No this is not possible directly. You need to add a voltage level converter

Rob

Uwe Bonnes
Principal III
Posted on January 20, 2016 at 11:14

If the PWM does not need to be fast, using a pullup to +5V with a 5-Volt tolarant output and the pin as open-drain could do.

musthafafarhan
Associate II
Posted on January 20, 2016 at 12:41

May I know please , the sample code for open drain configuration?