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

📄 ltc1451.lst

📁 别人的C51菜单程序
💻 LST
字号:
C51 COMPILER V8.08   LTC1451                                                               06/30/2007 15:23:47 PAGE 1   


C51 COMPILER V8.08, COMPILATION OF MODULE LTC1451
OBJECT MODULE PLACED IN ltc1451.OBJ
COMPILER INVOKED BY: d:\Keil\C51\BIN\C51.EXE ltc1451.c LARGE OPTIMIZE(9,SPEED) DEBUG OBJECTEXTEND

line level    source

   1          #include <reg51.h>
   2          #include <absacc.h>
   3          #include <intrins.h>
   4          #define uchar unsigned char
   5          #define uint unsigned int
   6          #define nop() _nop_()
   7          
   8          //接口定义
   9          #define lct1451_ad XBYTE[0x8100]
  10          //宏定义
  11          #define lct1451_cs_1(out) {out=out|0x04;lct1451_ad=out;}//cs=1;
  12          #define lct1451_cs_0(out) {out=out&0xfb;lct1451_ad=out;}//cs=0;
  13          #define lct1451_clk_1(out) {out=out|0x01;lct1451_ad=out;}//cs=1;
  14          #define lct1451_clk_0(out) {out=out&0xfe;lct1451_ad=out;}//cs=0;
  15          #define lct1451_din_1(out) {out=out|0x02;lct1451_ad=out;}//cs=1;
  16          #define lct1451_din_0(out) {out=out&0xfd;lct1451_ad=out;}//cs=0;
  17          void lct1451_transition(uint data value)
  18          {
  19   1              uchar data out,i,temp;
  20   1      
  21   1              lct1451_cs_1(out);
  22   1              nop();
  23   1              nop();
  24   1              lct1451_cs_0(out);
  25   1              nop();
  26   1              for(i=12;i>0;i--)
  27   1              {
  28   2                      lct1451_clk_0(out);
  29   2                      temp=value>>i;
  30   2                      if(CY)
  31   2                      lct1451_din_1(out)
  32   2                      else
  33   2                      lct1451_din_0(out);
  34   2                      nop();
  35   2                      nop();
  36   2                      lct1451_clk_1(out);
  37   2                      nop();
  38   2                      nop();
  39   2              }
  40   1              lct1451_cs_1(out);
  41   1              nop();
  42   1              nop();
  43   1                              
  44   1      }
  45          
  46                   


MODULE INFORMATION:   STATIC OVERLAYABLE
   CODE SIZE        =     85    ----
   CONSTANT SIZE    =   ----    ----
   XDATA SIZE       =   ----    ----
   PDATA SIZE       =   ----    ----
   DATA SIZE        =   ----       3
   IDATA SIZE       =   ----    ----
C51 COMPILER V8.08   LTC1451                                                               06/30/2007 15:23:47 PAGE 2   

   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 + -