- Category:
- CSharp
- Tags:
-
[PDF]
- File Size:
- 1.16mb
- Update:
- 2012-11-26
- Downloads:
- 0 Times
- Uploaded by:
- sheet_2008
Description: nrf24l01 delay/****************************************IO端口定义***************************************
//****************************************NRF24L01端口定义***************************************
sbit CE =P1^5
sbit CSN =P1^6
sbit SCK =P1^7
sbit MOSI =P3^7
sbit MISO =P3^6
sbit IRQ =P3^5
sbit KEY1=P2^0 //定义按键
sbit LED=P0^0 //定义LED
//*********************************************NRF24L01*************************************
#define TX_ADR_WIDTH 5 // 5 uints TX address width
#define RX_ADR_WIDTH 5 // 5 uints RX address width
#define TX_PLOAD_WIDTH 20 // 20 uints TX payload
#define RX_PLOAD_WIDTH 20 // 20 uints TX payload
uint const TX_ADDRESS[TX_ADR_WIDTH]= {0x34,0x43,0x10,0x10,0x01} //本地地址
uint const RX_ADDRESS[RX_ADR_WIDTH]= {0x34,0x43,0x10,0x10,0x01} //接收地址
//***************************************NRF24L01寄存器指令
To Search:
File list (Check if you may need any files):
新建 文本文档.txt
nRF24L01中文说明书.pdf
nrf24l01.rar