Professional Documents
Culture Documents
Include
Include
h"
#include <delays.h>
#include "xlcd.h"
#include <timers.h>
Numero++;
INTCONbits.TMR0IF = 0;
INTCONbits.INT0IF= 0;
}
void DelayFor18TCY(void){
Delay10TCYx(2);
}
void DelayPORXLCD(void){
Delay1KTCYx(15);
}
void DelayXLCD(void){
Delay1KTCYx(2);
}
if(y != 1)
direccion = 0x40;
else
direccion=0;
direccion += x-1;
comandXLCD(0x80 | direccion);
}
while(1){
WriteTimer0(0);
gotoxyXLCD(0,2);
itoa(Numero,String);
putsXLCD (String); //Escibe en el LCD
for(a=0;a<15;a++){
Delay10KTCYx(5);
}
}
En lnea