基于51单片机系统

源代码在线查看: command.lst

软件大小: 30 K
上传用户: arnoldzhw
关键词: 51单片机
下载地址: 免注册下载 普通下载 VIP

相关代码

				C51 COMPILER V8.02   COMMAND                                                               03/07/2008 18:56:32 PAGE 1   
				
				
				C51 COMPILER V8.02, COMPILATION OF MODULE COMMAND
				OBJECT MODULE PLACED IN command.OBJ
				COMPILER INVOKED BY: D:\Keil C51\C51\BIN\C51.EXE command.c BROWSE DEBUG OBJECTEXTEND
				
				line level    source
				
				   1          #include 
				   2          #include "define.h"
				   3          
				   4          void Delay(unsigned int n)
				   5          {
				   6   1              unsigned int i;
				   7   1              for(i=0; i				   8   1      }
				   9          
				  10          void LCDInitial()
				  11          {
				  12   1              RS = 0;
				  13   1              RW = 0;
				  14   1      
				  15   1              DATA = 0x3c;
				  16   1              E = 1;
				  17   1              Delay(10);
				  18   1              E = 0;
				  19   1      
				  20   1              Delay(100);
				  21   1      
				  22   1              DATA = 0x0e;
				  23   1              E = 1;
				  24   1              Delay(10);
				  25   1              E = 0;
				  26   1      
				  27   1              Delay(100);
				  28   1      
				  29   1              DATA = 0x06;
				  30   1              E = 1;
				  31   1              Delay(10);
				  32   1              E = 0;
				  33   1      
				  34   1              Delay(100);
				  35   1      
				  36   1              DATA = 0x01;
				  37   1              E = 1;
				  38   1              Delay(10);
				  39   1              E = 0;
				  40   1      
				  41   1              Delay(5000);
				  42   1      
				  43   1              DATA = 0x80;       
				  44   1              E = 1;
				  45   1              Delay(10);
				  46   1              E = 0;
				  47   1      
				  48   1              Delay(100);
				  49   1      }
				  50          
				  51          void ClearScr()
				  52          {
				  53   1              RS = 0;
				  54   1              RW = 0;
				  55   1      
				C51 COMPILER V8.02   COMMAND                                                               03/07/2008 18:56:32 PAGE 2   
				
				  56   1              DATA = 0x01;
				  57   1      
				  58   1              E = 1;
				  59   1              Delay(10);
				  60   1              E = 0;
				  61   1      
				  62   1              Delay(5000);
				  63   1      }
				  64          
				  65          void ShiftLeft()
				  66          {
				  67   1              RS = 0;
				  68   1              RW = 0;
				  69   1      
				  70   1              DATA = 0x18;
				  71   1              E = 1;
				  72   1              Delay(10);
				  73   1              E = 0;
				  74   1      
				  75   1              Delay(100);
				  76   1      }
				  77          
				  78          void SetDDRAM(unsigned char addr)
				  79          {
				  80   1              RS = 0;
				  81   1              RW = 0;
				  82   1              
				  83   1              DATA = addr | 0x80;
				  84   1              E = 1;
				  85   1              Delay(10);
				  86   1              E = 0;
				  87   1      
				  88   1              Delay(100);     
				  89   1      }
				  90          
				  91          void WriteData(unsigned char LCDdata)
				  92          {
				  93   1              RS = 1;
				  94   1              RW = 0;
				  95   1      
				  96   1              E = 1;
				  97   1              DATA = LCDdata; 
				  98   1              Delay(10);
				  99   1              E = 0;
				 100   1              
				 101   1              Delay(100);             
				 102   1      }
				
				
				MODULE INFORMATION:   STATIC OVERLAYABLE
				   CODE SIZE        =    180    ----
				   CONSTANT SIZE    =   ----    ----
				   XDATA SIZE       =   ----    ----
				   PDATA SIZE       =   ----    ----
				   DATA SIZE        =   ----    ----
				   IDATA SIZE       =   ----    ----
				   BIT SIZE         =   ----    ----
				END OF MODULE INFORMATION.
				
				
				C51 COMPILATION COMPLETE.  0 WARNING(S),  0 ERROR(S)
							

相关资源