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

📄 main.lst

📁 使用台湾普诚pt6961驱动数码管和按键,显示ds1302的源码,详细的6961驱动代码
💻 LST
字号:
C51 COMPILER V8.05a   MAIN                                                                 03/27/2008 20:24:29 PAGE 1   


C51 COMPILER V8.05a, COMPILATION OF MODULE MAIN
OBJECT MODULE PLACED IN main.OBJ
COMPILER INVOKED BY: d:\Keil\C51\BIN\C51.EXE main.c BROWSE DEBUG OBJECTEXTEND

line level    source

   1          
   2          #include <intrins.h> 
   3          #include <sm5964.h>
   4          #include "UART.h"
   5          #include "T0.h"
   6          #include "my_type.h"
   7          #include "1302.h"
   8          #include "6961.h"
   9          #include "debug.h"
  10          
  11          //extern uint8 read_rtc_code[7];
  12          
  13          /***********************************************************************/     
  14          
  15          sbit    SPK = P4^0;
  16          
  17          bit             debug=0;
  18          
  19          /***********************************************************************/
  20          void main(void)
  21          {
  22   1      
  23   1      
  24   1       
  25   1              InitUART();
  26   1      
  27   1              //Init_1302();
  28   1      
  29   1              //InitT0();     
  30   1      
  31   1              EA=1;
  32   1      
  33   1              //Set_6961();
  34   1      
  35   1              //debug=1;
  36   1      
  37   1              if(debug)
  38   1              {
  39   2                      try();  
  40   2              }
  41   1      
  42   1              while(1)
  43   1              {       
  44   2                      uint8 i,j ;
  45   2                      
  46   2                      i=Key_value();
  47   2                      //i=Read_key_6961();
  48   2      
  49   2                      if(i)
  50   2                      {
  51   3                              UartPutChar(i);                 
  52   3                      }
  53   2      
  54   2                      j=i=0x00;
  55   2                      
C51 COMPILER V8.05a   MAIN                                                                 03/27/2008 20:24:29 PAGE 2   

  56   2                       /*
  57   2                      dsplay_dat[0]=A_DSP;
  58   2                      dsplay_dat[1]=B_DSP;
  59   2                      dsplay_dat[2]=C_DSP;
  60   2                      dsplay_dat[3]=D_DSP;
  61   2                      dsplay_dat[4]=E_DSP;
  62   2                      dsplay_dat[5]=F_DSP;
  63   2      
  64   2                      dsplay_dot[0]=1;
  65   2                      dsplay_dot[1]=1;
  66   2                      dsplay_dot[2]=1;
  67   2                      dsplay_dot[3]=1;
  68   2                      dsplay_dot[4]=1;
  69   2                      dsplay_dot[5]=1;
  70   2      
  71   2                      Dsplay();       */
  72   2                      /*j=i;
  73   2                      Read_RTC();
  74   2                      i=read_rtc_code[0];//Read_1302(0x81);//
  75   2                      if(j!=i)
  76   2                      {
  77   2                              UartPutChar(read_rtc_code[0]);          
  78   2                      }
  79   2                      */
  80   2              }          
  81   1      }


MODULE INFORMATION:   STATIC OVERLAYABLE
   CODE SIZE        =     30    ----
   CONSTANT SIZE    =   ----    ----
   XDATA SIZE       =   ----    ----
   PDATA SIZE       =   ----    ----
   DATA SIZE        =   ----       2
   IDATA SIZE       =   ----    ----
   BIT SIZE         =      1    ----
END OF MODULE INFORMATION.


C51 COMPILATION COMPLETE.  0 WARNING(S),  0 ERROR(S)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -