Page 1 of 1

hal question : how to use timer over 8 [9-14] for pwm

Posted: Tue Aug 14, 2012 1:14 pm
by alex31
Hello.

After successful tests with chibios on a a stm32f4-discovery, i have ordered an olimex stm43-p407
for ethernet and lcd module, which is, tanks to chibios team, described in the boards directory.

I use on the discovery version of my program 5 pwm out which need tim3 and tim4.
unfortunately, on the p407 board, few gpio are free to use, and they all are on port E,F,G.

according to stmicro documentation, to be able to output pwm on F and G port, i should use TIM9,10,11,13, how to do that ?
TIM declaration in mcuconf.h seems to stop a TIM8.

thanks
Alexandre

Re: hal question : how to use timer over 8 [9-14] for pwm

Posted: Tue Aug 14, 2012 1:25 pm
by Giovanni
Those extra timers are not currently supported, you may try to extend the PWM driver yourself or use them directly.

The problem you will face is that "they" had the brilliant idea to share the IRQ of those timers with the IRQ of TIM1 and TIM8. If you don't need callbacks then you can ignore this issue.

Giovanni

Re: hal question : how to use timer over 8 [9-14] for pwm

Posted: Fri Aug 17, 2012 5:06 pm
by alex31
Thanks for the answer.

I have been the easy way, and have disconnected camera, can and mco to be able to use pwm on low range timer.

I have another question about chibios and p407, but will ask in the p407 thread.

Alexandre