This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

setting channels in nRF24e1

I am trying to cange the channel and power in the nRF24e1 but I don't obtain results.
A basic code for getting this maybe as follows:


    CS = 1;
    DELAY_100us(0);
    SPI_ReadWrite(CHANNEL);
    DELAY_100us(0);
    for(b=0;b<rxconf.n;b++)
    {
        SPI_ReadWrite(rxconf.buf[b]);
    }
    CS = 0;

Is this correct?

Parents Reply Children
  • The values for the buf are these:

    const RFConfig txconf =
    {
        15,
        0x08, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
        0x12, 0x34, 0x56, 0x78, 0x83, 0x6c, 0x04
    };
    
    const RFConfig rxconf =
    {
        15,
        0x08, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
        0x87, 0x65, 0x43, 0x21, 0x83, 0x6c, 0x05
    };
    

    The datasheet prescribes that the 2-byte configuration word must be transmitted prior to the RxTxConfBuf. I think so. Is this correct?

  • The data sheet says that "Direct Mode" (i.e., the first two bytes for general device configuration) is not supported by the nRF24E1.