?? screen_main.lst
字號:
C51 COMPILER V7.06 SCREEN_MAIN 02/02/2007 15:07:13 PAGE 1
C51 COMPILER V7.06, COMPILATION OF MODULE SCREEN_MAIN
OBJECT MODULE PLACED IN screen_main.OBJ
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE screen_main.c LARGE OPTIMIZE(9,SPEED) BROWSE DEBUG OBJECTEXTEND
stmt level source
1 #include "lcd.h"
2 #include "main.h"
3 #include "screen.h"
4 #include "i2c.h"
5 #include "kb.h"
6 #include "w77e58.h"
7 //#include "v.h"
8
9
10 void Fun_Screen_Main(void)
11 {
12 1 LCD_CmdWrite(0xF1,0x1F);
13 1 GotoXY(0x0D,0x50);
14 1 PrintStr("繼電器功能測試儀");
15 1 LCD_CmdWrite(0xF1,0x0F);
16 1 GotoXY(0x0B,0x80);
17 1 PrintStr("深圳泰科電子有限公司");
18 1 GotoXY(0x11,0xA0);
19 1 PrintStr("MICRO-K");
20 1 }
21 void Screen_Test(void)
22 {
23 1 LCD_CmdWrite(0xF1,0x1F);
24 1 GotoXY(0x0F,0x00);
25 1 PrintStr("測試主畫面");
26 1 LCD_CmdWrite(0xF1,0x0F);
27 1 GotoXY(0x00,0x20);
28 1 PrintStr("線圈電阻( ):上: . 下: . 測: .");//8BIT,4BIT, 0
29 1 GotoXY(0x0A,0x20);
30 1 LCD_DataWrite(0xEA);
31 1 //delay(2);
32 1 GotoXY(0x00,0x30);
33 1 PrintStr("溫度變換( ):上: . 下: . 測: . C");//11BIT, 1
34 1 GotoXY(0x0A,0x30);
35 1 LCD_DataWrite(0xEA);
36 1 //delay(2);
37 1 GotoXY(0x26,0x30);
38 1 LCD_DataWrite(0xF8);
39 1 //delay(2);
40 1 GotoXY(0x00,0x40);
41 1 PrintStr("接觸電阻(m ):上: . 下: . 測1B: .");//8BIT,3BIT, 2
42 1 GotoXY(0x0A,0x40);
43 1 LCD_DataWrite(0xEA);
44 1 //delay(2);
45 1 GotoXY(0x00,0x50);
46 1 PrintStr("接觸電阻(m ):上: . 下: . 測1A: .");//8BIT,3BIT, 3
47 1 GotoXY(0x0A,0x50);
48 1 LCD_DataWrite(0xEA);
49 1 GotoXY(0x00,0x60);
50 1 PrintStr("吸合電壓( V):上: . 下: . 測: .");//8BIT,4BIT, 4
51 1 GotoXY(0x00,0x70);
52 1 PrintStr("銜鐵吸合( V):上: . 下: . 測: .");//8BIT,4BIT, 5
53 1 GotoXY(0x00,0x80);
54 1 PrintStr("釋放電壓( V):上: . 下: . 測: .");//8BIT,4BIT, 6
55 1 GotoXY(0x00,0x90);
C51 COMPILER V7.06 SCREEN_MAIN 02/02/2007 15:07:13 PAGE 2
56 1 PrintStr("銜鐵釋放( V):上: . 下: . 測: .");//8BIT,4BIT, 7
57 1 GotoXY(0x00,0xA0);
58 1 PrintStr("吸合時間(mS):上: . 下: . 測: .");//6BIT,3BIT, 8
59 1 GotoXY(0x00,0xB0);
60 1 PrintStr("吸合回跳(mS):上: . 下: . 測: .");//6BIT,3BIT, 9
61 1 GotoXY(0x00,0xC0);
62 1 PrintStr("釋放時間(mS):上: . 下: . 測: .");//6BIT,3BIT, 10
63 1 GotoXY(0x00,0xD0);
64 1 PrintStr("釋放回跳(mS):上: . 下: . 測: .");//6BIT,3BIT, 11
65 1 GotoXY(0x00,0xE0);
66 1 PrintStr("線圈電壓: V; 觸點電流: . A,類型:1");//6BIT, 12
67 1 }
68 void Tests_Data(unsigned char *Val,unsigned char Num,unsigned char y)
69 {
70 1 extern unsigned char Test_X[12][5];
71 1 extern unsigned char Loc_Y[13];
72 1 extern unsigned char Display_Code[16];
73 1 unsigned char i;
74 1 LCD_CmdWrite(0x10,0x0B);
75 1 for(i=0;i<Num;i++)
76 1 {
77 2 GotoXY(Test_X[y][i],Loc_Y[y]);
78 2 LCD_DataWrite(Display_Code[*Val]);
79 2 ++Val;
80 2 }
81 1 LCD_CmdWrite(0x10,0x2B);
82 1 }
83
84 void Set_Data(unsigned char *Val,unsigned char Num,unsigned char x,unsigned char y)
85 {
86 1 extern unsigned char Loc_X[13][11];
87 1 extern unsigned char Loc_Y[13];
88 1 extern unsigned char Display_Code[16];
89 1 unsigned char i;
90 1 for(i=x;i<Num;i++)
91 1 {
92 2 GotoXY(Loc_X[y][i],Loc_Y[y]);
93 2 LCD_DataWrite(Display_Code[*Val]);
94 2 ++Val;
95 2 }
96 1 }
97
98
MODULE INFORMATION: STATIC OVERLAYABLE
CODE SIZE = 580 ----
CONSTANT SIZE = 536 ----
XDATA SIZE = ---- 13
PDATA SIZE = ---- ----
DATA SIZE = ---- ----
IDATA SIZE = ---- ----
BIT SIZE = ---- ----
END OF MODULE INFORMATION.
C51 COMPILATION COMPLETE. 0 WARNING(S), 0 ERROR(S)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -