hellow!
when using the following script work perfectly, but if I uncoment the 3 lines labelled salto1: the routine stop working in a 16F84, also in a 16F628A, somebody know why?.
Thanks!
newlight: movlw 1e; 0d6
movwf ct15
timing1: Banco1
bcf intcon,2;clear de overflow flag
bcf optionr,0
bsf optionr,1
bsf optionr,2; tmr0 rate= 1:255
;bsf gie; habilita todas las interrupciones
;bsf intcon,5; habilita interupcion tmr0
bcf optionr,3; tmr0=activado
bcf optionr,5; reloj interno= on
;verificamos si el tmr0 es overflow
timing2: btfss intcon,2; toif; intcon,5; tmr0=overflow
goto timing2b
goto salto1
timing2b: Banco0
bsf portb,6
goto timing2
;salto1: bcf intcon,2
; decfsz ct15
; goto timing1
salto1: Banco0
bcf intcon,2;clear de overflow flag
Banco1
bsf Trisb,4;rb4= in
Banco0
btfss portb,4; bifurcacion 0/1
goto sicero
call rel4off;bsf portb,4; rb4=1
call rel5off
goto rama1
sicero: call rel4on;bcf portb,4; rb4=0
call rel5on
rama1: goto newlight
;.....................................................
when using the following script work perfectly, but if I uncoment the 3 lines labelled salto1: the routine stop working in a 16F84, also in a 16F628A, somebody know why?.
Thanks!
newlight: movlw 1e; 0d6
movwf ct15
timing1: Banco1
bcf intcon,2;clear de overflow flag
bcf optionr,0
bsf optionr,1
bsf optionr,2; tmr0 rate= 1:255
;bsf gie; habilita todas las interrupciones
;bsf intcon,5; habilita interupcion tmr0
bcf optionr,3; tmr0=activado
bcf optionr,5; reloj interno= on
;verificamos si el tmr0 es overflow
timing2: btfss intcon,2; toif; intcon,5; tmr0=overflow
goto timing2b
goto salto1
timing2b: Banco0
bsf portb,6
goto timing2
;salto1: bcf intcon,2
; decfsz ct15
; goto timing1
salto1: Banco0
bcf intcon,2;clear de overflow flag
Banco1
bsf Trisb,4;rb4= in
Banco0
btfss portb,4; bifurcacion 0/1
goto sicero
call rel4off;bsf portb,4; rb4=1
call rel5off
goto rama1
sicero: call rel4on;bcf portb,4; rb4=0
call rel5on
rama1: goto newlight
;.....................................................