亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? mfrc500uc.lst

?? RC500的mifare卡開發備用程序及電路
?? LST
?? 第 1 頁 / 共 4 頁
字號:
C51 COMPILER V6.12  MFRC500UC                                                              08/18/2008 15:29:35 PAGE 1   


C51 COMPILER V6.12, COMPILATION OF MODULE MFRC500UC
OBJECT MODULE PLACED IN .\mfrc500uc.OBJ
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE .\mfrc500uc.c LARGE WARNINGLEVEL(0) BROWSE INCDIR(D:\UsefulDocument\Mifare\
                    -MF RC500\MFRC500 Demo Reader\RC500\For Test) DEBUG OBJECTEXTEND

stmt level    source

   1          ///////////////////////////////////////////////////////////////////////////////
   2          //    Copyright (c), Philips Semiconductors Gratkorn
   3          //
   4          //                  (C)PHILIPS Electronics N.V.2000
   5          //                     All rights are reserved. 
   6          //  Philips reserves the right to make changes without notice at any time.
   7          // Philips makes no warranty, expressed, implied or statutory, including but
   8          // not limited to any implied warranty of merchantibility or fitness for any
   9          //particular purpose, or that the use will not infringe any third party patent,
  10          // copyright or trademark. Philips must not be liable for any loss or damage
  11          //                          arising from its use.
  12          ///////////////////////////////////////////////////////////////////////////////
  13          #include <string.h>
  14          #include <stdio.h>
  15          
  16          #include <RICReg.h>
*** ERROR 318 IN LINE 16 OF .\mfrc500uc.c: can't open file 'RICReg.h'
  17          
  18          #include <MfRc500.h>
*** ERROR 318 IN LINE 25 OF MfRc500.h: can't open file 'OsDefs.h'
*** ERROR C129 IN LINE 47 OF MFRC500.H: missing ';' before 'Mf500PcdConfig'
  19          #include <PcdShared.h>
*** ERROR 318 IN LINE 24 OF PcdShared.h: can't open file 'OsDefs.h'
  20          #include <uCInit.h>
*** ERROR 318 IN LINE 20 OF .\mfrc500uc.c: can't open file 'uCInit.h'
  21          #include <RcCommunication.h>
  22          #include <PcdUtils.h>
*** ERROR 318 IN LINE 41 OF MfErrno.h: can't open file 'OsDefs.h'
  23          #include <MfErrNo.h>
  24          
  25          /*! \file MfRc500uC.c
  26          *
  27          * Projekt: MF EV X00 Firmware
  28          *
  29          * $Workfile:: MfRc500uC.c                                               $ 
  30          * $Modtime:: 30.03.01 9:46                                              $ 
  31          * $Author:: Hb                                                          $
  32          * $Revision:: 31                                                        $
  33          *
  34          * 
  35          * This library modul is written for a C166 microcontroller derivative.
  36          * The source can be ported to other platforms very easily. 
  37          * The communication channel to the RC500 reader IC is assumed to be 
  38          * unknown. All data is written with the generic IO functions 
  39          * of the module RcComunication.h (Reader core communication). 
  40          * In our case the reader module is 
  41          * connected via memory mapped io at base address 0x100000.
  42          * The interrupt pin of the reader IC is assumed to be connected to 
  43          * the fast external interrupt pin INT0# (active low) and the reset
  44          * pin of the reader IC should be connected to a dedicated port pin
  45          * (Port: P1 Pin: 9).
  46          * In this configuration, a reset of the reader module is independend
  47          * from the reset of the microcontroller.
  48          * In order to generate communication timeouts, 
C51 COMPILER V6.12  MFRC500UC                                                              08/18/2008 15:29:35 PAGE 2   

  49          * general purpose timer 3 of the microcontroller is used. This 
  50          * timer need not to be initialised in advance. Before every usage 
  51          * the timer is completely initialised in each function. 
  52          * Non of the timers is essential for the functionality of the reader
  53          * module, but are helpful furing software development. All protocoll 
  54          * relevant timing constraints are generated
  55          * by the internal timer of the reader module.
  56          * 
  57          * Some explanations to the programming method of this library.
  58          * There are three kind of functions coded in this module.
  59          * <ol>
  60          *  <li> internal functions, which have no prototypes in a header
  61          *       file. This kind of functions are not intended to be used 
  62          *       outside of this file
  63          *  <li> commands, which are intended for the reader module itself
  64          *  <li> commands, which are intended for any tag in the rf field.
  65          *       These commands are send to the reader and the reader module
  66          *       transmitts the data to the rf interface.
  67          * </ol>
  68          * Commands for the reader and for the tag have the appropriate 
  69          * prefix (PCD for Proximity Coupled Device or reader module
  70          * PICC for Proximity Integrated Circuit Card or tag)
  71          * and their protypes are defined in the header file.
  72          * Certainly, each command for a PICC consists of an instruction to the PCD. 
  73          * Therefore
  74          * the function PcdSingleResponseCmd is very important for the understanding
  75          * of the communication.
  76          * 
  77          * The basic functionality is provided by the interrupt service
  78          * routine (SingleResponseCmd), which closely works together with the function
  79          * PcdSingleResponseCmd. All kinds of interrupts are serviced by the 
  80          * same ISR. 
  81          */
  82          
  83          ///////////////////////////////////////////////////////////////////////////////
  84          //             M O D U L   V A R I A B L E S 
  85          ///////////////////////////////////////////////////////////////////////////////
  86          
  87          /*!
  88          * \ingroup mfcompatible
  89          * storage of the last selected serial number including check byte.
  90          *
  91          * For multi level serial numbers, only the first 4 bytes are stored.
  92          */
  93          unsigned char MLastSelectedSnr[5];
  94          
  95          volatile unsigned char *MSndBuffer = 0; ///< pointer to the transmit buffer
  96          volatile unsigned char *MRcvBuffer = 0; ///< pointer to the receive buffer
  97          
  98          /*!
  99          * In order to exchange some values between the ISR and the calling function,
 100          * a struct is provided. 
 101          */
 102          volatile MfCmdInfo     MInfo;                  
 103          
 104          /*! \name ISO14443 Support Properties
 105          * \ingroup ISO14443
 106          * Some of the protokoll functions of ISO14443 needs information about
 107          * the capability of the reader device, which are provided by this
 108          * constants.
 109          */
 110          //@{
