estudiante
dará una muy amplia idea de como podemos
hacer distintos juegos de leds desde los,
multiples puertos de elpic
Y darles a cada una de estassecuencias un
tiempo prudente para su retardo con un
lapso especifico “ el cual se modificara al
transcurso del programa para mostrar un
manejo más amplio del tema”.
#include"p16f877a.inc"
list p=16f877a
CONT EQU 0x0C
CONT2 EQU 0x0D
CONT3 EQU 0x0E
ORG 0
GOTO INICIO
INICIO BSF STATUS,RP0
MOVLW B'00000000'
MOVWF TRISB
MOVLW B'11111'
MOVWF TRISA
BCFSTATUS,RP0
SECUENCIA1
CLRF PORTB
CALL UNSEGUNDO
BSF PORTB,0
CALL UNSEGUNDO
BSF PORTB,1
CALL UNSEGUNDO
BSF PORTB,2
CALL UNSEGUNDO
BSF PORTB,3
CALL UNSEGUNDO
BSF PORTB,4
CALLUNSEGUNDO
BSF PORTB,5
CALL UNSEGUNDO
BSF PORTB,6
CALL UNSEGUNDO
BSF PORTB,7
CALL UNSEGUNDO
SECUENCIA2
CLRF PORTB
CALL UNSEGUNDO
BSF PORTB,7
CALL UNSEGUNDO
BSF PORTB,6
CALLUNSEGUNDO
BSF PORTB,5
CALL UNSEGUNDO
BSF PORTB,4
CALL UNSEGUNDO
BSF PORTB,3
CALL UNSEGUNDO
BSF PORTB,2
CALL UNSEGUNDO
BSF PORTB,1
CALL UNSEGUNDO
BSF PORTB,0
CALL UNSEGUNDOSECUENCIA3
CLRF PORTB
CALL UNSEGUNDO
BSF PORTB,0
CALL UNSEGUNDO
BSF PORTB,2
CALL UNSEGUNDO
BSF PORTB,4
CALL UNSEGUNDO
BSF PORTB,6
CALL UNSEGUNDO
SECUENCIA4
CLRF PORTB
CALLUNSEGUNDO
BSF PORTB,7
CALL UNSEGUNDO
BSF PORTB,5
CALL UNSEGUNDO
BSF PORTB,3
CALL UNSEGUNDO
BSF PORTB,1
CALL UNSEGUNDO
SECUENCIA5
CLRF PORTB
CALL UNSEGUNDO
BSF PORTB,0
CALL UNSEGUNDOBCF PORTB,0
CALL UNSEGUNDO
BSF PORTB,1
CALL UNSEGUNDO
BCF PORTB,1
CALL UNSEGUNDO
BSF PORTB,2
CALL UNSEGUNDO
BCF PORTB,2
CALL UNSEGUNDO
BSF PORTB,3
CALL UNSEGUNDO
BCF PORTB,3CALL UNSEGUNDO
BSF PORTB,4
CALL UNSEGUNDO
BCF PORTB,4
CALL UNSEGUNDO
BSF PORTB,5
CALL UNSEGUNDO
BCF PORTB,5
CALL UNSEGUNDO
BSF PORTB,6
CALL UNSEGUNDO
BCF PORTB,6
CALL...
Regístrate para leer el documento completo.