1 / 14

Comparador de iluminación

Comparador de iluminación. Potencia Iluminación. Sensor de puerta. Generador Alarma. CODIGO BINARIO - HEXADECIMAL. ENMASCARAMIENTO DE BITS. Conector DB25S. Salidas. Salidas. Entradas. Datos de entrada:. D5 D4 D3 D2 D1 X X X. 74HC244. Programar de salida.

maura
Download Presentation

Comparador de iluminación

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Comparador de iluminación Potencia Iluminación Sensor de puerta Generador Alarma

  2. CODIGO BINARIO - HEXADECIMAL

  3. ENMASCARAMIENTODE BITS

  4. Conector DB25S Salidas Salidas Entradas

  5. Datos de entrada: D5 D4 D3 D2 D1 X X X

  6. 74HC244

  7. Programar de salida

  8. #include <dos.h> #include <conio.h> #include <stdio.h> void main (void) { clrscr(); printf("Programa corriendo \n\rPresione una tecla para salir"); //Imprime outp(888,0); //Limpia el puerto while (!kbhit()) { outp(888,FF); //Prende Todas las salidas gotoxy(5,10); //Posiciona el cursos de la pantalla printf("Led ON "); //Escribe texto delay(1000); //Retardo outp(888,0); //Apaga el led. gotoxy(5,10); printf("Led OFF"); delay(1000); } }

  9. Programar de Control

  10. #include <dos.h> #include <conio.h> #include <stdio.h> unsigned char puerto; void main (void) { clrscr(); printf("Programa corriendo \n\rPresione cualquier tecla para salir"); outp(888,0); //Limpia el puerto while (!kbhit()) { puerto=inp(889); //Lee Puerto gotoxy(5,5); printf("El valor del puerto de estado es: %X",puerto); //Imprime

  11. if((puerto&0x10)==0x10) { gotoxy(5,10); printf("Comparador en 1"); outp(888,0xff); //Prende el leds delay(100); outp(888,0); //Apaga el leds. delay(100); } else { gotoxy(5,10); printf("Comparador en 0"); } } }

  12. - Out In + 555 Osc Out In

More Related