ClubEnsayos.com - Ensayos de Calidad, Tareas y Monografias
Buscar

Taller De Micros


Enviado por   •  10 de Noviembre de 2014  •  295 Palabras (2 Páginas)  •  143 Visitas

Página 1 de 2

INSTITUCION UNIVERSITARIA

ANTONIO JOSE CAMACHO

GRUPO ELECTRONICA 601

MICROPOCESADORES

INTEGRANTES:

YAIR FERNANDO LOZADA SANCHEZ

CARLOS ALBERTO VARGAS GIL

31 DE OCTUBRE DEL 2014

PROBLEMA

DIAGRAMA DE FLUJO

PROGRAMACION EN LENGUAJE C.

#include <16f877.h>

#use delay (clock=1M)

#fuses HS,noLVP,noWDT,noPROTECT

#BYTE portB=0x06

#byte trisB=0x86

#bit S1=portB.0

#bit S2=portB.1

#bit S3=portB.2

#bit S4=portB.3

#bit x1=portB.4

#bit x2=portB.5

void main (void){

trisB=0b11001111;

setup_adc (adc_off);

While (true){ if ((s1==1)&&(s2==1)){

x1=0;

x2=0;

}

if (S4==1){

X2=0;

}

if(S3==1){

x1=0;

}

...

Descargar como (para miembros actualizados)  txt (1.3 Kb)  
Leer 1 página más »
Disponible sólo en Clubensayos.com