desmond
Member level 1
Hi all
I am using C to do my project...my equation of vout is 5/(1+(z/4.7)).......why i cant read the value on LCD ???
Could anyone can help me ???
void display_LCD_number(unsigned char number)
{
unsigned char x,y,i=2;
int z;
z=(int) number;
z=z<<1;
y=5/(1+(z/4.7));
gotoxy(2,0);
write_LCD_data(int2char[y]);
gotoxy(2,1);
display_LCD_string(".");
y=5/(1+(z/4.7));
gotoxy(2,2);
write_LCD_data(int2char[y]);
y=5/(1+(z/4.7));
gotoxy(2,3);
write_LCD_data(int2char[y]);
gotoxy(2,4);
display_LCD_string("V");
}
I am using C to do my project...my equation of vout is 5/(1+(z/4.7)).......why i cant read the value on LCD ???
Could anyone can help me ???
void display_LCD_number(unsigned char number)
{
unsigned char x,y,i=2;
int z;
z=(int) number;
z=z<<1;
y=5/(1+(z/4.7));
gotoxy(2,0);
write_LCD_data(int2char[y]);
gotoxy(2,1);
display_LCD_string(".");
y=5/(1+(z/4.7));
gotoxy(2,2);
write_LCD_data(int2char[y]);
y=5/(1+(z/4.7));
gotoxy(2,3);
write_LCD_data(int2char[y]);
gotoxy(2,4);
display_LCD_string("V");
}