⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 zsp.lst

📁 单片机智能化产品-c语言实例详解,里面有很多程序,讲得很详细,绝对可以直接用,还有电路图pcb文件!详情请看这本书目录
💻 LST
字号:
C51 COMPILER V7.06   ZSP                                                                   11/18/2005 20:37:42 PAGE 1   


C51 COMPILER V7.06, COMPILATION OF MODULE ZSP
OBJECT MODULE PLACED IN zsp.OBJ
COMPILER INVOKED BY: C:\KEIL\C51\BIN\C51.EXE zsp.c BROWSE DEBUG OBJECTEXTEND

stmt level    source

   1          #include <AT892051.H>
   2          #define uchar unsigned char
   3          #define uint unsigned int
   4          #define SPEED 3
   5          uchar col,disrow;
   6          uint word;
   7          uchar code HZ[];
   8          uchar BUFF[6];
   9          void loadoneline(void);
  10          void sendoneline(void);
  11          /*******根据列指针,由双字节合并为单字节的子程序模块************/
  12          uchar two_onebyte(uchar h1,uchar h2)
  13          {
  14   1      uchar temp,tempcol;
  15   1      if(col<8) tempcol=col;
  16   1      else tempcol=col-8;
  17   1      temp=(h1<<tempcol)|(h2>>(8-tempcol));
  18   1      temp=255-temp;
  19   1      return temp;
  20   1      }
  21          /****************************主函数***************************/
  22          void main(void)
  23          {
  24   1      uchar i;
  25   1      col=0;word=0;
  26   1      while(1)
  27   1      {
  28   2              while(col<16)// 循环16次,点亮并移动一个汉字
  29   2              {
  30   3                      for(i=0;i<SPEED;i++)//汉字在屏幕上的停留时间(即移动速度快慢)
  31   3                      {
  32   4                              for(disrow=0;disrow<16;disrow++)//扫描16行
  33   4                              {
  34   5                              loadoneline();//装载一线点阵数据
  35   5                              sendoneline();//发送一线点阵数据
  36   5                              P1=0x10+disrow;// 点亮屏幕
  37   5                              P1=0x20+disrow;
  38   5                              }
  39   4                      }
  40   3              col++;  //列指针递增
  41   3              }
  42   2      col=0;word=word+32;// 一个汉字移动后,指向下一个汉字
  43   2      if(word>=1600)word=0;// 移动50个汉字后,重新开始
  44   2      }
  45   1      }
  46          /**************装载一线点阵数据****************/
  47          void loadoneline(void)
  48          {
  49   1      uchar s;
  50   1              for(s=0;s<3;s++)
  51   1              {
  52   2              BUFF[2*s]=HZ[word+32*s+2*disrow];
  53   2              BUFF[2*s+1]=HZ[word+1+32*s+2*disrow];
  54   2              }
  55   1      }
