#include <16f877a.h>
#fuses XT,NOWDT,PUT,NOPROTECT,BROWNOUT,NOLVP
#use delay(clock=4000000)
#include <Lcd.c>
main()
{
lcd_init();
delay_ms(50);
printf(lcd_putc,"\f UFUK");
delay_ms(50);
}
kısa ve çelışan kod denendi kolay gelsin.
#include <16f877a.h>
#fuses XT,NOWDT,PUT,NOPROTECT,BROWNOUT,NOLVP
#use delay(clock=4000000)
#include <Lcd.c>
void main()
{
setup_adc_ports(NO_ANALOGS);
setup_adc(ADC_OFF);
setup_psp(PSP_DISABLED);
setup_spi(SPI_SS_DISABLED);
setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1);
setup_timer_1(T1_DISABLED);
setup_timer_2(T2_DISABLED,0,1);
setup_comparator(NC_NC_NC_NC);
setup_vref(FALSE);
lcd_init();
delay_ms(50);
printf(lcd_putc,"\f UFUK");
delay_ms(50);
while(1)
{}
}
bu şekilde düzeltirsen çalışması lazım.