I am trying to make a 1sec delay using a pic16f88 with the following>>
int osc set to 8mhz,
so does that mean each instruction cycle takes 1/2 micro-second 2 mhz clock cycles?
so 250 x 250 x 32 =2000000 1/2 micro seconds( 1 second)
and this is my programme
DELAY_1S
movlw .32
movwf t3
more1 movlw .250
movwf t2
more movlw .250
movwf t1
decfsz t1,f
goto $-1
decfsz t2,f
goto more
decfsz t3,f
goto more1
return
will this work or not, or do you have an easier way?
int osc set to 8mhz,
so does that mean each instruction cycle takes 1/2 micro-second 2 mhz clock cycles?
so 250 x 250 x 32 =2000000 1/2 micro seconds( 1 second)
and this is my programme
DELAY_1S
movlw .32
movwf t3
more1 movlw .250
movwf t2
more movlw .250
movwf t1
decfsz t1,f
goto $-1
decfsz t2,f
goto more
decfsz t3,f
goto more1
return
will this work or not, or do you have an easier way?