• Embed Doc
  • Readcast
  • Collections
  • CommentGo Back
Download
 
UNIVERSIDAD POLITECNICA SALESIANAINFORME 3LABORATORIO DE SISTEMAS MICROPROCESADOS IEDISON RIOFRIOFRANCISCO REYESPRACTICA 3 MICROCHIP1.
 
Control de Relé.
a.
 
Controlar un foco a 110v, mientras se de un pulso se prendera por 3 segundos, seapagará 1 segundo y se volverá a prender por otros 3 segundos.Entradas, Salidas, Procesos:
 
Entradas
o
 
Pulso para activación del foco.
 
Salidas
o
 
Arreglo de bytes en el puerto de salida.
 
Procesos
o
 
Establecer los pines de salida
o
 
Establecer pines de entrada
o
 
Si el puerto C es 1 se pondrá un 1 en la salida del portC.0 por 3 segundos
o
 
Se pondrá el portC.0 en 0 por 1 segundo
o
 
Se pondrá el portC.0 en 1 por 3 segundos
o
 
Si el puerto C es 0 se pondrá un 0 en la salida del portC.0 y no se activará el relé.
Evaluation notes were added to the output document. To get rid of these notes, please order your copy of ePrint 5.0 now.
 
Algoritmo.FalsoLenguaje de Programación.program Pratica2_1trisc=$ff trisb=$0lazo:if portc.0=1 thenportb.0=1delay_ms(3000)
 
INICIOEspecificar Puerto Bcomo salida y Puerto Ccomo entrada
If portc.0=1
Portc.0=1delay 3segPortc.0=0delay 1segPortc.0=1delay 3segPortc.0=0Recibimos el dato por elPuerto C
Evaluation notes were added to the output document. To get rid of these notes, please order your copy of ePrint 5.0 now.
 
portb.0=0delay_ms(1000)portb.0=1delay_ms(3000)elseportb.0=1end if goto lazoend.Diseño en Proteus.Gráficas:
Evaluation notes were added to the output document. To get rid of these notes, please order your copy of ePrint 5.0 now.
of 00

Leave a Comment

You must be to leave a comment.
Submit
Characters: ...
You must be to leave a comment.
Submit
Characters: ...