wrtrf01.lst

来自「keil C51编写的的RFM01和RFM02应用程序」· LST 代码 · 共 57 行

LST
57
字号
C51 COMPILER V7.08   WRTRF01                                                               05/21/2007 22:43:29 PAGE 1   


C51 COMPILER V7.08, COMPILATION OF MODULE WRTRF01
OBJECT MODULE PLACED IN wrtRF01.OBJ
COMPILER INVOKED BY: C:\EDA\Keil\C51\BIN\C51.EXE wrtRF01.c BROWSE DEBUG OBJECTEXTEND

line level    source

   1          //-变量声明---------------------------------------------------------------------------------
   2          #include <reg52.h>
   3          #include "WRT_CMD.h"
   4          #include "UART_init.h"
   5          #include "GET_CMD.h"
   6          sbit nSEL1=P1^3;
   7          sbit nSEL2=P1^2;
   8          //sbit REC_flag=P0^1;
   9          //------------------------------------------------------------------------------------------
  10          // name:wrtRF01
  11          //description:designed for Wireless RS232 adapter.setting the "A" board RFM01 frequence command
  12          //input:NON
  13          //output:NON
  14          //designed by KongRui,Version 1.0,2007/05/13
  15          //-------------------------------------------------------------------------------------------
  16          void wrtRF01(unsigned int RF01CSC,RF01FSC,RF01DRC){
  17   1      //  bit SDI,SCK;
  18   1        nSEL1=0;                      //choose RFM01
  19   1        nSEL2=1;
  20   1      //  REC_flag=0;
  21   1       // SDI=P1^7;
  22   1       // SCK=P1^5;
  23   1        WRT_CMD(0xc080);              //receiver setting command
  24   1        WRT_CMD(0xc240);              //low battery detector and microcontroller clock divider command
  25   1                                                      //CLK out=1.66MHz
  26   1        WRT_CMD(0xc6db);              //AFC command,digital filler,DQD=4
  27   1        WRT_CMD(0xce88);      //output and FIFO mode command,no use FIFO
  28   1        WRT_CMD(RF01CSC);     //configuration setting command,get the command from the computer
  29   1        WRT_CMD(RF01FSC);     //frequency setting command,get the command from the computer
  30   1        WRT_CMD(RF01DRC);     //data rate command,get the command from the computer
  31   1        WRT_CMD(0xc081);              //open RX,allow receive
  32   1      //  REC_flag=1;
  33   1      }


MODULE INFORMATION:   STATIC OVERLAYABLE
   CODE SIZE        =     72    ----
   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 + =
减小字号Ctrl + -
显示快捷键?