电子称重的程序
源代码在线查看: function.lst
C51 COMPILER V8.02 FUNCTION 05/04/2008 21:35:46 PAGE 1
C51 COMPILER V8.02, COMPILATION OF MODULE FUNCTION
OBJECT MODULE PLACED IN FUNCTION.OBJ
COMPILER INVOKED BY: e:\Keil\C51\BIN\C51.EXE FUNCTION.C BROWSE DEBUG OBJECTEXTEND
line level source
1 #include
2 #include
3
4
5 /**************************************************************************
6 * 函数原型: void delay_1ms(void);
7 * 功 能:延时1毫秒。
8 **************************************************************************/
9 void delay_1ms(void)
10 {
11 1 Uint j;
12 1 for(j=0;j 13 1 }
14
15 /**************************************************************************
16 * 函数原型: void delayms(Uint num);
17 * 功 能:延时num毫秒.
18 **************************************************************************/
19 void delayms(Uint num)
20 {
21 1 for(;num!=0;num--)
22 1 delay_1ms();
23 1 }
24
25 code float pow10t[]={1,10,100,1000,10000,100000,1000000,10000000};
26 code float powp10t[]={1,0.1,0.01,0.001,0.0001,0.00001,0.000001,0.0000001};
27 float pow10(char t)
28 {
29 1 if(t>=0)
30 1 return pow10t[t];
31 1 else return powp10t[-t];
32 1 }
33
MODULE INFORMATION: STATIC OVERLAYABLE
CODE SIZE = 100 ----
CONSTANT SIZE = 64 ----
XDATA SIZE = ---- ----
PDATA SIZE = ---- ----
DATA SIZE = ---- ----
IDATA SIZE = ---- ----
BIT SIZE = ---- ----
END OF MODULE INFORMATION.
C51 COMPILATION COMPLETE. 0 WARNING(S), 0 ERROR(S)