C51 COMPILER V6.12  MFRC500UC                                                              08/18/2008 15:29:35 PAGE 3   

 111          #define TCLFSDSNDMAX   8   ///< max. frame size send
 112          #define TCLFSDRECMAX   8   ///< max. frame size rcv
 113          #define TCLDSMAX       3   ///< max. baudrate divider PICC --> PCD
 114          #define TCLDRMAX       3   ///< max. baudrate divider PCD --> PICC
 115          
 116          #define TCLDSDFLT      0   ///< default baudrate divider PICC --> PCD
 117          #define TCLDRDFLT      0   ///< default baudrate divider PCD --> PICC
 118          //@}
 119          
 120          
 121          ///////////////////////////////////////////////////////////////////////////////
 122          //             Prototypes for local functions 
 123          ///////////////////////////////////////////////////////////////////////////////
 124          
 125          ///  Internal Authentication State Switch
 126          /*!
 127          * \ingroup internal
 128          * \param auth_mode (<em>IN</em>) 
 129          *                  <ul> selects master key A or master key B 
 130          *                   <li> PICC_AUTHENT1A
 131          *                   <li> PICC_AUTHENT1B 
 132          *                  </ul>
 133          * \param *snr      (<em>IN</em>) 
 134          *                  4 byte serial number of the card, which should be 
 135          *                  authenticated
 136          * \param sector (<em>IN</em>) Range [0..15] 
 137          *               specifies the key RAM address 
 138          *               from which the keys should be taken
 139          * \return <ul>
 140          *          <li> MI_OK
 141          *          <li> CCE
 142          *          <li> MI_BITCOUNTERR  wrong number of bits received
 143          *          <li> MI_AUTHERR      wrong keys for selected card
 144          *          <li> MI_KEYERR       error while loading keys
 145          *         </ul>
 146          * 
 147          * Internal authentication state function.
 148          */
 149          char Mf500PiccAuthState(unsigned char auth_mode,// PICC_AUTHENT1A, PICC_AUTHENT1B
 150                                 unsigned char *snr,    // 4 byte serial number
 151                                 unsigned char sector); // 0 <= sector <= 15  
 152                                                      // sector address for authentication
 153          
 154          ///////////////////////////////////////////////////////////////////////
 155          //      M I F A R E   M O D U L E   C O N F I G U R A T I O N
 156          ///////////////////////////////////////////////////////////////////////
 157          char Mf500PcdConfig(void)
 158          {
 159             char status = MI_RESETERR;
 160             unsigned short RstLoopCnt = 0;
 161             unsigned short CmdWaitCnt = 0;
 162                
 163             // global initialisation
 164             MSndBuffer  = RicRxTxBuffer;  // initialise send buffer 
 165             MRcvBuffer  = RicRxTxBuffer;  // initialise receive buffer
 166          
 167             status = PcdReset();
 168          
 169             if (status == MI_OK)
 170             {
 171          
 172               // test clock Q calibration - value in the range of 0x46 expected
C51 COMPILER V6.12  MFRC500UC                                                              08/18/2008 15:29:35 PAGE 4   

 173               WriteRC(RegClockQControl,0x0);
 174               WriteRC(RegClockQControl,0x40);
 175               SleepUs(24);  // wait approximately 100 us - calibration in progress
 176               ClearBitMask(RegClockQControl,0x40); // clear bit ClkQCalib for 
 177                                                    // further calibration
 178          
 179               // The following values for RegBitPhase and
 180               // RegRxThreshold represents an optimal
 181               // value for our demo package. For user
 182               // implementation some changes could be
 183               // necessary
 184               // initialize bit phase
 185               WriteRC(RegBitPhase,0xAD);      
 186          
 187               // initialize minlevel
 188               WriteRC(RegRxThreshold,0xFF);   
 189            
 190               // disable auto power down
 191               WriteRC(RegRxControl2,01);
 192          
 193               // Depending on the processing speed of the
 194               // operation environment, the waterlevel 
 195               // can be adapted. (not very critical for
 196               // mifare applications)
 197               // initialize waterlevel to value 4
 198               WriteRC(RegFIFOLevel,0x1A); // initialize to 26d 
 199               
 200               //Timer Konfiguration
 201               WriteRC(RegTimerControl,0x02);  // TStopRxEnd=0,TStopRxBeg=0,
 202                                             // TStartTxEnd=1,TStartTxBeg=0  
 203                                             // timer must be stopped manually
 204          
 205               WriteRC(RegIRqPinConfig,0x3); // interrupt active low enable
 206          
 207               PcdRfReset(1);            // Rf - reset and enable output driver   
 208          
 209             }
 210             return status;
 211          }
 212          
 213          ///////////////////////////////////////////////////////////////////////
 214          //          M I F A R E   R E M O T E   A N T E N N A
 215          //  Configuration of slave module
 216          ///////////////////////////////////////////////////////////////////////
 217          char Mf500ActiveAntennaSlaveConfig(void)
 218          {

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
琪琪一区二区三区| av中文一区二区三区| 国产精品色在线| 欧美精品日韩一区| 99久久国产综合精品女不卡| 日本系列欧美系列| 亚洲另类中文字| 久久久久久一二三区| 欧美日韩一二三| 不卡的av在线播放| 国内精品伊人久久久久av一坑 | 欧美精品日韩一区| av在线综合网| 大白屁股一区二区视频| 久久66热偷产精品| 奇米精品一区二区三区在线观看| 亚洲美女屁股眼交| 中文字幕在线不卡一区二区三区| 精品久久久久久久久久久久久久久 | 91老师片黄在线观看| 国产酒店精品激情| 麻豆视频观看网址久久| 丝袜美腿亚洲色图| 亚洲国产日韩在线一区模特 | 亚洲免费看黄网站| ㊣最新国产の精品bt伙计久久| 久久日韩粉嫩一区二区三区| 日韩一级精品视频在线观看| 欧美视频第二页| 欧美视频一区在线观看| 欧美亚洲国产怡红院影院| 99国产麻豆精品| 99久久综合色| 一本一道综合狠狠老| av综合在线播放| 一本到三区不卡视频| 99re这里只有精品6| 成人黄色软件下载| 91影院在线免费观看| av动漫一区二区| 91蜜桃网址入口| 在线免费观看视频一区| 在线观看av不卡| 欧美亚洲禁片免费| 7777精品伊人久久久大香线蕉最新版| 精品视频一区二区不卡| 欧美日韩国产区一| 日韩视频123| 久久先锋资源网| 久久精品国产99| 国产在线视频不卡二| 国产精品66部| 99久久综合99久久综合网站| 日本韩国一区二区三区| 精品视频色一区| 精品日韩在线一区| 欧美国产乱子伦| 又紧又大又爽精品一区二区| 亚洲电影在线免费观看| 人人狠狠综合久久亚洲| 国产在线观看免费一区| 成人av片在线观看| 在线亚洲+欧美+日本专区| 欧美猛男男办公室激情| 精品处破学生在线二十三| 国产精品麻豆久久久| 亚洲综合一二区| 懂色av中文字幕一区二区三区| 日韩欧美中文字幕公布| 26uuu国产电影一区二区| 国产精品无遮挡| 一区二区三区蜜桃| 九色porny丨国产精品| eeuss鲁片一区二区三区| 欧美主播一区二区三区美女| 日韩欧美一二三四区| 中文字幕一区二区5566日韩| 亚洲第一激情av| 国产伦精一区二区三区| 色婷婷综合中文久久一本| 制服.丝袜.亚洲.另类.中文| 久久精品人人做人人爽97| 亚洲资源中文字幕| 国产一区二区0| 欧美日韩亚洲不卡| 中文字幕精品—区二区四季| 亚洲亚洲人成综合网络| 国产成人av电影在线观看| 欧美色电影在线| 久久九九国产精品| 日韩高清不卡一区二区| 丁香六月综合激情| 欧美一级精品大片| 综合激情网...| 国产一区二区视频在线| 欧美久久一二区| 1区2区3区国产精品| 韩国成人精品a∨在线观看| 欧美在线一区二区| 国产精品毛片久久久久久| 奇米影视一区二区三区小说| 色偷偷88欧美精品久久久| 久久精品亚洲精品国产欧美| 日日欢夜夜爽一区| 91视频www| 欧美激情综合五月色丁香| 美女一区二区久久| 欧美精品日韩一区| 一区二区三区中文字幕电影| 福利一区在线观看| 久久伊人蜜桃av一区二区| 亚洲成av人**亚洲成av**| 色综合天天视频在线观看| 国产午夜精品理论片a级大结局 | 亚洲自拍都市欧美小说| 成人av资源站| 国产欧美精品在线观看| 奇米一区二区三区av| 欧美日韩精品一区二区三区 | 4438x亚洲最大成人网| 一区二区在线观看免费视频播放| 国产成人精品aa毛片| 久久亚区不卡日本| 激情综合网最新| 日韩一卡二卡三卡国产欧美| 天天综合色天天综合| 欧美人妖巨大在线| 丁香另类激情小说| 久久久久国产精品免费免费搜索| 奇米色777欧美一区二区| 在线不卡免费av| 久久精品视频一区二区三区| 久久99精品久久久久久动态图| 欧美人牲a欧美精品| 国产婷婷色一区二区三区四区| 99热99精品| 蜜桃一区二区三区在线观看| 国产亚洲成aⅴ人片在线观看 | 激情欧美日韩一区二区| 日本一二三不卡| 在线观看日产精品| 久久精工是国产品牌吗| 国产精品乱人伦一区二区| 在线精品视频一区二区三四| 久久99精品国产.久久久久久| 欧美激情在线观看视频免费| 欧美性三三影院| 国产做a爰片久久毛片| 亚洲免费在线电影| 欧美v国产在线一区二区三区| 成人免费视频播放| 亚洲成人动漫av| 国产精品网站一区| 欧美精品日韩一区| 不卡视频免费播放| 奇米色一区二区| 亚洲日本va午夜在线电影| 777久久久精品| 91在线观看美女| 国产永久精品大片wwwapp| 夜夜嗨av一区二区三区网页 | 午夜精品久久久久久久99水蜜桃| 国产色一区二区| 欧美一区二区在线免费观看| 国产·精品毛片| 日韩成人免费看| 亚洲乱码国产乱码精品精的特点| 欧美tk丨vk视频| 欧美在线免费播放| 成人国产精品免费网站| 久久精品国产精品亚洲精品| 亚洲综合男人的天堂| 欧美经典一区二区| 欧美一级一区二区| 欧美日韩极品在线观看一区| 99视频在线精品| 国产麻豆精品在线观看| 五月激情综合色| 亚洲女人小视频在线观看| 久久综合色鬼综合色| 欧美日韩mp4| 色激情天天射综合网| www.一区二区| 成人性生交大片免费看中文| 久久精品国产精品亚洲红杏| 亚洲国产视频网站| 亚洲裸体在线观看| 国产精品久久久久久久久图文区 | 亚洲线精品一区二区三区八戒| 日本一区二区免费在线 | 色综合激情五月| 成人免费三级在线| 国产夫妻精品视频| 国产综合色精品一区二区三区| 免费观看91视频大全| 日韩和欧美一区二区| 亚洲国产日韩a在线播放性色| 亚洲黄色免费网站| 亚洲激情av在线| 一区二区在线免费观看|