cancel
Showing results for 
Search instead for 
Did you mean: 

pwm and ppm in stm32f407 discovery board

mohamad_armoon
Associate III
Posted on April 23, 2014 at 07:04

hi guys

i could produce pwm in stm32f407 but i don't know how to read pwm with this.

if i have 9 channel pwm i think i takes 9 pin from servo and if i can send this 9 pwm through 1 ppm(

Pulse Position Modulation

) channel it would be more optimize and takes less space .

now my questions is how can i read 9 pwm channel and how can i read 1 ppm with stm32f407??

any idea would be great

#input #pwm #discovery #stm32f4
1 REPLY 1
Posted on April 23, 2014 at 16:12

You'd need one timer per channel, they only have one counting element, and the period/duty latches use CH1/CH2

Not familiar with PPM, but you should be able to latch pin transitions with a time-stamp, and use either interrupts, or DMA to accumulate/measure the intervals.
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..