MICROCONTROLADORES
-
Upload
javier-kbas -
Category
Documents
-
view
7 -
download
0
description
Transcript of MICROCONTROLADORES
![Page 1: MICROCONTROLADORES](https://reader035.fdocuments.net/reader035/viewer/2022081809/5695d4491a28ab9b02a0f04b/html5/thumbnails/1.jpg)
UNIVERSIDAD TECNICA DEL NORTE
FICA – CIME
SISTEMAS MICROPROCESADOS
JAVIER CABASCANGO – JORGE CRIOLLO
INFORME
TEMA
Manejo de un display de 7 segmentos sin y con el CI.7447 y de un multiplexador.
OBJETIVO
Diseñar los diferentes programas para cada display.
OBJETIVOS ESPECIFICOS
- Realizar un programa para un display 7 segmentos con y sin el CI. 7447
- Realizar un programa para un multiplexaje.
- Realizar la simulación en Proteus.
- Implementarlo físicamente en la protoboard.
DESARROLLO
DISPLAY 7 SEGMENTOS SIN CI. 7447
$regfile = "m164pdef.dat"
$crystal = 1000000
Dim Num As Byte
Display7s Alias Portd
Config Portd = Output
Display7s = $ff
'programa principal
Do
For Num = 0 To 14
Display7s = Lookup(num , Display1)
Waitms 500
Next A
Loop
![Page 2: MICROCONTROLADORES](https://reader035.fdocuments.net/reader035/viewer/2022081809/5695d4491a28ab9b02a0f04b/html5/thumbnails/2.jpg)
'tabla de numeros 0-9 y HOLA
Display1:
Data 64 , 121 , 36 , 48 , 25 , 18 , 3 , 120 , 0 , 24 , 9 , 64 , 71 , 8
SIMULACION EN PROTEUS
DISPLAY 7 SEGMENTOS CON CI. 7447
$regfile = "m164pdef.dat"
$crystal = 8000000
Dim Numero As Byte
Dim Aux As Byte
Config Portd = Output
Numero = 0 : Portd = 0
Waitms 500
Do
Incr Numero
If Numero > 9 Then
Numero = 1
End If
Aux = Numero * 16
Portd = Aux
Waitms 500
Loop
End
![Page 3: MICROCONTROLADORES](https://reader035.fdocuments.net/reader035/viewer/2022081809/5695d4491a28ab9b02a0f04b/html5/thumbnails/3.jpg)
SIMULACION EN PROTEUS
MULTIPLEXAJE
$regfile = "m164pdef.dat"
$crystal = 1000000
Dim Unid As Byte , Dece As Byte , Num(10) As Byte
Config Portb = Output
Portb = 0
Config Portc = Output
Portc = 0
Ddrd.0 = 0 : Portd.0 = 1
For Unid = 0 To 9
Num(unid + 1) = Lookup(unid , Numeros)
Next
Unid = 1 : Dece = 1
Do
Gosub Visualiza
If Pind.0 = 0 Then
Gosub Cuenta
End If
Loop
![Page 4: MICROCONTROLADORES](https://reader035.fdocuments.net/reader035/viewer/2022081809/5695d4491a28ab9b02a0f04b/html5/thumbnails/4.jpg)
Cuenta:
Incr Unid
If Unid > 10 Then
Incr Dece
Unid = 1
If Dece > 10 Then
Dece = 1
End If
End If
Gosub Espera
Return
Visualiza:
Portc = 2 : Portb = Num(unid)
Waitms 5
Portc = 4 : Portb = Num(dece)
Waitms 5
Return
Espera:
If Pind.0 = 0 Then
Gosub Visualiza
Goto Espera
End If
Return
End
Numeros:
Data 64 , 121 , 36 , 48 , 25 , 18 , 3 , 120 , 0 , 24
![Page 5: MICROCONTROLADORES](https://reader035.fdocuments.net/reader035/viewer/2022081809/5695d4491a28ab9b02a0f04b/html5/thumbnails/5.jpg)
SIMULACION EN PROTEUS
CONCLUSIONES
Aprendiendo cada clase una nueva instrucción se facilita la realización del
desarrollo del problema propuesto y así se mejora lo aprendido mejorando las
capacidades de resolver un problema.
El programa es muy similar al contador binario, con la diferencia que solo se
necesita 4 bits del puerto, el decodificador binario a 7 segmentos (7447), es
encargado de transformar el número binario que ingresa al número decimal.
Como se sabemos, al AVR se le puede programar para reemplazar a casi
cualquier circuito integrado, en esta ocasión le configuramos que el propio AVR
sea como el CI.7447, para esto debemos saber que para sacar el numero 3 por
ejemplo, debemos calcular el número decimal que hace que se enciendan los
segmentos correctos del display.
En un display multiplexado para habilitarlo se realiza por medio de Vcc (en
displays AC) y Gnd (en displays CC), con la ayuda de un transistor en corte y
saturación.
RECOMENDACIONES
Ser muy hábiles al utilizar los programas y sus funciones para un buen
desarrollo del programa.
Practicar en el hogar continuamente porque nos ayudaría en futuras evaluaciones
y estaríamos preparados para resolver el problema que nos propongan.
![Page 6: MICROCONTROLADORES](https://reader035.fdocuments.net/reader035/viewer/2022081809/5695d4491a28ab9b02a0f04b/html5/thumbnails/6.jpg)
ANEXOS
![Page 7: MICROCONTROLADORES](https://reader035.fdocuments.net/reader035/viewer/2022081809/5695d4491a28ab9b02a0f04b/html5/thumbnails/7.jpg)