What I'm trying to do is rewrite this ASM code into Basic

http://hades.mech.northwestern.edu/w...M_Motor_Driver

It works as described but I need to add more options and conditions. The hardest part is getting this pwm part working.