2012-08-22 08:22 AM
Hi
The objective is to create avariable frequency
pulse train with as little CPU intervention as possible. This was quite straightforward with the TMS320 TI MCU. It had a feature called ''PWM chopper'' where it was possible to configure frequency, pulse width, duty cycle and number of pulses. To achieve the same kind of functionality with the STM32F4, the idea that first came to mind was to use the Advanced Control Timer & DMA peripheral. A table which consists of the timer periods that define the pulse train characteristics is setup in RAM. The have the DMA transfer these values to the timer compare register using memory increment mode. The timer output pin is configured to toggle at every compare match. Also, it is desired to have control of the time interval between each consecutive pulse train. Therefore a timer capture/compare interrupt is enabled. In the interrupt, the pulse train starting time (first positive flank) is defined as: Current time (time when the interrupt occurs) + A settable delay The time when the next interrupt occurs is also settable. The questions are: 1) Is the method described above possible with the STM32F4? 2) Are there any other ways to get the same result?2014-02-21 02:38 AM
Dear joseph
i am trying the same like the motor should accelerate, maintain the speed for a period T, then decelerate and stop in STM with external interrupt. Did you have any idea of how to do . DO you have any sample code for that ?If you are successful in achieving your desired motor control please help me as I need the same.2014-02-22 07:16 AM
2014-02-24 07:56 PM
Dear Joseph
Thanks and Sorry for the late reply. I was not well. Anyways if you help me with your code I will be grateful to you. Please mention what that code is doing , as I am a new guy in stm32. Thanks in advance2014-02-25 08:14 PM
Dear Joseph
Please help me with your code.2014-02-27 08:21 PM
Hi joseph
I need your help.2014-03-04 11:11 PM
hope this will help
________________ Attachments : AN2820_Modified_EXTI.rar : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I0a6&d=%2Fa%2F0X0000000bal%2FVjK9mD_x25Y9ZwfF0fsOWDX.Q_0FwywdN59YuJuuRCk&asPdf=false2014-03-07 03:36 AM
Which thing you are referring to?
2014-03-07 03:38 AM
Oh! Sorry Thanks a lot Yes I got your attachment. Ignore my previous msg.
2014-03-12 07:19 PM
you are welcome. if u are familiar with working of USART, can u help me?
2014-03-12 07:19 PM
you are welcome. if u are familiar with working of USART, can u help me?