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

📄 dis_key.lst

📁 配电变XIANSHI CHENGXU !下拉界面,事件查询,控制操作,很好的
💻 LST
📖 第 1 页 / 共 3 页
字号:
C51 COMPILER V7.50   DIS_KEY                                                               09/22/2006 09:22:40 PAGE 1   


C51 COMPILER V7.50, COMPILATION OF MODULE DIS_KEY
OBJECT MODULE PLACED IN DIS_KEY.OBJ
COMPILER INVOKED BY: d:\Keil\C51\BIN\C51.EXE DIS_KEY.c LARGE BROWSE DEBUG OBJECTEXTEND

line level    source

   1          
   2          #include "reg52.h"
   3          #include "absacc.h"
   4          
   5          sbit CSPI = P1^0;
   6          sbit MOSI = P1^5;
   7          sbit MISO = P1^6;
   8          sbit SCK  = P1^7;
   9          #define SPI_WREN             0x06        // X25650 写允许
  10          #define SPI_WRDI             0x04        // X25650 写禁止
  11          #define SPI_RDSR             0x05        // X25650 读状态
  12          #define SPI_WRSR             0x01        // X25650 写状态
  13          #define SPI_READ             0x03        // X25650 读数据
  14          #define SPI_WRITE            0x02        // X25650 写数据
  15          
  16          #define b0_msk                           0x01        //屏蔽位
  17          #define b1_msk                           0x02
  18          #define b2_msk                           0x04
  19          #define b3_msk                           0x08
  20          #define b4_msk                           0x10
  21          #define b5_msk                           0x20
  22          #define b6_msk                           0x40
  23          #define b7_msk                           0x80
  24          
  25          
  26          #define KEY8 P2
  27          #define LED8 P2
  28          sbit KEY9 = P1^0;
  29          sbit LED9 = P1^2;
  30          sbit CLED = P1^1;
  31          
  32          #define LCDD P0
  33          sbit LCDL = P3^7;
  34          sbit LCDC = P3^2;
  35          sbit LCDR = P3^3;
  36          sbit LCDE = P3^4;
  37          sbit LCD1 = P3^5;
  38          sbit LCD2 = P3^6;
  39          #define DISP_OFF             0x3e
  40          #define DISP_ON              0x3f
  41          #define PAGE_ADD             0xb8
  42          #define COL_ADD              0x40
  43          #define START_LINE           0xc0
  44          
  45          unsigned char page,page_change,flag,rsymbol,data_rx[100],data_tx[100],fixstr[6],msec[7],event,
  46                                    rx0,rx1,p_rx,flag_rx,p_x,p_y, bh[16],bhzt[2],kgzt[2],kzz[6],data_led,sup,
  47                                    k1,k2,k3,k4,m1,m2,m3,m4;//k1,k2,k3,k4 为四位密码
  48          unsigned char r_p,w_p,s_b,sub,xpp,ypp,total;
  49          unsigned int dataN[30],dz[20],soe[16][3],ttp;
  50          
  51          void deal_soe(void);
  52          void disp816(unsigned char,unsigned char,unsigned char);
  53          void disp816n(unsigned char,unsigned char,unsigned char);
  54          void disp_chn(unsigned char,unsigned char,unsigned char);
  55          void disp_chnn(unsigned char,unsigned char,unsigned char);
C51 COMPILER V7.50   DIS_KEY                                                               09/22/2006 09:22:40 PAGE 2   

  56          void fix_asc(unsigned char,unsigned char,unsigned char *,unsigned int);
  57          void soe_zz(void);
  58          
  59          
  60          unsigned char code asc16 [ 2048 - 32 * 16 ] =
  61           {
  62             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,  // 0x20  
  63             0x00,0x00,0x38,0xfc,0xfc,0x38,0x00,0x00,0x00,0x00,0x00,0x0d,0x0d,0x00,0x00,0x00,  // 0x21  !
  64             0x00,0x0e,0x1e,0x00,0x00,0x1e,0x0e,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,  // 0x22  "
  65             0x20,0xf8,0xf8,0x20,0xf8,0xf8,0x20,0x00,0x02,0x0f,0x0f,0x02,0x0f,0x0f,0x02,0x00,  // 0x23  #
  66             0x38,0x7c,0x44,0x47,0x47,0xcc,0x98,0x00,0x06,0x0c,0x08,0x38,0x38,0x0f,0x07,0x00,  // 0x24  $
  67             0x30,0x30,0x00,0x80,0xc0,0x60,0x30,0x00,0x0c,0x06,0x03,0x01,0x00,0x0c,0x0c,0x00,  // 0x25  %
  68             0x80,0xd8,0x7c,0xe4,0xbc,0xd8,0x40,0x00,0x07,0x0f,0x08,0x08,0x07,0x0f,0x08,0x00,  // 0x26  &
  69             0x00,0x10,0x1e,0x0e,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,  // 0x27  '
  70             0x00,0x00,0xf0,0xf8,0x0c,0x04,0x00,0x00,0x00,0x00,0x03,0x07,0x0c,0x08,0x00,0x00,  // 0x28  (
  71             0x00,0x00,0x04,0x0c,0xf8,0xf0,0x00,0x00,0x00,0x00,0x08,0x0c,0x07,0x03,0x00,0x00,  // 0x29  )
  72             0x80,0xa0,0xe0,0xc0,0xc0,0xe0,0xa0,0x80,0x00,0x02,0x03,0x01,0x01,0x03,0x02,0x00,  // 0x2A  *
  73             0x00,0x80,0x80,0xe0,0xe0,0x80,0x80,0x00,0x00,0x00,0x00,0x03,0x03,0x00,0x00,0x00,  // 0x2B  +
  74             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x1e,0x0e,0x00,0x00,0x00,  // 0x2C  ,
  75             0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,  // 0x2D  -
  76             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0c,0x0c,0x00,0x00,0x00,  // 0x2E  .
  77             0x00,0x00,0x00,0x80,0xc0,0x60,0x30,0x00,0x0c,0x06,0x03,0x01,0x00,0x00,0x00,0x00,  // 0x2F  /
  78             0xf0,0xf8,0x0c,0xc4,0x0c,0xf8,0xf0,0x00,0x03,0x07,0x0c,0x08,0x0c,0x07,0x03,0x00,  // 0x30  0
  79             0x00,0x10,0x18,0xfc,0xfc,0x00,0x00,0x00,0x00,0x08,0x08,0x0f,0x0f,0x08,0x08,0x00,  // 0x31  1
  80             0x08,0x0c,0x84,0xc4,0x64,0x3c,0x18,0x00,0x0e,0x0f,0x09,0x08,0x08,0x0c,0x0c,0x00,  // 0x32  2
  81             0x08,0x0c,0x44,0x44,0x44,0xfc,0xb8,0x00,0x04,0x0c,0x08,0x08,0x08,0x0f,0x07,0x00,  // 0x33  3
  82             0xc0,0xe0,0xb0,0x98,0xfc,0xfc,0x80,0x00,0x00,0x00,0x00,0x08,0x0f,0x0f,0x08,0x00,  // 0x34  4
  83             0x7c,0x7c,0x44,0x44,0x44,0xc4,0x84,0x00,0x04,0x0c,0x08,0x08,0x08,0x0f,0x07,0x00,  // 0x35  5
  84             0xf0,0xf8,0x4c,0x44,0x44,0xc0,0x80,0x00,0x07,0x0f,0x08,0x08,0x08,0x0f,0x07,0x00,  // 0x36  6
  85             0x0c,0x0c,0x04,0x84,0xc4,0x7c,0x3c,0x00,0x00,0x00,0x0f,0x0f,0x00,0x00,0x00,0x00,  // 0x37  7
  86             0xb8,0xfc,0x44,0x44,0x44,0xfc,0xb8,0x00,0x07,0x0f,0x08,0x08,0x08,0x0f,0x07,0x00,  // 0x38  8
  87             0x38,0x7c,0x44,0x44,0x44,0xfc,0xf8,0x00,0x00,0x08,0x08,0x08,0x0c,0x07,0x03,0x00,  // 0x39  9
  88             0x00,0x00,0x00,0x30,0x30,0x00,0x00,0x00,0x00,0x00,0x00,0x06,0x06,0x00,0x00,0x00,  // 0x3A  :
  89             0x00,0x00,0x00,0x30,0x30,0x00,0x00,0x00,0x00,0x00,0x08,0x0e,0x06,0x00,0x00,0x00,  // 0x3B  ;
  90             0x00,0x80,0xc0,0x60,0x30,0x18,0x08,0x00,0x00,0x00,0x01,0x03,0x06,0x0c,0x08,0x00,  // 0x3C  <
  91             0x00,0x20,0x20,0x20,0x20,0x20,0x20,0x00,0x00,0x01,0x01,0x01,0x01,0x01,0x01,0x00,  // 0x3D  =
  92             0x00,0x08,0x18,0x30,0x60,0xc0,0x80,0x00,0x00,0x08,0x0c,0x06,0x03,0x01,0x00,0x00,  // 0x3E  >
  93             0x18,0x1c,0x04,0xc4,0xe4,0x3c,0x18,0x00,0x00,0x00,0x00,0x0d,0x0d,0x00,0x00,0x00,  // 0x3F  ?
  94             0xf0,0xf8,0x08,0xc8,0xc8,0xf8,0xf0,0x00,0x07,0x0f,0x08,0x0b,0x0b,0x0b,0x01,0x00,  // 0x40  @
  95             0xe0,0xf0,0x98,0x8c,0x98,0xf0,0xe0,0x00,0x0f,0x0f,0x00,0x00,0x00,0x0f,0x0f,0x00,  // 0x41  A
  96             0x04,0xfc,0xfc,0x44,0x44,0xfc,0xb8,0x00,0x08,0x0f,0x0f,0x08,0x08,0x0f,0x07,0x00,  // 0x42  B
  97             0xf0,0xf8,0x0c,0x04,0x04,0x0c,0x18,0x00,0x03,0x07,0x0c,0x08,0x08,0x0c,0x06,0x00,  // 0x43  C
  98             0x04,0xfc,0xfc,0x04,0x0c,0xf8,0xf0,0x00,0x08,0x0f,0x0f,0x08,0x0c,0x07,0x03,0x00,  // 0x44  D
  99             0x04,0xfc,0xfc,0x44,0xe4,0x0c,0x1c,0x00,0x08,0x0f,0x0f,0x08,0x08,0x0c,0x0e,0x00,  // 0x45  E
 100             0x04,0xfc,0xfc,0x44,0xe4,0x0c,0x1c,0x00,0x08,0x0f,0x0f,0x08,0x00,0x00,0x00,0x00,  // 0x46  F
 101             0xf0,0xf8,0x0c,0x84,0x84,0x8c,0x98,0x00,0x03,0x07,0x0c,0x08,0x08,0x07,0x0f,0x00,  // 0x47  G
 102             0xfc,0xfc,0x40,0x40,0x40,0xfc,0xfc,0x00,0x0f,0x0f,0x00,0x00,0x00,0x0f,0x0f,0x00,  // 0x48  H
 103             0x00,0x00,0x04,0xfc,0xfc,0x04,0x00,0x00,0x00,0x00,0x08,0x0f,0x0f,0x08,0x00,0x00,  // 0x49  I
 104             0x00,0x00,0x00,0x04,0xfc,0xfc,0x04,0x00,0x07,0x0f,0x08,0x08,0x0f,0x07,0x00,0x00,  // 0x4A  J
 105             0x04,0xfc,0xfc,0xc0,0xe0,0x3c,0x1c,0x00,0x08,0x0f,0x0f,0x00,0x01,0x0f,0x0e,0x00,  // 0x4B  K
 106             0x04,0xfc,0xfc,0x04,0x00,0x00,0x00,0x00,0x08,0x0f,0x0f,0x08,0x08,0x0c,0x0e,0x00,  // 0x4C  L
 107             0xfc,0xfc,0x38,0x70,0x38,0xfc,0xfc,0x00,0x0f,0x0f,0x00,0x00,0x00,0x0f,0x0f,0x00,  // 0x4D  M
 108             0xfc,0xfc,0x38,0x70,0xe0,0xfc,0xfc,0x00,0x0f,0x0f,0x00,0x00,0x00,0x0f,0x0f,0x00,  // 0x4E  N
 109             0xf8,0xfc,0x04,0x04,0x04,0xfc,0xf8,0x00,0x07,0x0f,0x08,0x08,0x08,0x0f,0x07,0x00,  // 0x4F  O
 110             0x04,0xfc,0xfc,0x44,0x44,0x7c,0x38,0x00,0x08,0x0f,0x0f,0x08,0x00,0x00,0x00,0x00,  // 0x50  P
 111             0xf8,0xfc,0x04,0x04,0x04,0xfc,0xf8,0x00,0x07,0x0f,0x08,0x0e,0x3c,0x3f,0x27,0x00,  // 0x51  Q
 112             0x04,0xfc,0xfc,0x44,0xc4,0xfc,0x38,0x00,0x08,0x0f,0x0f,0x00,0x00,0x0f,0x0f,0x00,  // 0x52  R
 113             0x18,0x3c,0x64,0x44,0xc4,0x9c,0x18,0x00,0x06,0x0e,0x08,0x08,0x08,0x0f,0x07,0x00,  // 0x53  S
 114             0x00,0x1c,0x0c,0xfc,0xfc,0x0c,0x1c,0x00,0x00,0x00,0x08,0x0f,0x0f,0x08,0x00,0x00,  // 0x54  T
 115             0xfc,0xfc,0x00,0x00,0x00,0xfc,0xfc,0x00,0x07,0x0f,0x08,0x08,0x08,0x0f,0x07,0x00,  // 0x55  U
 116             0xfc,0xfc,0x00,0x00,0x00,0xfc,0xfc,0x00,0x01,0x03,0x06,0x0c,0x06,0x03,0x01,0x00,  // 0x56  V
 117             0xfc,0xfc,0x00,0xc0,0x00,0xfc,0xfc,0x00,0x07,0x0f,0x0e,0x03,0x0e,0x0f,0x07,0x00,  // 0x57  W
C51 COMPILER V7.50   DIS_KEY                                                               09/22/2006 09:22:40 PAGE 3   

 118             0x0c,0x3c,0xf0,0xe0,0xf0,0x3c,0x0c,0x00,0x0c,0x0f,0x03,0x01,0x03,0x0f,0x0c,0x00,  // 0x58  X
 119             0x00,0x3c,0x7c,0xc0,0xc0,0x7c,0x3c,0x00,0x00,0x00,0x08,0x0f,0x0f,0x08,0x00,0x00,  // 0x59  Y
 120             0x1c,0x0c,0x84,0xc4,0x64,0x3c,0x1c,0x00,0x0e,0x0f,0x09,0x08,0x08,0x0c,0x0e,0x00,  // 0x5A  Z
 121             0x00,0x00,0xfc,0xfc,0x04,0x04,0x00,0x00,0x00,0x00,0x0f,0x0f,0x08,0x08,0x00,0x00,  // 0x5B  [
 122             0x38,0x70,0xe0,0xc0,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x03,0x07,0x0e,0x00,  // 0x5C 
 123             0x00,0x00,0x04,0x04,0xfc,0xfc,0x00,0x00,0x00,0x00,0x08,0x08,0x0f,0x0f,0x00,0x00,  // 0x5D  ]
 124             0x08,0x0c,0x06,0x03,0x06,0x0c,0x08,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,  // 0x5E  ^
 125             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,  // 0x5F  _
 126             0x00,0x00,0x03,0x07,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,  // 0x60  `
 127             0x00,0xa0,0xa0,0xa0,0xe0,0xc0,0x00,0x00,0x07,0x0f,0x08,0x08,0x07,0x0f,0x08,0x00,  // 0x61  a
 128             0x04,0xfc,0xfc,0x20,0x60,0xc0,0x80,0x00,0x00,0x0f,0x0f,0x08,0x08,0x0f,0x07,0x00,  // 0x62  b
 129             0xc0,0xe0,0x20,0x20,0x20,0x60,0x40,0x00,0x07,0x0f,0x08,0x08,0x08,0x0c,0x04,0x00,  // 0x63  c
 130             0x80,0xc0,0x60,0x24,0xfc,0xfc,0x00,0x00,0x07,0x0f,0x08,0x08,0x07,0x0f,0x08,0x00,  // 0x64  d
 131             0xc0,0xe0,0xa0,0xa0,0xa0,0xe0,0xc0,0x00,0x07,0x0f,0x08,0x08,0x08,0x0c,0x04,0x00,  // 0x65  e
 132             0x40,0xf8,0xfc,0x44,0x0c,0x18,0x00,0x00,0x08,0x0f,0x0f,0x08,0x00,0x00,0x00,0x00,  // 0x66  f
 133             0xc0,0xe0,0x20,0x20,0xc0,0xe0,0x20,0x00,0x27,0x6f,0x48,0x48,0x7f,0x3f,0x00,0x00,  // 0x67  g
 134             0x04,0xfc,0xfc,0x40,0x20,0xe0,0xc0,0x00,0x08,0x0f,0x0f,0x00,0x00,0x0f,0x0f,0x00,  // 0x68  h
 135             0x00,0x00,0x20,0xec,0xec,0x00,0x00,0x00,0x00,0x00,0x08,0x0f,0x0f,0x08,0x00,0x00,  // 0x69  i
 136             0x00,0x00,0x00,0x00,0x20,0xec,0xec,0x00,0x00,0x30,0x70,0x40,0x40,0x7f,0x3f,0x00,  // 0x6A  j
 137             0x04,0xfc,0xfc,0x80,0xc0,0x60,0x20,0x00,0x08,0x0f,0x0f,0x01,0x03,0x0e,0x0c,0x00,  // 0x6B  k
 138             0x00,0x00,0x04,0xfc,0xfc,0x00,0x00,0x00,0x00,0x00,0x08,0x0f,0x0f,0x08,0x00,0x00,  // 0x6C  l

⌨️ 快捷键说明

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