if(speed>0)
{
gotoxy(1,1);
LCD_Write_String("V= ");
gotoxy(1,3);
LcdWriteData((speed/1000)%10+0x30);
gotoxy(1,4);
LcdWriteData((speed/100)%10+0x30);
gotoxy(1,5);
LcdWriteData((speed/10)%10+0x30);
gotoxy(1,6);
LcdWriteData(speed%10+0x30);
gotoxy(1,7);
LCD_Write_String("r");
gotoxy(1,8);
LCD_Write_String("/");
gotoxy(1,9);
LCD_Write_String("m");
gotoxy(1,10);
LCD_Write_String("i");
gotoxy(1,11);
LCD_Write_String("n");
interruptcounter=0;
}
|