2017-07-23 11:48 PM
Hello,
for a new CANopen project we planned to use the ARM-controller STM32F303RET6, because we use it yet in an existing design. In the new project we need 12 independant PWM-output signals with an resolution of 16 bits to control 12 magnet valves. This controller has the timers TIM2, 3 and 4. Each of this timers has 4 independant channels for PWM output. So, is it possible to use this 3 timers with their 4 channels to generate 12 independant PWM-output signals to control 12 magnet valves ? The second thing is, that we need to convert the 12 currents from the magnet valves with the ADC with at least 10 bits. But I think this is no problem with this controller. If it is not possible with this ARM-controller, can you give me a solution with an other ARM-controller from ST ? And if it is possible, can you give me a software sample for using the timers for my problem ? For a contemporary answer I would be very thankful. Thanks a lot, Reiner#stm32f3x-pwm2017-07-24 01:49 AM
Hello!
Here is one of the posible configurations you asked
Produced by
. There are examples inside how to use timers as PWM generators.Also examples to take your feedback from valves as ADC inputs.