<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>the communication of nRF51822 and nRF24l01P</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/1065/the-communication-of-nrf51822-and-nrf24l01p</link><description>Hi,
I want to use the nrf51822 to communicate withe the old module of 24l01p, in the module of 24l01p, the Address is
addrofch[0] = 0xe7; 
addrofch[1] = 0x7e; 
addrofch[2] = 0xe3; 
addrofch[3] = 0x0; 
addrofch[4] = 0x0;
the power is 0db, the rate</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 05 Dec 2013 04:35:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/1065/the-communication-of-nrf51822-and-nrf24l01p" /><item><title>RE: the communication of nRF51822 and nRF24l01P</title><link>https://devzone.nordicsemi.com/thread/5036?ContentTypeID=1</link><pubDate>Thu, 05 Dec 2013 04:35:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5dbc175-ea2e-44d9-ac5b-e534dec4a799</guid><dc:creator>Bastiaan</dc:creator><description>&lt;p&gt;Hi,
Thank you for your reply. I configrue the address as your advice,the 51822 can receive data and the data can get through the PC by the UART. However,I have another confusion. In the 51822 radio- RX ,I configure as follows:
if (NRF_RADIO-&amp;gt;CRCSTATUS == 1U)
{
nrf_gpio_pin_set(10);
for(i=0;i&amp;lt;8;i++)
{
rbuf[i]=packet[i];
}
simple_uart_putstring(rbuf);
}
In this case,the CRCSTATUS==0 all the time,I receive the data by this:
while(NRF_RADIO-&amp;gt;EVENTS_DISABLED == 0U)
{
}
for(i=0;i&amp;lt;8;i++)
{ rbuf[i]=packet[i];
}
simple_uart_putstring(rbuf);
nrf_delay_ms(10);	
}
please help me to find is there any mistakes in my code? In my understanding, if the two devices can communicate, the CRCSTATUS==1 is right. If the CRCSTATUS is 0, is there any mistakes?
please give me an explanation,thank you! why there is data in the packet,however, the CRCSTATUS is 0 all the time?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: the communication of nRF51822 and nRF24l01P</title><link>https://devzone.nordicsemi.com/thread/5038?ContentTypeID=1</link><pubDate>Thu, 05 Dec 2013 04:35:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96aeb9ed-264d-466c-9ca1-5fe035d09ca6</guid><dc:creator>Guest</dc:creator><description>&lt;p&gt;Hi,
Thank you for your reply. I configrue the address as your advice,the 51822 can receive data and the data can get through the PC by the UART. However,I have another confusion. In the 51822 radio- RX ,I configure as follows:
if (NRF_RADIO-&amp;gt;CRCSTATUS == 1U)
{
nrf_gpio_pin_set(10);
for(i=0;i&amp;lt;8;i++)
{
rbuf[i]=packet[i];
}
simple_uart_putstring(rbuf);
}
In this case,the CRCSTATUS==0 all the time,I receive the data by this:
while(NRF_RADIO-&amp;gt;EVENTS_DISABLED == 0U)
{
}
for(i=0;i&amp;lt;8;i++)
{ rbuf[i]=packet[i];
}
simple_uart_putstring(rbuf);
nrf_delay_ms(10);	
}
please help me to find is there any mistakes in my code? In my understanding, if the two devices can communicate, the CRCSTATUS==1 is right. If the CRCSTATUS is 0, is there any mistakes?
please give me an explanation,thank you! why there is data in the packet,however, the CRCSTATUS is 0 all the time?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: the communication of nRF51822 and nRF24l01P</title><link>https://devzone.nordicsemi.com/thread/5035?ContentTypeID=1</link><pubDate>Wed, 04 Dec 2013 14:09:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b594de8c-2d6f-46a2-b1f7-3dd262d0781a</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I understood you question but it was my mistake not to point out the issue in your configuration.&lt;/p&gt;
&lt;p&gt;As you can find in the nRF51 Reference Manual at section 16.1.2, least significant byte is sent first, and least significant bit also is sent first (little endian) when the compiler use store the MSBit first for each byte. So there is a bit swap for each byte needed,(bytewise_bitswap().&lt;/p&gt;
&lt;p&gt;So you would need to set your address to:&lt;/p&gt;
&lt;p&gt;NRF_RADIO-&amp;gt;BASE0 = 0x7EC70000;
Or as in the example:
NRF_RADIO-&amp;gt;BASE0 = bytewise_bitswap(0x7ee30000UL);&lt;/p&gt;
&lt;p&gt;Note that e7 and 7e and 00 remain the same when reverse the bit. And E3 reversed -&amp;gt; C7&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: the communication of nRF51822 and nRF24l01P</title><link>https://devzone.nordicsemi.com/thread/5037?ContentTypeID=1</link><pubDate>Wed, 04 Dec 2013 11:52:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:886e6f9a-4ac6-4a77-8783-7a2378ec1eab</guid><dc:creator>Guest</dc:creator><description>&lt;p&gt;Hi ,
Thank you for your reply. Maybe I don&amp;#39;t explain very clearly.Now I want to use 51822 to receive data that from the transmit  module of 24l01. The Address of 24l01 is  the Address is
addrofch[0] = 0xe7;	
addrofch[1] = 0x7e;	
addrofch[2] = 0xe3;	
addrofch[3] = 0x0;	
addrofch[4] = 0x0;
the power is 0db, the rate is 1M,and the length of data is 8,and the crc is two bytes. the frequncy is 9.
How can I configure the 51822 the Address?
I configure it like this NRF_RADIO-&amp;gt;PREFIX0= 0xe7UL;	
NRF_RADIO-&amp;gt;BASE0 =0x7ee30000UL; Is it right?please give me an explanation,thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: the communication of nRF51822 and nRF24l01P</title><link>https://devzone.nordicsemi.com/thread/5034?ContentTypeID=1</link><pubDate>Wed, 04 Dec 2013 11:52:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93cf23ce-d398-4dea-b47d-c59028716929</guid><dc:creator>Bastiaan</dc:creator><description>&lt;p&gt;Hi ,
Thank you for your reply. Maybe I don&amp;#39;t explain very clearly.Now I want to use 51822 to receive data that from the transmit  module of 24l01. The Address of 24l01 is  the Address is
addrofch[0] = 0xe7;	
addrofch[1] = 0x7e;	
addrofch[2] = 0xe3;	
addrofch[3] = 0x0;	
addrofch[4] = 0x0;
the power is 0db, the rate is 1M,and the length of data is 8,and the crc is two bytes. the frequncy is 9.
How can I configure the 51822 the Address?
I configure it like this NRF_RADIO-&amp;gt;PREFIX0= 0xe7UL;	
NRF_RADIO-&amp;gt;BASE0 =0x7ee30000UL; Is it right?please give me an explanation,thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: the communication of nRF51822 and nRF24l01P</title><link>https://devzone.nordicsemi.com/thread/5033?ContentTypeID=1</link><pubDate>Wed, 04 Dec 2013 11:29:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9d76040-55f9-4822-9f08-1d4dd4c8c114</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Linda,&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t see any issue with your setup. I have tried your configuration with a nRF51822 and a nRF24LE1 and they work properly. nRF24LE1 has the same radio as nRF24L01+.&lt;/p&gt;
&lt;p&gt;Have you make sure you set S0, S1, LEN length to 0 ? PACKET_BASE_ADDRESS_LENGTH to 4 and PACKET_STATIC_LENGTH matched with the number of byte you sent ?&lt;/p&gt;
&lt;p&gt;I attached here the examples that I modified for your reference.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/radio_5F00_example_5F00_LE1.zip"&gt;radio_example_LE1.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ptx_5F00_SBnRF51.zip"&gt;ptx_SBnRF51.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>