I need to generate 30 PWM outputs with a frequency of about 20 kHz. I need to control the duty cycle of each PWM output.
It is a bit too much to be reasonably done on a MCU (I usually work with STM32 microcontrollers) because the MCU has to communicate with other components as well. I was thinking there would exist multi-channel PWM drivers, but the ones I have found (LT8500, PCA9685) cannot go as high as 20 kHz and I cannot accept a frequency lower than 20 kHz.
One solution would be to add a second microcontroller so that I could handle all the outputs with 2 MCU. But that means I need to develop two firmwares and a communication protocol between the 2, which is a bit of work.
What other options could I consider in such a situation?
Thanks. :)