📄 lcd1602_main.lst
字号:
C51 COMPILER V8.02 LCD1602_MAIN 04/11/2007 22:47:38 PAGE 1
C51 COMPILER V8.02, COMPILATION OF MODULE LCD1602_MAIN
OBJECT MODULE PLACED IN lcd1602_main.OBJ
COMPILER INVOKED BY: D:\Program Files\Keil\C51\BIN\C51.EXE lcd1602_main.c BROWSE DEBUG OBJECTEXTEND
line level source
1 /******************************************************************************************
2 This function is used for LCD1602, using 4 bits to translate between the units.
3 DB4-7 connects to P4-7, and E connects to P2.0, RS connects to P2.1, R/W connects to P2.2.
4 If you want to revise them to adapt to your hardware, revise them in file lcd1602.h.
5 *******************************************************************************************/
6
7 #include <reg51.h>
8 #include <intrins.h>
9 #include <string.h>
10 #include "lcd1602.h"
11
12
13 //interrupt
14
15
16 void main(void)
17 {
18 1 uchar Buff2[] = {0x5a, 0x68, 0x61, 0x6e, 0x67, 0x20, 0x58, 0x69, 0x61, 0x6f, 0x63, 0x68, 0x65, 0x6e, 0x6
-7};
19 1 // uchar Buff3[] = "Hi, mcu!";
20 1
21 1 //initialization
22 1 ini_lcd1602();
23 1
24 1 //main
25 1 wr_byte_ram (1, 0x00, 'Z');
26 1 wr_length_ram (1, 0x40, Buff2, 15);
27 1 wr_length_ram (1, 0x03, "the king", 8);
28 1
29 1 while(1);
30 1
31 1 }
MODULE INFORMATION: STATIC OVERLAYABLE
CODE SIZE = 75 ----
CONSTANT SIZE = 24 ----
XDATA SIZE = ---- ----
PDATA SIZE = ---- ----
DATA SIZE = ---- 15
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 + -