nRF24L01+ interface with AT89S52
Sat Aug 30 2014, 09:33 pm
Forgot to attach files. This has source for both RX and TX you can do it by defining macro like:
#define TX_MODE //for tx //or #define RX_MODE
Thu Aug 18 2016, 07:10 pm
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 :
RX LOGIC
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
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
Powered by e107 Forum System