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.
John
...
PID using integer math.
Thread Starter: keytapperHello Forum, I'm struggling to implement a PID controller for my oven. The sampling rate is dictated by the time to read a MAX6675, which is 0.25...
keytapper Today, 07:53