📄 text1.lst
字号:
C51 COMPILER V8.02 TEXT1 01/05/2008 13:58:35 PAGE 1
C51 COMPILER V8.02, COMPILATION OF MODULE TEXT1
OBJECT MODULE PLACED IN .\Text1.OBJ
COMPILER INVOKED BY: d:\Keil\C51\BIN\C51.EXE .\Text1.c BROWSE DEBUG OBJECTEXTEND
line level source
1 /******************************************************************************************/
2 /*******************************************************************************************/
3 #include <reg52.h>
4 #include <intrins.h>
5 #include <math.h>
6 #include<absacc.h>
7 #define uchar unsigned char
8 #define uint unsigned int
9
10
11 #define WC 0x00 // Write configuration register command
12 #define RC 0x10 // Read configuration register command
13 #define WTP 0x20 // Write TX Payload command
14 #define RTP 0x21 // Read TX Payload command
15 #define WTA 0x22 // Write TX Address command
16 #define RTA 0x23 // Read TX Address command
17 #define RRP 0x24 // Read RX Payload command
18 /*******************************************************************************************/
19 char RxTxConf[10]=
20 {
21 0x01,0x0c,0x44, 0x20, 0x20, 0xc1, 0xc1, 0xc1,0xc1, 0x58
22 }; //功率// //设置地址和数据的位数//地址
23 //设置433。00MHz
24 //发射功率10db
25 //发送和接收的地址为4BIT
26 //发射和接收为 8 BIT 32位
27 //初始地址为OXCC,OXCC,OXCC,OXCC
28 //CRC模式开,8位模式,外部晶振16M 没有外部时钟输出,
29 char RxTxConf_1bit[10]=
30 {
31 0x01,0x0c,0x44, 0x08, 0x08, 0xcc, 0xcc, 0xcc,0xcc, 0x58
32 };
33 //设置433。00MHz
34 //发射功率10db
35 //发送和接收的地址为4BIT
36 //发射和接收为1 BIT 8位
37 //初始地址为OXCC,OXCC,OXCC,OXCC
38 //CRC模式开,8位模式,外部晶振16M 没有外部时钟输出
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -