📄 kbscan.lst
字号:
C51 COMPILER V7.50 KBSCAN 03/28/2007 11:36:55 PAGE 1
C51 COMPILER V7.50, COMPILATION OF MODULE KBSCAN
OBJECT MODULE PLACED IN KBScan.OBJ
COMPILER INVOKED BY: E:\Program Files\Keil\C51\BIN\C51.EXE KBScan.c BROWSE DEBUG OBJECTEXTEND
line level source
1 #include<reg52.h>
2 #include <intrins.h>
3 #include "Define.h"
4 #include "Set.h"
5
6 ////////KBScan////////
7 UCHARIDATA ucdKBScanResult;
8 //UCHARIDATA ucdKBScanResult; /* ??????? */
9 UCHARIDATA ucdKBScan_Acc; /* ????????? */
10 UCHARIDATA ucdReceiver; /* P0???????? */
11 UCHARIDATA ucdIncrease; /* ?? */
12
13 UCHARIDATA i;
14 UCHARIDATA j;
15 UCHARIDATA k;
16
17 UCHARIDATA uccRemove[3]={0x03,0x05,0x06};
18
19
20 //unsigned char code uccRemove[3]={0x03,0x05,0x06};
21 ///////////////////////////////////////////////////////////////
22
23 void KBScan(void)
24 {
25 1 ucdKBScan_Acc = uccRemove[ucdIncrease];
26 1 ucdIncrease = ucdIncrease + 1;
27 1
28 1 if(ucdIncrease >= 3)
29 1 {
30 2 ucdIncrease = 0;
31 2 }
32 1
33 1 ucdKBScan_Acc = ucdKBScan_Acc|0x38;
34 1
35 1 P0 = P0&0xc0;
36 1 P0 = P0|ucdKBScan_Acc;
37 1
38 1 for(i = 0; i < 100; i++)
39 1 for(j = 0; j < 80; j++)
40 1 ucdReceiver = P0;
41 1
42 1 ucdReceiver = ucdReceiver&0x3f;
43 1
44 1 if(ucdReceiver == 0x36)
45 1 ucdKBScanResult = 0;
46 1 else if(ucdReceiver == 0x2e)
47 1 ucdKBScanResult = 1;
48 1 else if(ucdReceiver == 0x1e)
49 1 ucdKBScanResult = 2;
50 1 else if(ucdReceiver == 0x35)
51 1 ucdKBScanResult = 3;
52 1 else if(ucdReceiver == 0x2d)
53 1 ucdKBScanResult = 4;
54 1 else if(ucdReceiver == 0x1d)
55 1 ucdKBScanResult = 5;
C51 COMPILER V7.50 KBSCAN 03/28/2007 11:36:55 PAGE 2
56 1 else if(ucdReceiver == 0x33)
57 1 ucdKBScanResult = 6;
58 1 else if(ucdReceiver == 0x2b)
59 1 ucdKBScanResult = 7 ;
60 1 else if(ucdReceiver == 0x1b)
61 1 ucdKBScanResult = 8;
62 1 else
63 1 ucdKBScanResult = 30;
64 1
65 1 //return ucdKBScanResult;
66 1
67 1 }
68
69 /*
70 void main()
71 {
72
73 TMOD=0x11;
74 EA=1;
75 IP=2;
76 ET1=1;
77 TR1=1;
78 ET0=1;
79 TR0=1;
80
81 P2 = TAB[ucdKBScanResult];
82
83 while(1)
84 {
85 KBScan();
86
87 if(9 != ucdKBScanResult)
88 {
89 P2 = TAB[ucdKBScanResult];
-
-
-
-
-
90 }
91
92 }
93 }*/
MODULE INFORMATION: STATIC OVERLAYABLE
CODE SIZE = 152 ----
CONSTANT SIZE = ---- ----
XDATA SIZE = ---- ----
PDATA SIZE = ---- ----
DATA SIZE = ---- ----
IDATA SIZE = 10 ----
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 + -