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

📄 ds12887.lst

📁 51单片机315模块双向通信代码,可直接使用.用于完成家电控制之类的小应用.
💻 LST
字号:
C51 COMPILER V7.04   DS12887                                                               10/23/2004 15:21:27 PAGE 1   


C51 COMPILER V7.04, COMPILATION OF MODULE DS12887
OBJECT MODULE PLACED IN ds12887.OBJ
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE ds12887.c ROM(COMPACT) BROWSE DEBUG OBJECTEXTEND

stmt level    source

   1          #define uchar unsigned char
   2          #define uint unsigned int
   3          #include <reg52.h>
   4          #include <stdio.h>
   5          #include <absacc.h>
   6          #include <math.h>
   7          #include <string.h>
   8          #include <ctype.h>
   9          #include <stdlib.h>
  10          
  11          #define P128870 PBYTE[0x00]
  12          #define P128871 PBYTE[0x01]
  13          #define P128872 PBYTE[0x02]
  14          #define P128873 PBYTE[0x03]
  15          #define P128874 PBYTE[0x04]
  16          #define P128875 PBYTE[0x05]
  17          #define P128876 PBYTE[0x06]
  18          #define P128877 PBYTE[0x07]
  19          #define P128878 PBYTE[0x08]
  20          #define P128879 PBYTE[0x09]
  21          #define P12887a PBYTE[0x0a]
  22          #define P12887b PBYTE[0x0b]
  23          #define P12887c PBYTE[0x0c]
  24          #define P12887d PBYTE[0x0d]
  25          #define P12887e PBYTE[0x0e]
  26          #define P12887f PBYTE[0x0f]
  27          
  28          void setup12887(uchar *p);
  29          void read12887(uchar *p);
  30          void start12887(void);
  31          
  32          void setup12887(uchar *p) //设置系统时间
  33          {
  34   1      uchar i;
  35   1      i=P12887d;
  36   1      P12887a=0x70; P12887b=0xa2; P128870=*p++; P128871=0xff; P128872=*p++;
  37   1      P128873=0xff; P128874=*p++; P128875=0xff; P128876=*p++; P128877=*p++;
  38   1      P128878=*p++; P128879=*p++; P12887b=0x22; P12887a=0x20;
  39   1      i=P12887c;
  40   1      }
  41          void read12887(uchar *p) //读取系统时间
  42          {
  43   1      uchar a;
  44   1      do{ a=P12887a; } while((a&0x80)==0x80);
  45   1      *p++=P128870; *p++=P128872; *p++=P128874; *p++=P128876;
  46   1      *p++=P128877; *p++=P128878; *p++=P128879;
  47   1      }
  48          void start12887(void) //启动时钟
  49          {
  50   1      uchar i;
  51   1      i=P12887d;
  52   1      P12887a=0x70; P12887b=0xa2; P128871=0xff; P128873=0xff; P128875=0xff;
  53   1      P12887b=0x22; P12887a=0x20;
  54   1      i=P12887c;
  55   1      }
C51 COMPILER V7.04   DS12887                                                               10/23/2004 15:21:27 PAGE 2   



MODULE INFORMATION:   STATIC OVERLAYABLE
   CODE SIZE        =    361    ----
   CONSTANT SIZE    =   ----    ----
   XDATA SIZE       =   ----    ----
   PDATA SIZE       =   ----    ----
   DATA SIZE        =   ----       6
   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 + -