You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
C51 COMPILER V9.56.0.0 MAIN 04/06/2022 21:56:09 PAGE 1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
C51 COMPILER V9.56.0.0, COMPILATION OF MODULE MAIN
|
|
|
|
|
OBJECT MODULE PLACED IN main.OBJ
|
|
|
|
|
COMPILER INVOKED BY: D:\Keil_v5\C51\BIN\C51.EXE main.c OPTIMIZE(8,SPEED) BROWSE DEBUG OBJECTEXTEND TABS(2)
|
|
|
|
|
|
|
|
|
|
line level source
|
|
|
|
|
|
|
|
|
|
1 #include <reg51.h>
|
|
|
|
|
2 #include <intrins.h>
|
|
|
|
|
3 #include "lcd.h"
|
|
|
|
|
4 #include "pwm.h"
|
|
|
|
|
5 #include "i2c.h"
|
|
|
|
|
6 #include "IRIN.h"
|
|
|
|
|
7
|
|
|
|
|
8 unsigned char PuZh[]=" Pechin Science ";
|
|
|
|
|
9 extern uint journey;
|
|
|
|
|
10 extern uint money;
|
|
|
|
|
11 extern uchar sudu;
|
|
|
|
|
12 unsigned int b12;
|
|
|
|
|
13 unsigned int c12;
|
|
|
|
|
14
|
|
|
|
|
15
|
|
|
|
|
16
|
|
|
|
|
17 unsigned int b123;
|
|
|
|
|
18 unsigned int c123;
|
|
|
|
|
19 extern unsigned char pwm_left;
|
|
|
|
|
20 unsigned char code ASCII[15] = {'0','1','2','3','4','5','6','7','8','9','.','-','M'};
|
|
|
|
|
21
|
|
|
|
|
22 void delayms(unsigned int ms)
|
|
|
|
|
23 {
|
|
|
|
|
24 1 unsigned char i=100,j;
|
|
|
|
|
25 1 for(;ms;ms--)
|
|
|
|
|
26 1 {
|
|
|
|
|
27 2 while(--i)
|
|
|
|
|
28 2 {
|
|
|
|
|
29 3 j=10;
|
|
|
|
|
30 3 while(--j);
|
|
|
|
|
31 3 }
|
|
|
|
|
32 2 }
|
|
|
|
|
33 1 }
|
|
|
|
|
34
|
|
|
|
|
35 void main(void)
|
|
|
|
|
36 {
|
|
|
|
|
37 1
|
|
|
|
|
38 1 InitLcd1602();
|
|
|
|
|
39 1 IRIN_Init();
|
|
|
|
|
40 1 pwm_left=10;
|
|
|
|
|
41 1 b12=At24c02Read(1);
|
|
|
|
|
42 1 c12=At24c02Read(8);
|
|
|
|
|
43 1
|
|
|
|
|
44 1 money=At24c02Read(5);
|
|
|
|
|
45 1 journey = (b12<<8)|c12;
|
|
|
|
|
46 1 while(1)
|
|
|
|
|
47 1 {
|
|
|
|
|
48 2 run();
|
|
|
|
|
49 2 display();
|
|
|
|
|
50 2 keypros();
|
|
|
|
|
51 2 }
|
|
|
|
|
52 1
|
|
|
|
|
53 1 }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
C51 COMPILER V9.56.0.0 MAIN 04/06/2022 21:56:09 PAGE 2
|
|
|
|
|
|
|
|
|
|
MODULE INFORMATION: STATIC OVERLAYABLE
|
|
|
|
|
CODE SIZE = 86 ----
|
|
|
|
|
CONSTANT SIZE = 15 ----
|
|
|
|
|
XDATA SIZE = ---- ----
|
|
|
|
|
PDATA SIZE = ---- ----
|
|
|
|
|
DATA SIZE = 25 ----
|
|
|
|
|
IDATA SIZE = ---- ----
|
|
|
|
|
BIT SIZE = ---- ----
|
|
|
|
|
END OF MODULE INFORMATION.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
C51 COMPILATION COMPLETE. 0 WARNING(S), 0 ERROR(S)
|