As I stated, I am driving 2 seperate h-bridges...each bridge has 2 inputs. I have a total of 4 inputs to both h-bridges and want to always drive 2 pins at any one time.
if I want my robot to turn right I need to drive
'ex: not actual code...
rightwheelfw var portb.0
rightwheelrs var portb.1
leftwheelfw var portb.2
leftwheelrs var portb.3
turnright:
high rightwheelrs
high leftwheelfw
pause 50
goto commands
turnleft:
high rightwheelfw
high leftwheelrs
pause 50
goto commands
In my case though I want to have variable speed control not just HIGH.
This is why I want PWM on 2 pins at the same time.
Bookmarks