Published on 15th September 2013 21:28
Had a play with the Motor Control PWM module on the 18f2331. Here is some basic code that can switch PWM between PWM0 and PWM1 and ramp duty cycle up and down. Used it on a L6203 to change direction/speed on a 24V 35w Brushed gear motor. Might be helpful as a starter to somebody one day.