Documente Academic
Documente Profesional
Documente Cultură
Realizar un restador (contador ascendente), que inicie desde 10 hasta 0, pero que
funcione inalambricamente.
MATERIAL
Protoboard
Cable
Pinzas de corte y punta
2 displays ánodo común
Resistencias
PIC 16f648
1 LED infrarrojo
1 fotodiodo infrarrojo
1 circuito integrado LM358
1 compuerta 74LS04
1 LED
1 push boton
Fuente de 5 v
DESARROLLO
Programa
time
movlw d'48'
movwf 0x20
tres movlw d'50'
movwf 0x21
dos movlw d'50'
movwf 0x22
uno decfsz 0x22
goto uno
decfsz 0x21
goto dos
decfsz 0x20
goto tres
return
main
movlw 0x07
movwf CMCON
movlw 0x20
movwf STATUS
movlw b'00000001'
movwf TRISA
clrf TRISB
clrf STATUS
inicio movlw b'00111111'
movwf PORTB
movlw b'11000000'
movwf PORTA
call time
darwin btfss PORTA,0
goto darwin
movlw b'01100111'
movwf PORTB
movlw b'11011110'
movwf PORTA
call time
albert btfss PORTA,0
goto albert
movlw b'01111111'
movwf PORTB
call time
pascal btfss PORTA,0
goto pascal
movlw b'00000111'
movwf PORTB
call time
goku btfss PORTA,0
goto goku
movlw b'01111101'
movwf PORTB
call time
krilin btfss PORTA,0
goto krilin
movlw b'01101101'
movwf PORTB
call time
dacgdf btfss PORTA,0
goto dacgdf
movlw b'01100110'
movwf PORTB
call time
aqui btfss PORTA,0
goto aqui
movlw b'01001111'
movwf PORTB
call time
odai btfss PORTA,0
goto odai
movlw b'01011011'
movwf PORTB
call time
dragon btfss PORTA,0
goto dragon
movlw b'00000110'
movwf PORTB
call time
nila btfss PORTA,0
goto nila
movlw b'00111111'
movwf PORTB
call time
shelby btfss PORTA,0
goto shelby
goto inicio
U1
16 17
RA7/OSC1/CLKIN RA0/AN0
15 18
RA6/OSC2/CLKOUT RA1/AN1
1
RA2/AN2/VREF
4 2
RA5/MCLR RA3/AN3/CMP1
3
RA4/T0CKI/CMP2
6
RB0/INT
7
RB1/RX/DT
8
RB2/TX/CK
9
RB3/CCP1
10
RB4
11
RB5
12
RB6/T1OSO/T1CKI
13
RB7/T1OSI
PIC16F648A
5.- Por ultimo se une con el circuito de la practica uno para que este pueda funcionar
inalambricamente a través de un push boton.
CONOCIMIENTOS ADQUIRIDOS
OBSERVACIONES
CONCLUSIONES
Se pudo realizar un restador que vaya de forma ascendente que funcione de manera
inalambrica.