Electronic – Microcontroller PWM output

microcontrollerpwm

I work on a project that need 36 PWM signal to drive 36 MOSFETs.
Can I use a microcontroller with a limited number of PWM and configure all pins as PWM output or do I need to find a microcontroller with 36 PWM pins?

Best Answer

First of all

So, can I use a microcontroller with a limited number of PWM and configure all pins as PWM output

you can not configure every MCU pin as PWM output. Physically controlled PWM output must be controlled by a timer. But you can set MCU as GPIO output pin and control it by software.

It may be hard to find MCU with 36 PWM outputs. So if PWM frequency isn't very high you can implement SOFTWARE PWM using one or more timers. Also as a solution, you may use MCU and shift registers to drive 36 PWM outputs. But in this case, driving speed of Shift Register must be high enough. I have used this solution for driving LEDs at low PWM speed just about 100 HZ.

You can select MCU from STM32 series with many timers. But this will bring extra expenses.