Discussion in "Project Help" started by    rajavarmanslr    Aug 18, 2016.
Thu Aug 18 2016, 06:01 pm
#1
I have two 8051 that interfaces with nRF24l01. One act as transmitter and another one is receiver. Here i am transmit and receive 1 byte character. My transmitter is working fine. How i am saying is, when i payload the data TX_DR bit is set. So only i am saying transmitter is working. SPI is working well. But receiver is not receiving anything. please help me out.

MY PAYLOAD WIDTH IS 1 BYTE BOTH TRANSMIT AND RECEIVE.

TX LOGIC :

CE = 0;
TX_ADDR    : 5BYTE ADDRESS 
RX_ADDR_P0 : 5BYTE ADDRESS
EN_AA      : 0X00   (DIABLE AUTO ACK)
SETUP_PETR : 0X1A   (Auto retransmit: wait 500us, 10 retries)
RF_CH      : 0X6E   (Set frequency channel 110 (2.510MHz))
RF_SETUP   : 0X07   (Setup: 1Mbps, 0dBm, LNA on )
W_TX_PLOAD : 0XA0   
SEND DATA  : 'A'    (HERE I AM TRANSMITTING ONE CHARACTER)
CONFIG     : 0X0E   (Config: CRC on (2 bytes), Power UP, RX/TX ctl = PTX)
CE = 1;
DELAY(10uS);
CE = 0;


RX LOGIC

CE =0; 
RX_ADDR_P0 : 5BYTE ADDRESS 
EN_AA      : 0X00   (DIABLE AUTO ACK)
EN_RXADDR  : 0X01
RF_CH      : 0X6E   (Set frequency channel 110 (2.510MHz))
RX_PW_P0   : PAYLOAD WIDTH
RF_SETUP   : 0X06   (Setup: 1Mbps, 0dBm, LNA oFF )
CONFIG     : 0X0F   (Config: CRC on (2 bytes), Power UP, RX/TX ctl = PRX)
Then receive buffer.


this is my configuration of tx and rx mode. if you have any doubt in my question just ask me. please solve my problem. SPI is working well. problem is receiving side, i think so. help me soon.... thanks in advance


[ Edited Thu Aug 18 2016, 06:03 pm ]
Thu Oct 06 2016, 11:43 am
#2
CE should be high when you go for reading mode/wait for packet to arrive. are you checking status register before doing a read?

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

Richardedils
Wed Apr 24 2024, 04:07 am
ChrisLub
Tue Apr 23 2024, 05:21 pm
Davidbab
Tue Apr 23 2024, 10:41 am
Richardrit
Tue Apr 23 2024, 09:54 am
HenryLaf
Mon Apr 22 2024, 03:50 pm
bleradrar
Mon Apr 22 2024, 06:38 am
ppu-pro_ka
Sun Apr 21 2024, 07:39 pm
Infewow
Sun Apr 21 2024, 06:30 pm