DS1302时钟DS18B20+无线遥控应用

源代码在线查看: 花样2.lst

软件大小: 62 K
上传用户: zxj334
关键词: DS 1302 18 20
下载地址: 免注册下载 普通下载 VIP

相关代码

				C51 COMPILER V7.20   籣样2                                                                 12/11/2007 10:07:22 PAGE 1   
				
				
				C51 COMPILER V7.20, COMPILATION OF MODULE 籣样2
				OBJECT MODULE PLACED IN 花样2.OBJ
				COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE 花样2.c BROWSE DEBUG OBJECTEXTEND
				
				line level    source
				
				   1          //花样流水灯
				   2          //显示步骤如下:
				   3                             //数码管    LED(D1,D2......D7,D8),(1表示LED亮,0表示LED灭)
				   4                             //0000      1111 1111   FF 花样一
				   5                             //1111      0111 1110   7E
				   6                             //2222      1011 1101   BD
				   7                             //3333      1101 1011   DB
				   8                             //4444      1110 0111   E7
				   9                             //5555      1101 1011   DB
				  10                             //6666      1011 1101   BD
				  11                             //7777      0111 1110   7E 
				  12                             //8888      0011 1100   3C
				  13                             //9999      0001 1000   18
				  14                             //AAAA      0000 0000   00
				  15                             //BBBB      0001 1000   18
				  16                             //CCCC      0011 1100   3C
				  17                             //EEEE      0111 1110   7E
				  18                             //FFFF      1011 1111   FD 花样二
				  19                             //0000      1101 1111   FB
				  20                             //1111      1110 1111   F7
				  21                             //2222      1111 0111   EF
				  22                             //3333      1111 1011   DF
				  23                             //4444      1111 1101   BF
				  24                             //5555      1111 1110   7F
				  25                             //6666      1111 1101   BF
				  26                             //7777      1111 1011   DF
				  27                             //8888      1111 0111   EF
				  28                             //9999      1110 1111   F7
				  29                             //AAAA      1101 1111   FB
				  30                             //BBBB      1011 1111   FD
				  31                             //CCCC      0111 1111   FE 花样三
				  32                             //DDDD      0011 1111   FC
				  33                             //EEEE      0001 1111   F8
				  34                             //FFFF      0000 1111   F0
				  35                             //0000      0000 0111   E0
				  36                             //1111      0000 0011   C0
				  37                             //2222      0000 0001   80
				  38                             //3333      0000 0000   00
				  39                             //4444      1000 0000   01
				  40                             //5555      1100 0000   03
				  41                             //6666      1110 0000   07
				  42                             //7777      1111 0000   0F
				  43                             //8888      1111 1000   1F
				  44                             //9999      1111 1100   3F
				  45                             //AAAA      1111 1110   7F
				  46                             //BBBB      1111 1100   3F
				  47                             //CCCC      1111 1000   1F
				  48                             //DDDD      1111 0000   0F
				  49                             //EEEE      1110 0000   07
				  50                             //FFFF      1100 0000   03
				  51                             //0000      1000 0000   01
				  52                             //1111      0000 0000   00
				  53          #include 
				  54          void main(void)
				  55          {//定义花样
				C51 COMPILER V7.20   籣样2                                                                 12/11/2007 10:07:22 PAGE 2   
				
				  56   1                                          //花样一                                                              
				             -//花样二
				  57   1         const unsigned char designa[49]={0xFF,0x7E,0xBD,0xDB,0xE7,0xDB,0xBD,0x7E,0x3C,0x18,0x00,0x18,0x3C,0x7E,
				             -0xFD,0xFB,0xF7,0xEF,0xDF,
				  58   1                                          0xBF,0x7F,0xBF,0xDF,0xEF,0xF7,0xFB,0xFD,0xFE,0xFC,0xF8,0xF0,0xE0,0xC0,
				             -0x80,0x00,0x01,0x03,0x07,
				  59   1                                                                              0x0F,0x1F,0x3F,0x7F,0x3F,0x1F,0x0F,0x07,0x03,0x01,0x0};                   //花样三
				  60   1         const unsigned char designb[19]={0x28,0xEB,0x32,0xA2,0xE1,0xA4,0x24,0xEA,0x20,0xE0,0x40,0x00,0x1C,0x08,
				             -0x14,0x54,0x00};
				  61   1                                         //0     1    2   3    4    5     6    7   8    9    A     B   C    D   
				             - E     F   
				  62   1          unsigned int a; //定义循环用的变量
				  63   1              unsigned char b; //在C51 编程中因内存有限尽可能注意变量类型的使用
				  64   1              //尽可能使用少字节的类型,在大型的程序中很受用
				  65   1              do
				  66   1              {
				  67   2          for (b=0; b				  68   2              {                                        
				  69   3                 for (a=1; a				  70   3                 P1 = designa[b];//读已定义的花样数据并写花样数据到P1口,
				  71   3                      // P0 = designb[b];//读已定义的花样数据并写花样数据到P0口,(未启用)
				  72   3                         //数码管与LED同步显示进行的步骤0000 1111 2222 3333 4444 5555 6666 7777
				  73   3                         
				  74   3                         P2 = 0;
				  75   3              }                                                        
				  76   2         }while(1);
				  77   1      }
				
				
				MODULE INFORMATION:   STATIC OVERLAYABLE
				   CODE SIZE        =     71    ----
				   CONSTANT SIZE    =     68    ----
				   XDATA SIZE       =   ----    ----
				   PDATA SIZE       =   ----    ----
				   DATA SIZE        =   ----      68
				   IDATA SIZE       =   ----    ----
				   BIT SIZE         =   ----    ----
				END OF MODULE INFORMATION.
				
				
				C51 COMPILATION COMPLETE.  0 WARNING(S),  0 ERROR(S)
							

相关资源