C51 COMPILER V7.06   ZSP                                                                   11/18/2005 20:37:42 PAGE 2   

  56          /***************发送一线点阵数据*******************/
  57          void sendoneline(void)
  58          {
  59   1      char s;uchar inc;
  60   1      if(col<8)inc=0;else inc=1;
  61   1              for(s=4+inc;s>=0+inc;s--)
  62   1              {
  63   2              SBUF=two_onebyte(BUFF[s],BUFF[s+1]);
  64   2              while(!TI);TI=0;
  65   2              }
  66   1      }
  67          /***********************汉字点阵码*************************/
  68          uchar code HZ[]=
  69          {
  70          0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  71          0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  72          0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  73          0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  74          //=============================================================================
  75          0x00,0x08,0x00,0x12,0x00,0x24,0x00,0x48,0x00,0x90,0x01,0x20,0x02,0x40,0x04,0x80,
  76          0x02,0x40,0x01,0x20,0x00,0x90,0x00,0x48,0x00,0x24,0x00,0x12,0x00,0x08,0x00,0x04,/*"《",0*/
  77          0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFE,
  78          0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,/*"-",1*/
  79          0x00,0x08,0x00,0x12,0x00,0x24,0x00,0x48,0x00,0x90,0x01,0x20,0x02,0x40,0x04,0x80,
  80          0x02,0x40,0x01,0x20,0x00,0x90,0x00,0x48,0x00,0x24,0x00,0x12,0x00,0x08,0x00,0x04,/*"《",2*/
  81          0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFE,
  82          0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,/*"-",3*/
  83          0x00,0x08,0x00,0x12,0x00,0x24,0x00,0x48,0x00,0x90,0x01,0x20,0x02,0x40,0x04,0x80,
  84          0x02,0x40,0x01,0x20,0x00,0x90,0x00,0x48,0x00,0x24,0x00,0x12,0x00,0x08,0x00,0x04,/*"《",4*/
  85          0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFE,
  86          0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,/*"-",5*/
  87          //**************************************************************************
  88          0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  89          0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  90          0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  91          0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  92          /****************************************************************************/
  93          0x08,0x20,0x06,0x30,0x04,0x40,0x3F,0xF8,0x21,0x08,0x3F,0xF8,0x21,0x08,0x21,0x08,
  94          0x3F,0xF8,0x21,0x08,0x01,0x00,0xFF,0xFE,0x01,0x00,0x01,0x00,0x01,0x00,0x01,0x00,/*"单",0*/
  95          0x00,0x40,0x10,0x40,0x10,0x40,0x10,0x44,0x1F,0xFE,0x10,0x00,0x10,0x00,0x10,0x00,
  96          0x1F,0xF0,0x10,0x10,0x10,0x10,0x10,0x10,0x20,0x10,0x20,0x10,0x40,0x10,0x80,0x10,/*"片",1*/
  97          0x10,0x00,0x10,0xF8,0x10,0x88,0xFE,0x88,0x10,0x88,0x10,0x88,0x38,0x88,0x34,0x88,
  98          0x54,0x88,0x50,0x88,0x91,0x08,0x11,0x0A,0x12,0x0A,0x12,0x0A,0x14,0x06,0x10,0x00,/*"机",2*/
  99          0x00,0x00,0x0F,0xF0,0x08,0x10,0x0F,0xF0,0x08,0x10,0x0F,0xF0,0x08,0x10,0x0F,0xF0,
 100          0x08,0x10,0x08,0x10,0xFF,0xFE,0x04,0x00,0x06,0x20,0x0C,0x10,0x10,0x18,0x20,0x08,/*"具",3*/
 101          0x01,0x00,0x01,0x00,0x7F,0xFE,0x02,0x00,0x04,0x00,0x0F,0xF0,0x18,0x10,0x28,0x10,
 102          0x4F,0xF0,0x88,0x10,0x08,0x10,0x0F,0xF0,0x08,0x10,0x08,0x90,0x08,0x70,0x08,0x20,/*"有",4*/
 103          0x10,0x40,0x18,0x40,0x10,0x40,0x20,0x40,0x37,0xFC,0x60,0xC0,0xA0,0xE0,0x21,0x60,
 104          0x21,0x50,0x22,0x48,0x24,0x4E,0x2B,0xF4,0x20,0x40,0x20,0x40,0x20,0x40,0x00,0x00,/*"体",5*/
 105          0x0C,0x00,0x71,0xFC,0x11,0x04,0x11,0x04,0xFD,0x04,0x11,0x04,0x39,0x04,0x35,0x04,
 106          0x55,0xFC,0x50,0x00,0x90,0x90,0x10,0x88,0x11,0x04,0x11,0x06,0x12,0x02,0x14,0x02,/*"积",6*/
 107          0x01,0x00,0x01,0x00,0x01,0x00,0x01,0x00,0x09,0x40,0x0D,0x20,0x19,0x10,0x11,0x18,
 108          0x21,0x0C,0x41,0x06,0x81,0x04,0x01,0x00,0x01,0x00,0x01,0x00,0x05,0x00,0x02,0x00,/*"小",7*/
 109          0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 110          0x00,0x00,0x00,0x00,0x00,0x00,0x60,0x00,0x30,0x00,0x10,0x00,0x00,0x00,0x00,0x00,/*"、",8*/
 111          0x00,0x20,0x00,0x20,0x7F,0x20,0x08,0x20,0x0B,0xFC,0x08,0x24,0x08,0x24,0x08,0x44,
 112          0x09,0x44,0x0E,0x44,0xF0,0x84,0x40,0x84,0x01,0x04,0x02,0x78,0x04,0x10,0x00,0x00,/*"功",9*/
 113          0x20,0x40,0x30,0x40,0x24,0x4C,0x42,0x70,0xFF,0x44,0x42,0x46,0x00,0x7C,0x7E,0x00,
 114          0x42,0x40,0x7E,0x4C,0x42,0x70,0x7E,0x40,0x42,0x44,0x42,0x46,0x4A,0x3C,0x44,0x00,/*"能",10*/
 115          0x00,0x00,0x79,0xF8,0x09,0x08,0x09,0x08,0x79,0xF8,0x40,0x40,0x43,0xFC,0x42,0x44,
 116          0x7A,0x44,0x0A,0x44,0x0B,0xFC,0x08,0x40,0x08,0x48,0x08,0x44,0x28,0x7E,0x13,0xC4,/*"强",11*/
 117          0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
C51 COMPILER V7.06   ZSP                                                                   11/18/2005 20:37:42 PAGE 3   

 118          0x00,0x00,0x00,0x00,0x00,0x00,0x60,0x00,0x30,0x00,0x10,0x00,0x00,0x00,0x00,0x00,/*"、",12*/
 119          0x01,0x00,0x00,0x80,0x3F,0xFC,0x20,0x00,0x22,0x00,0x21,0x08,0x30,0x8C,0x28,0xC8,
 120          0x24,0x90,0x24,0x90,0x26,0x20,0x44,0x20,0x40,0x40,0x5F,0xFE,0x80,0x00,0x00,0x00,/*"应",13*/
 121          0x00,0x00,0x1F,0xFC,0x10,0x84,0x10,0x84,0x10,0x84,0x1F,0xFC,0x10,0x84,0x10,0x84,
 122          0x10,0x84,0x1F,0xFC,0x10,0x84,0x10,0x84,0x20,0x84,0x20,0x84,0x40,0x94,0x80,0x88,/*"用",14*/
 123          0x00,0x00,0x7F,0xFE,0x02,0x00,0x04,0x00,0x3F,0xFC,0x24,0x44,0x24,0x44,0x27,0xC4,
 124          0x24,0x44,0x24,0x44,0x27,0xC4,0x24,0x44,0x24,0x44,0x3F,0xFC,0x20,0x04,0x00,0x00,/*"面",15*/
 125          0x01,0x00,0x00,0x80,0x3F,0xFE,0x20,0x00,0x20,0x00,0x20,0x00,0x20,0x00,0x20,0x00,
 126          0x20,0x00,0x20,0x00,0x20,0x00,0x20,0x00,0x40,0x00,0x40,0x00,0x80,0x00,0x00,0x00,/*"广",16*/
 127          0x20,0x80,0x3E,0xFC,0x28,0xA0,0x45,0x10,0x85,0x10,0x3F,0xF8,0x01,0x00,0xFF,0xFE,
 128          0x00,0x20,0x00,0x20,0x7F,0xFC,0x04,0x20,0x02,0x20,0x02,0x20,0x00,0xA0,0x00,0x40,/*"等",17*/
 129          0x10,0x80,0x18,0xA0,0x10,0x98,0x20,0x90,0x37,0xFC,0x61,0x40,0xA1,0x40,0x21,0x40,
 130          0x21,0x40,0x21,0x40,0x21,0x40,0x22,0x44,0x22,0x44,0x24,0x46,0x28,0x3C,0x20,0x00,/*"优",18*/
 131          0x01,0x00,0x01,0x00,0x01,0xF8,0x01,0x00,0x01,0x10,0x1F,0xF8,0x10,0x10,0x10,0x10,
 132          0x10,0x10,0x1F,0xF0,0x10,0x10,0x01,0x10,0x28,0x88,0x24,0x44,0x44,0x44,0x00,0x00,/*"点",19*/
 133          0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 134          0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x00,0x30,0x00,0x10,0x00,0x20,0x00,0x00,0x00,/*",",20*/
 135          0x00,0x00,0x1F,0xF8,0x10,0x08,0x10,0x08,0x10,0x08,0x1F,0xF8,0x10,0x08,0x10,0x08,
 136          0x10,0x08,0x1F,0xF8,0x10,0x08,0x10,0x08,0x10,0x08,0x1F,0xF8,0x10,0x08,0x00,0x00,/*"目",21*/
 137          0x08,0x10,0x06,0x18,0x04,0x20,0xFF,0xFE,0x00,0x00,0x3E,0x08,0x22,0x48,0x3E,0x48,
 138          0x22,0x48,0x22,0x48,0x3E,0x48,0x22,0x48,0x22,0x48,0x2A,0x08,0x24,0x28,0x00,0x10,/*"前",22*/
 139          0x00,0x00,0x7F,0xFE,0x00,0x80,0x00,0x80,0x00,0x80,0x00,0x80,0x10,0x80,0x10,0xFC,
 140          0x10,0x80,0x10,0x80,0x10,0x80,0x10,0x80,0x10,0x80,0xFF,0xFE,0x00,0x00,0x00,0x00,/*"正",23*/
 141          0x00,0x10,0x24,0x10,0x22,0x10,0x23,0x10,0x22,0x10,0x20,0x10,0x20,0x10,0x21,0x10,
 142          0x22,0x10,0x2C,0x30,0x38,0x30,0x70,0x68,0x20,0xC4,0x01,0x07,0x06,0x02,0x00,0x00,/*"以",24*/
 143          0x08,0x10,0x06,0x18,0x04,0x20,0xFF,0xFE,0x00,0x00,0x3E,0x08,0x22,0x48,0x3E,0x48,
 144          0x22,0x48,0x22,0x48,0x3E,0x48,0x22,0x48,0x22,0x48,0x2A,0x08,0x24,0x28,0x00,0x10,/*"前",25*/
 145          0x0E,0x1E,0x70,0xE0,0x40,0x80,0x40,0x80,0x7C,0x80,0x44,0xFE,0x44,0x88,0x44,0x88,
 146          0x7C,0x88,0x40,0x88,0x41,0x08,0x41,0x08,0x42,0x08,0x42,0x08,0x84,0x08,0x08,0x08,/*"所",26*/
 147          0x01,0x00,0x01,0x00,0x01,0x00,0x3F,0xF8,0x01,0x00,0x01,0x00,0xFF,0xFE,0x03,0x00,
 148          0x03,0x80,0x05,0x40,0x05,0x20,0x09,0x18,0x31,0x0E,0xC1,0x04,0x01,0x00,0x01,0x00,/*"未",27*/
 149          0x1F,0xF0,0x10,0x10,0x10,0x10,0x11,0x10,0x11,0x10,0x11,0x10,0x11,0x10,0x11,0x10,
 150          0x12,0x90,0x02,0x80,0x04,0x80,0x04,0x84,0x08,0x84,0x30,0x86,0xC0,0x7C,0x00,0x00,/*"见",28*/
 151          0x10,0x80,0x10,0x80,0x20,0x80,0x7C,0xFC,0x45,0x04,0x45,0x04,0x46,0x04,0x7C,0x84,
 152          0x44,0x44,0x44,0x64,0x44,0x24,0x44,0x04,0x7C,0x04,0x44,0x28,0x40,0x10,0x00,0x00,/*"的",29*/
 153          0x00,0x80,0x40,0x80,0x2F,0xFC,0x20,0x80,0x00,0x80,0x07,0xF8,0xE4,0x88,0x24,0x88,
 154          0x27,0xF8,0x21,0xA0,0x22,0x98,0x2C,0x88,0x20,0x80,0x50,0x80,0x8F,0xFE,0x00,0x00,/*"速",30*/
 155          0x01,0x00,0x00,0x80,0x3F,0xFE,0x22,0x20,0x22,0x20,0x2F,0xFC,0x22,0x20,0x23,0xE0,
 156          0x20,0x00,0x27,0xF8,0x22,0x10,0x21,0x20,0x20,0xC0,0x41,0x30,0x46,0x0E,0x98,0x04,/*"度",31*/
 157          0x00,0x00,0xFF,0x80,0x22,0x7E,0x22,0x44,0x3E,0x44,0x22,0x44,0x22,0x44,0x3E,0x28,
 158          0x22,0x28,0x22,0x90,0x27,0x10,0x3A,0x28,0xC2,0x46,0x02,0x84,0x02,0x00,0x02,0x00,/*"取",32*/
 159          0x11,0x00,0x19,0x20,0x11,0x10,0x11,0x08,0x21,0xFC,0x3F,0x00,0x50,0x80,0x90,0x80,
 160          0x10,0x80,0x10,0x40,0x10,0x40,0x10,0x24,0x10,0x14,0x10,0x0C,0x10,0x06,0x00,0x00,/*"代",33*/
 161          0x08,0x10,0x04,0x20,0x7F,0xFE,0x01,0x00,0x3F,0xF8,0x01,0x00,0x7F,0xFE,0x02,0x00,
 162          0x07,0xF8,0x0C,0x08,0x37,0xF8,0xC4,0x08,0x07,0xF8,0x04,0x08,0x07,0xF8,0x04,0x08,/*"着",34*/
 163          0x10,0x40,0x18,0x48,0x17,0xFC,0x20,0x40,0x20,0x80,0x60,0x84,0xAF,0xFE,0x20,0x80,
 164          0x21,0x08,0x23,0xFC,0x20,0x08,0x21,0x10,0x20,0xA0,0x20,0x40,0x20,0x20,0x00,0x00,/*"传",35*/
 165          0x10,0x40,0x10,0x20,0x23,0xFE,0x20,0x40,0x44,0x40,0xF8,0x88,0x09,0x04,0x13,0xFE,
 166          0x20,0x94,0x7C,0x90,0x00,0x90,0x00,0x90,0x1D,0x12,0xE1,0x12,0x02,0x0E,0x04,0x00,/*"统",36*/
 167          0x01,0x00,0x01,0x00,0x01,0x00,0x3F,0xF8,0x21,0x08,0x21,0x08,0x3F,0xF8,0x21,0x08,
 168          0x21,0x08,0x21,0x08,0x3F,0xF8,0x21,0x08,0x01,0x02,0x01,0x02,0x00,0xFE,0x00,0x00,/*"电",37*/
 169          /********************************************************************************/
 170          0x08,0x40,0x0C,0x40,0x08,0x40,0x17,0xFC,0x10,0x40,0x33,0xFC,0x30,0x40,0x50,0x40,
 171          0x97,0xFC,0x10,0x44,0x10,0x44,0x10,0x44,0x10,0x44,0x10,0x54,0x10,0x48,0x10,0x40,/*"伟",0*/
 172          0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 173          0x00,0x00,0x00,0x00,0x30,0x00,0x48,0x00,0x48,0x00,0x30,0x00,0x00,0x00,0x00,0x00,/*"。",0*/
 174          //============================================================================
 175          0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 176          0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 177          0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 178          0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
 179          };
C51 COMPILER V7.06   ZSP                                                                   11/18/2005 20:37:42 PAGE 4   

 180          


MODULE INFORMATION:   STATIC OVERLAYABLE
   CODE SIZE        =    302    ----
   CONSTANT SIZE    =   1664    ----
   XDATA SIZE       =   ----    ----
   PDATA SIZE       =   ----    ----
   DATA SIZE        =     10       1
   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 + -