PWM
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-07-05 3:20 AM
Posted on July 05, 2013 at 12:20
Hi,
I'm very demoralized to study PWM for stm3220G evaluation board. I need a tutorial/example to understand concepts. For example: why does gpio_moder configure in AF (alternate function)? I configured GPIOA1 in my sample project, but I don't see anything with my oscilloscope in that pin (CN1 - 36 PA1| MII_RX_CLK| JP6 open). Help me!
This discussion is locked. Please start a new topic to ask your question.
12 REPLIES 12
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-07-09 8:49 AM
Posted on July 09, 2013 at 17:49 Hello, For synchronization purpose, you can refer to example in the STM32F2 Standard Peripheral library. There are examples for synchronization in cascade or parallel modes. -Mayla-
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-07-09 9:37 AM
Posted on July 09, 2013 at 18:37
Sorry, I really don't under stand the purpose of TIM3, and the use of CC1 which you don't configure.
You have TIM3 clocking at 10 KHz (100us), TIM2 at 1 KHz (1ms). Couldn't you just count 20 updates of TIM2 to arrive at 50 Hz (20 ms) Have the default state of CCR1 = 0 (OFF/LOW), set CCR1=1000 for 20 updates (HIGH), then set CCR1=300 for the desired duty (30/70) for 50 updates?
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Up vote any posts that you find helpful, it shows what's working..
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-07-10 1:39 AM
Posted on July 10, 2013 at 10:39
Hi,
thanks clive1. This is a first part of project, and so TIM3 is base timer (other functions in future) and I used TIM2 for PWM. Is there an example with CCR1/2? thanks
- « Previous
-
- 1
- 2
- Next »