2013-04-26 03:53 AM
hi,
I found a problem to generate a PWM signal like this one: i thought that we can do this with TIM1 by insertion of a DEAD TIME but when i inserted a dead time i obtained a signal lîke this one: can someone help me plz ?2013-04-26 04:31 AM
Homework? [DEAD LINK /public/STe2ecommunities/mcu/Lists/STM32Discovery/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/STM32Discovery/PWM%20for%20stepper%20motor%208337&FolderCTID=0x01200200770978C69A1141439FE559EB459D75800084C20D8867EAD444A5987D47BE638E0F&TopicsView=https://my.st.com/public/STe2ecommunities/mcu/Lists/STM32Discovery/AllItems.aspx¤tviews=29]https://my.st.com/public/STe2ecommunities/mcu/Lists/STM32Discovery/Flat.aspx?RootFolder=%2fpublic%2fSTe2ecommunities%2fmcu%2fLists%2fSTM32Discovery%2fPWM%20for%20stepper%20motor%208337&FolderCTID=0x01200200770978C69A1141439FE559EB459D75800084C20D8867EAD444A5987D47BE638E0F&TopicsView=https%3A%2F%2Fmy%2Est%2Ecom%2Fpublic%2FSTe2ecommunities%2Fmcu%2FLists%2FSTM32Discovery%2FAllItems%2Easpx¤tviews=29
2013-04-26 05:00 AM
Haha no Clive it's not a homework :) a project. we have to control a stepper motor. i need these signals :\
2013-04-26 11:17 AM
No mention of frequency, or period/duty
At 1 KHz, use two channels in PWM and alternate 0 and 80% ON time between channels at the update interrupt. Would give you a 500 Hz, 2 phases, 800 us ON1, 200 us OFF, 800 us ON2, 200 us OFF, with a 2000 us CYCLE