Microbric Viper - Motor control code port

Hello,

Would anyone out there be able to please help me with porting/re-coding this over to the Arduino:


;Initialsie Motor output
high p4 ;Set the output high
pause 50 ;Give the motor module time to get ready

Main
Serout P4,i2400,["C",150] ;Drive motor Clockwise at speed 150
Pause 5000 ;Continue for 5000 milliseconds
pulsout P4,6000 ;Brake Motor by sending a pulse of 6000 microseconds
;to Pin 4
Serout P4,i2400,["A",150] ;Drive motor Anticlockwise at 150 speed
Pause 5000 ;Continue for 5000 milliseconds
pulsout P4,6000 ;Brake Motor by sending a pulse of 6000 microseconds
;to Pin 4
goto Main

I have a old kit that has motor control circuits built into the motors and it appears that they only use the 1 pin to control the speed and direction of the motor.

I am hoping to use the motors/control circuit with my Arduino Uno.

This the best image I could find of the motor control circuit. I requested a better one from the manufacturer, but no reply yet. See attached pdf.

Cheers

MOTORCIRCUIT.pdf (155 KB)