Pics lavador de inyectores

Páginas: 4 (888 palabras) Publicado: 5 de junio de 2010
#include
#device adc=10
#device high_ints=true

#FUSES NOWDT //No Watch Dog Timer
#FUSES HS //High speed Osc (> 4mhz for PCM/PCH) (>10mhz for PCD)#FUSES NOPROTECT //Code not protected from reading
#FUSES NOBROWNOUT //No brownout reset
#FUSES NOPUT //No Power Up Timer
#FUSES NOCPD//No EE protection
#FUSES NOMCLR //Master Clear pin enabled
#use delay(internal=8000000)

float I1,RI1,VRI1,I2,RI2,VRI2,I3,RI3,VRI3,I4,RI4,VRI4;
intinterrupt=0,stop=0,automatic=0,pant=0,menu=0,minutos=20,segundos=0,exit=0,reability=0,guard=0,guard2=0;
int16 tiempo=4000,x,presion=50,frecuencia=1000;
void automatico();
void manual();void frequency();
void time();
void presure();
void ultrasonico();
void resistencia();
void pantalla_principal();
void pantalla_ultrasonico();
void pantalla_resistencia();void paro();
void rutina_ultrasonico();

#int_EXT high

void EXT_isr(void)
{if(interrupt==1){paro();}}

#include

void main()
{
lcd_init();setup_adc_ports(AN0_TO_AN3|VSS_VDD);
setup_adc(ADC_CLOCK_DIV_32);
setup_psp(PSP_DISABLED);
setup_spi(SPI_SS_DISABLED);
setup_wdt(WDT_OFF);
setup_timer_0(RTCC_INTERNAL);setup_timer_1(T1_DISABLED);
setup_timer_2(T2_DISABLED,0,1);
setup_timer_3(T3_DISABLED|T3_DIV_BY_1);
setup_comparator(NC_NC_NC_NC);
setup_vref(FALSE);
enable_interrupts(INT_EXT);enable_interrupts(GLOBAL);
output_c(0x00);
OUTPUT_e(0x00);
lcd_putc(" BIENVENIDO");
delay_ms(3000);
x=tiempo/1000;
pantalla_principal();

while(1)
{while(!INPUT(PIN_B0)&&!INPUT(PIN_B1)&&!INPUT(PIN_B2)&&!INPUT(PIN_B3)&&!INPUT(PIN_B4));

IF(INPUT(PIN_B3))
{
delay_ms(100);
pant++;
IF (pant>2)
pant=0;
}...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • Lavador De Inyectores
  • Lavador De Inyector
  • lavadoras
  • la lavadora
  • Inyectores
  • Inyectores
  • lavadora
  • lavadoras

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS