LPC1343 + nRF24L01

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

LPC1343 + nRF24L01

866 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by bobi-one on Fri Jul 08 05:11:14 MST 2011
I  recently got some wireless modules and now i'm trying to interface them. I found some example code for LPC2XX but changing it was a bit of a pickle .
This  is the receiver code( while the master is constantly sending). My concern is the MISO reading of value "0E",  because i am not really sure is this kind of SPI code working properly.
unsigned char  SPI_SendByte(unsigned char data) {


  LPC_SSP->DR =data;
  while (LPC_SSP->SR & 0x10);
  return (LPC_SSP->DR);
}

If someone have already interfaced this kind off of chips i will be thankful for advice and solutions.
0 项奖励
回复
1 回复

835 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Luis Digital on Wed Oct 12 15:20:32 MST 2011
I have now several nrf24l01+, and I have found very good (over 15 meters range with obstacles, low consumption, economic ...).

Well, the answer "0x0E" seems to be normal is the default value of the status register.

The code can be found here.

It is for LPC21xx, but I am using two LPC1111 development boards, with some modifications.
0 项奖励
回复