uneless you want to waste your time, use another PIC as there's no ADCs in 16F628 but only analog comparator.
And there's only 1 CCP module... 1 PWM output
There's few PIC dedicated to Motor Control. Those have built-in ECCP. AND they provide some nice dead-time feature
The smaller i know... 16F690 AND it have ADCs too. Big deal![]()
Bookmarks