On Nov 11, 2005, at 8:25 PM, Andrew Kieran wrote: >> I am trying to control two L298 motor drivers (need 4 PWM outputs) >> from a PIC18F2620 MCU. However,the PIC only has 2 independent >> hardware PWM channels. > > I'm using two PWM channels and some 74HCxx glue logic to take > one PWM signal for each motor and apply it to the correct > high/low MOSFET combination. > I didn't look at Andrew's design in detail, but he certainly has the right idea. If you have two motors, you only need two PWM channels; you don't need to PWM both sides of each motor... BillW -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist