Curr_Volt = caltmp >> 12; //Curr_Volt = caltmp / 2^n
ptr[0] = Curr_Volt / 100; //Hex->Dec变换
t1 = Curr_Volt - (ptr[0] * 100);
ptr[2] = t1 / 10;
ptr[3] = t1 - (ptr[2] * 10);
ptr[1] = 10; //shuzi表中第10位对应符号"."
//在液晶上显示变换后的结果
for(i = 0;i < 4;i++)
LCD_write_char((6 + i),1,shuzi[ptr]);
向大家请教一下,各条语句是什么意思呢? |