----------------------------------
result1 var word
result2 var word

radio:

pulsin PORTB.0,1,result1
pulsin PORTB.1,1,result2

if result1 < 600 then forward1
if result1 > 900 then reverse1
if result2 < 600 then ccw
if result2 > 900 then cc

goto radio

-------------------------------

Very sorry bout the previous post, just out it a side then.
I've been trying the pulsin . Two channel go directly to the input.

if result1 < 600 then forward1

i.ve used this based on my previous school project using basic stamp. It was not programm by me. Did the order of programm goes in this way?

comment appreciated.