lazyhut
Member level 1

ic
IC16F877A
compiler: mikroC PRO
problem: Countdown timer showing unknown word in LCD display..3rd digit showing unknown word..
i just show declaration and function
**broken link removed**
3rd digit shown unknow word
compiler: mikroC PRO
problem: Countdown timer showing unknown word in LCD display..3rd digit showing unknown word..
i just show declaration and function
Code:
char txt[6]; //declaration
char sec;//declaration
while(sec<=30) //wait 30sec
{
timer=30-sec;
countdown(); //display timer
delay_ms(1000);
sec++; //sec+1
if(reset_1) //if reset press
{ //then stop
reset();
break;
}
}
void countdown()
{
floattostr(timer,txt);
lcd_chr(1,14,txt[0]); //display lcd
lcd_chr_cp(txt[1]);
lcd_chr_cp(txt[2]);
}
**broken link removed**
3rd digit shown unknow word
Last edited: