We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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?
Gee, could be, but what are the values of the rxconf.buf[] elements and how do they relate to the values that the device's data sheet prescribes?
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.