At the bellow code i want to set the variables Help1-Help2-Help3-Help4
for the delay 25,6 ms , but i don't know how.I use 16f88 and xtal 4 MHZ.Prescaler for TMR0 is 256.
for the delay 25,6 ms , but i don't know how.I use 16f88 and xtal 4 MHZ.Prescaler for TMR0 is 256.
Code:
Cycle
clrwdt
btfss INTCON,2
goto Nothing
incf Var1,F
bcf INTCON,2
goto Nxt
Nothing
nop
nop
nop
Nxt
decfsz Help1,F
goto Cycle
decfsz Help2,F
goto Cycle
decfsz Help3,F
goto Cycle
Cycle2
btfss INTCON,2
goto Not2Do
incf Var1,F
bcf INTCON,2
goto Nx
Not2Do
nop
nop
nop
Nx
decfsz Help4,F
goto Cycle2
nop
nop
nop
Last edited: