Once you have a digital controller, doing PWM and ...
# reram
a
Once you have a digital controller, doing PWM and controlling pulse counts is as simple as writing a Python/C++ script to toggle the waveforms as you desire.