AnsweredAssumed Answered

Overview of the STM32 IO ports? PWM?

Question asked by este on May 6, 2015
Latest reply on May 7, 2015 by Scarpi.Giuseppe.002
Currently in the investigative process of migrating PIC to STM32 I'm pretty early in on the process so go easy on me. My work is mostly CAN but also USB, some switches and LED work.

PWM questions:
1. I see the STM32F1 for instance has 1x 16bit PWM for motor control, 4 counters per timer, 16 timers etc. Are the outputs I can PWM specifically tied to hardware?
2. Or, is it more of a case that I would set a timer, timer3 for example to a specific IO pin then set the scalers and output method to create the PWM? If this is case, can multiple outputs use the same timer / settings while being enabled and disabled separately? (If I wanted to drive 4 LEDs at the same PWM rate but wanted individual control)
3. Or am I way off base and the I can apply specific PWMs to any output pin?

1. It appears a lot of pins are 5V tolerant (or at least 4V+VDD) which is great. But how durable on the pins? How careful do I need to be about ratings vs reality? The PICs I'm used to are very overbuilt in this regard.
2. Does anyone specifically recommend against CMSIS in terms of moduality when dealing with IOs? I've gotten mixed reports on this.
3. Can someone clarify the max mA that the IOs can source? I'm having trouble seeing if they mean to say +/- 25mA for any single IO pin with a max of 150mA for the chip or all 25mA on all IO pins combined?

Basic and surely misguided questions I know! Thanks.

* If anyone has any futher advice as to parts, toolchains,