Professional Documents
Culture Documents
LIST p=16F877A
INCLUDE <P16F877A.INC>
N EQU 0x00
cont1 EQU 0x20
cont2 EQU 0x21
list p=16f877A
#include <p16f877A.inc>
cblock 0x20
counter
resta
endc
iniciar
clrf counter
movwf PCLATH
movfw counter
call decoder
movwf PORTB
;call retardo
incf counter
movfw counter
movwf resta
movlw .10
subwf resta
btfss STATUS,Z
retlw b'1111110'
retlw b'0110000'
retlw b'1101101'
retlw b'1111001'
retlw b'0110011'
retlw b'1011011'
retlw b'1011111'
retlw b'1110000'
retlw b'1111111'
retlw b'1111011'
;retardo
END