cancel
Showing results for 
Search instead for 
Did you mean: 

How to use PWM as DAC?

mani
Associate II
Posted on August 04, 2016 at 12:49

STM32F207VE Custom Board. I want to generate a PWM of 50-50 duty cycle with varying voltages (zero-to-maximum) like a DAC which gives output based on count. I do not have the schematic now. I'm directly viewing the waveform on scope via breakout pins. The amplitude of the waveform must be in my control. I am successful in generating PWM wave but with a constant amplitude <3V>. How do I change the voltage now? 

I'm using Timer 4.

#adc #stm32 #pwm #dma #dac #stm32f2xx
4 REPLIES 4
Nesrine M_O
Lead II
Posted on August 04, 2016 at 14:44

Hi ganala.manikanta,

Please avoid duplication of posts, Check this [DEAD LINK /public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/How%20to%20use%20PWM%20as%20DAC%202956&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B&currentviews=17]thread.

-Syrine-

AvaTar
Lead
Posted on August 04, 2016 at 15:10

> Please avoid duplication of posts, Check this [DEAD LINK /public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/How%20to%20use%20PWM%20as%20DAC%202956&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B&currentviews=17]thread.

 

If it was another, ''regular'' forum, I would agree.

But here, always assume double-threads/posts are just another M$ Sharepoint error.

Posted on August 04, 2016 at 15:17

@Syrine

In other forums you just delete such empty/duplicate threads, no explanation is required. It is likely not the OP's fault, he likely got an error posting, assuming the post didn't get made, and resubmitted it.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
mani
Associate II
Posted on August 04, 2016 at 19:46

@clive1---Exactly! I intend to post only once. My internet connection lost while submitting and I submitted again thinking that first attempt was unsuccessful. I've tried deleting one of two but there is no such option (like many other forums).