Assignment Number 4
Have your robot move forward using timer 0 to measure out 1 millisecond. Your program should look something like:
bsf PORTB,4 ; assumes PORTB,4 has a motor attached
bsf PORTB,5 ; assumes PORTB,5 has a motor attached
call delay_1_milli ; use TMR0 to wait 1 millisecond
bcf PORTB,5
call delay_1_milli
bcf PORTB,4
call delay_18_milli ; use TMR0
This program doesn't use interrupts!