Documentos de Académico
Documentos de Profesional
Documentos de Cultura
**********************************************************************
LIST P=16F84A
INCLUDE <P16F84A.INC>
ENDC
; ZONA DE CÓDIGOS
*******************************************************************
ORG 0
Inicio
clrf TRISB
bsf PORTA,0
bsf STATUS,RP0
clrf TRISB
bsf PORTA,0
bcf LED1
bcf STATUS,RP0
bsf STATUS,RP1
clrf TRISB
bsf PORTA,0
bcf LED2
bcf STATUS,RP1
Principal
call Retardo_200ms
call Retardo_100ms
bsf LED1
call Retardo_200ms
call Retardo_200ms
bcf LED1
call Retardo_200ms
call Retardo_100ms
bsf LED2
call Retardo_200ms
call Retardo_200ms
bcf LED2
call Retardo_200ms
call Retardo_100ms
goto Principal
CBLOCK
R_ContB
ENDC
; = (2 + 4M + 4KM) ciclos máquina. Para K=249 y M=1 supone 1002 ciclos máquina
Retardos_ms
R1ms_BucleExterno
R1ms_BucleInterno
END