?? yjsy.lst
字號:
C51 COMPILER V8.02 YJSY 05/23/2006 16:10:09 PAGE 1
C51 COMPILER V8.02, COMPILATION OF MODULE YJSY
OBJECT MODULE PLACED IN yjsy.OBJ
COMPILER INVOKED BY: d:\Keil\C51\BIN\C51.EXE yjsy.c BROWSE DEBUG OBJECTEXTEND
line level source
1 #include <reg51.h>
2 #include <ctype.h>
3 #include <string.h>
4 #include <stdlib.h>
5 #include <stdio.h>
6
7 /* Define the register command code */
8 #define Disp_On 0x3f
9 #define Disp_Off 0x3e
10 #define Col_Add 0x40
11 #define Page_Add 0xb8
12 #define Start_Line 0xc0
13
14 #define Lcd_Bus P1 //MCU P1<------> LCM
15
16 sbit Mcs=P3^6; //Master chip enable
17 sbit Scs=P3^5; //Slave chip enable
18 sbit Enable=P3^4; //6800 mode Enable single
19 sbit Di=P3^2; //Data or Instrument Select
20 sbit RW=P3^3; //Write or Read
21 sbit Lcd_Rst=P3^7; //Lcm reset
22
23
24 unsigned char code hu[]={
25 /*-- 文字: 湖 --*/
26 /*-- 宋體12; 此字體下對應的點陣為:寬x高=16x16 --*/
27 0x10,0x21,0x86,0x60,0x90,0x90,0xFF,0x90,0x90,0x00,0xFE,0x92,0x92,0xFE,0x00,0x00,
28 0x04,0xFC,0x03,0x00,0x1F,0x10,0x10,0x90,0x5F,0x30,0x0F,0x40,0x80,0x7F,0x00,0x00
29 };
30 unsigned char code nan[]={
31 /*-- 文字: 南 --*/
32 /*-- 宋體12; 此字體下對應的點陣為:寬x高=16x16 --*/
33 0x04,0x04,0xE4,0x24,0x24,0x64,0xB4,0x2F,0x24,0xA4,0x64,0x24,0x24,0xE6,0x04,0x00,
34 0x00,0x00,0x7F,0x04,0x05,0x05,0x05,0x7F,0x05,0x05,0x05,0x25,0x44,0x3F,0x00,0x00
35 };
36
37 unsigned char code ke[]={
38 /*-- 文字: 科 --*/
39 /*-- 宋體12; 此字體下對應的點陣為:寬x高=16x16 --*/
40 0x10,0x12,0x92,0x72,0xFE,0x51,0x91,0x00,0x22,0xCC,0x00,0x00,0xFF,0x00,0x00,0x00,
41 0x04,0x02,0x01,0x00,0xFF,0x00,0x04,0x04,0x04,0x02,0x02,0x02,0xFF,0x01,0x01,0x00
42 };
43
44 unsigned char code ji[]={
45 /*-- 文字: 技 --*/
46 /*-- 宋體12; 此字體下對應的點陣為:寬x高=16x16 --*/
47 0x08,0x08,0x88,0xFF,0x48,0x28,0x00,0xC8,0x48,0x48,0x7F,0x48,0xC8,0x48,0x08,0x00,
48 0x01,0x41,0x80,0x7F,0x00,0x40,0x40,0x20,0x13,0x0C,0x0C,0x12,0x21,0x60,0x20,0x00
49 };
50
51 unsigned char code da[]={
52 /*-- 文字: 大 --*/
53 /*-- 宋體12; 此字體下對應的點陣為:寬x高=16x16 --*/
54 0x20,0x20,0x20,0x20,0x20,0x20,0xA0,0x7F,0xA0,0x20,0x20,0x20,0x20,0x20,0x20,0x00,
55 0x00,0x80,0x40,0x20,0x10,0x0C,0x03,0x00,0x01,0x06,0x08,0x30,0x60,0xC0,0x40,0x00
C51 COMPILER V8.02 YJSY 05/23/2006 16:10:09 PAGE 2
56 };
57
58 unsigned char code xue[]={
59 /*-- 文字: 學 --*/
60 /*-- 宋體12; 此字體下對應的點陣為:寬x高=16x16 --*/
61 0x40,0x30,0x10,0x12,0x5C,0x54,0x50,0x51,0x5E,0xD4,0x50,0x18,0x57,0x32,0x10,0x00,
62 0x00,0x02,0x02,0x02,0x02,0x02,0x42,0x82,0x7F,0x02,0x02,0x02,0x02,0x02,0x02,0x00
63 };
64
65 unsigned char code xin[]={
66 /*-- 文字: 信 --*/
67 /*-- 宋體12; 此字體下對應的點陣為:寬x高=16x16 --*/
68 0x80,0x40,0x30,0xFC,0x07,0x0A,0xA8,0xA8,0xA9,0xAE,0xAA,0xA8,0xA8,0x08,0x08,0x00,
69 0x00,0x00,0x00,0x7F,0x00,0x00,0x7E,0x22,0x22,0x22,0x22,0x22,0x7E,0x00,0x00,0x00
70 };
71
72 unsigned char code xi[]={
73 /*-- 文字: 息 --*/
74 /*-- 宋體12; 此字體下對應的點陣為:寬x高=16x16 --*/
75 0x00,0x00,0x00,0xFC,0x54,0x54,0x56,0x55,0x54,0x54,0x54,0xFC,0x00,0x00,0x00,0x00,
76 0x00,0x20,0x38,0x01,0x3D,0x41,0x41,0x45,0x59,0x41,0x41,0x71,0x00,0x08,0x30,0x00
77 };
78
79 unsigned char code dian[]={
80 /*-- 文字: 電 --*/
81 /*-- 宋體12; 此字體下對應的點陣為:寬x高=16x16 --*/
82 0x00,0x00,0xF8,0x48,0x48,0x48,0x48,0xFF,0x48,0x48,0x48,0x48,0xF8,0x00,0x00,0x00,
83 0x00,0x00,0x0F,0x04,0x04,0x04,0x04,0x3F,0x44,0x44,0x44,0x44,0x4F,0x40,0x70,0x00
84 };
85
86 unsigned char code qi[]={
87 /*-- 文字: 氣 --*/
88 /*-- 宋體12; 此字體下對應的點陣為:寬x高=16x16 --*/
89 0x00,0x20,0x10,0x8C,0xA7,0xA4,0xA4,0xA4,0xA4,0xA4,0xA4,0xA4,0x24,0x04,0x04,0x00,
90 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0F,0x30,0x40,0xF0,0x00
91 };
92
93 unsigned char code gong[]={
94 /*-- 文字: 工 --*/
95 /*-- 宋體12; 此字體下對應的點陣為:寬x高=16x16 --*/
96 0x00,0x00,0x02,0x02,0x02,0x02,0x02,0xFE,0x02,0x02,0x02,0x02,0x02,0x02,0x00,0x00,
97 0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x3F,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x00
98 };
99
100 unsigned char code ceng[]={
101 /*-- 文字: 程 --*/
102 /*-- 宋體12; 此字體下對應的點陣為:寬x高=16x16 --*/
103 0x10,0x12,0xD2,0xFE,0x91,0x11,0x80,0xBF,0xA1,0xA1,0xA1,0xA1,0xBF,0x80,0x00,0x00,
104 0x04,0x03,0x00,0xFF,0x00,0x41,0x44,0x44,0x44,0x7F,0x44,0x44,0x44,0x44,0x40,0x00
105 };
106
107 //unsigned char code xue2[]={
108 /*-- 文字: 學 --*/
109 /*-- 宋體12; 此字體下對應的點陣為:寬x高=16x16 --
110 0x40,0x30,0x10,0x12,0x5C,0x54,0x50,0x51,0x5E,0xD4,0x50,0x18,0x57,0x32,0x10,0x00,
111 0x00,0x02,0x02,0x02,0x02,0x02,0x42,0x82,0x7F,0x02,0x02,0x02,0x02,0x02,0x02,0x00
112 };
113 */
114 unsigned char code yuan[]={
115 /*-- 文字: 院 --*/
116 /*-- 宋體12; 此字體下對應的點陣為:寬x高=16x16 --*/
117 0xFE,0x02,0x32,0x4A,0x86,0x0C,0x24,0x24,0x25,0x26,0x24,0x24,0x24,0x0C,0x04,0x00,
C51 COMPILER V8.02 YJSY 05/23/2006 16:10:09 PAGE 3
118 0xFF,0x00,0x02,0x04,0x83,0x41,0x31,0x0F,0x01,0x01,0x7F,0x81,0x81,0x81,0xF1,0x00
119 };
120
121 unsigned char code zi[]={
122 /*-- 文字: 自 --*/
123 /*-- 宋體12; 此字體下對應的點陣為:寬x高=16x16 --*/
124 0x00,0x00,0x00,0xF8,0x48,0x48,0x4C,0x4B,0x4A,0x48,0x48,0x48,0xF8,0x00,0x00,0x00,
125 0x00,0x00,0x00,0xFF,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0xFF,0x00,0x00,0x00
126 };
127
128 unsigned char code dong[]={
129 /*-- 文字: 動 --*/
130 /*-- 宋體12; 此字體下對應的點陣為:寬x高=16x16 --*/
131 0x20,0x24,0x24,0xE4,0x24,0x24,0x24,0x20,0x10,0x10,0xFF,0x10,0x10,0xF0,0x00,0x00,
132 0x08,0x1C,0x0B,0x08,0x0C,0x05,0x4E,0x24,0x10,0x0C,0x03,0x20,0x40,0x3F,0x00,0x00
133 };
134
135 unsigned char code hua[]={
136 /*-- 文字: 化 --*/
137 /*-- 宋體12; 此字體下對應的點陣為:寬x高=16x16 --*/
138 0x80,0x40,0x20,0xF8,0x07,0x02,0x00,0x00,0xFF,0xC0,0x60,0x30,0x1C,0x08,0x00,0x00,
139 0x00,0x00,0x00,0x7F,0x00,0x04,0x02,0x01,0x3F,0x40,0x40,0x40,0x40,0x78,0x00,0x00
140 };
141
142 unsigned char code xi2[]={
143 /*-- 文字: 系 --*/
144 /*-- 宋體12; 此字體下對應的點陣為:寬x高=16x16 --*/
145 0x00,0x00,0x02,0x22,0xB2,0xAA,0x66,0x62,0x22,0x11,0x4D,0x81,0x01,0x01,0x00,0x00,
146 0x00,0x40,0x21,0x13,0x09,0x05,0x41,0x81,0x7F,0x01,0x05,0x09,0x13,0x62,0x00,0x00
147 };
148
149 unsigned char code w[]={
150 /*-- 文字: w --*/
151 /*-- 宋體12; 此字體下對應的點陣為:寬x高=8x16 --*/
152 0x80,0x80,0x00,0x80,0x00,0x80,0x80,0x80,0x0F,0x30,0x0C,0x03,0x0C,0x30,0x0F,0x00
153 };
154
155 unsigned char code h[]={
156 /*-- 文字: h --*/
157 /*-- 宋體12; 此字體下對應的點陣為:寬x高=8x16 --*/
158 0x08,0xF8,0x00,0x80,0x80,0x80,0x00,0x00,0x20,0x3F,0x21,0x00,0x00,0x20,0x3F,0x20
159 };
160
161 unsigned char code o[]={
162 /*-- 文字: o --*/
163 /*-- 宋體12; 此字體下對應的點陣為:寬x高=8x16 --*/
164 0x00,0x00,0x80,0x80,0x80,0x80,0x00,0x00,0x00,0x1F,0x20,0x20,0x20,0x20,0x1F,0x00
165 };
166
167 unsigned char code a[]={
168 /*-- 文字: a --*/
169 /*-- 宋體12; 此字體下對應的點陣為:寬x高=8x16 --*/
170 0x00,0x00,0x80,0x80,0x80,0x80,0x00,0x00,0x00,0x19,0x24,0x22,0x22,0x22,0x3F,0x20
171 };
172
173 unsigned char code m[]={
174 /*-- 文字: m --*/
175 /*-- 宋體12; 此字體下對應的點陣為:寬x高=8x16 --*/
176 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x00,0x20,0x3F,0x20,0x00,0x3F,0x20,0x00,0x3F
177 };
178
179 unsigned char code i[]={
C51 COMPILER V8.02 YJSY 05/23/2006 16:10:09 PAGE 4
180 /*-- 文字: i --*/
181 /*-- 宋體12; 此字體下對應的點陣為:寬x高=8x16 --*/
182 0x00,0x80,0x98,0x98,0x00,0x00,0x00,0x00,0x00,0x20,0x20,0x3F,0x20,0x20,0x00,0x00
183 };
184
185 unsigned char code pic1[]={
186 /*-- 調(diào)入了一幅圖像:G:\電子資料\液晶顯示\液晶圖片\216.bmp --*/
187 /*-- 寬度x高度=128x64 --*/
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -