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?
Electronic – Microcontroller PWM output
microcontrollerpwm
Related Topic
- How to up-convert PWM frequency without using a microcontroller
- Current Source version of TLC5940 (current sink LED PWM driver)
- Add PWM timers to a microcontroller externally
- Electronic – How to use IO pins in PIC microcontroller as PWM
- Electronic – Number of PWM pins on STM32F072
- Electronic – Control multiple LEDS with one PWM pin
Best Answer
First of all
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.