Escolar Documentos
Profissional Documentos
Cultura Documentos
Minutos Horas
Minutos Horas
P=16F84A
#include P16F874A.INC
#include DEFINICIONES.INC
errorlevel -302
__CONFIG 0x3FF1
DATO
EQU 0X0C
org 0x00
goto INICIO
org 0x05
INICIO BANCO_1
movlw 0xD5
movwf OPTION_REG
bcf
TRISB,RB0
BANCO_0
CICLO
bsf
SEGUNDO movlw
CICLO3
call
bcf
call
goto
PORTB,RB0
SEGUNDO
PORTB,RB0
SEGUNDO
CICLO
.100
movwf
DATO
call
bcf
call
goto
PORTB, RB1
MINUTO
PORTB, RB1
MINUTO
CICLO3
bsf
MINUTO movlw
.360000
movwf DATO
CICLO4 bsf
PORTB,
call
bcf
call
goto
HORA
.21600000
movwf DATO
movlw
RB2
HORA
PORTB, RB2
MINUTO
CICLO4
CICLO2 call
DIEZ_MS
decfsz DATO,F
goto
CICLO2
return
DIEZ_MS movlw
0x5F
movwf TMR0
INTCON,T0IF
goto
SIGUE
bcf
return
SIGUE
btfss
INTCON,T0IF
end