How to set the chip to transmit mode (NRF24L01 as an example)

For the chip that just touched NRF24L01, it must be very strange. It feels amazing. I happened to see a friend on the Internet asking how to set the chip to launch mode. Let me share it with you here:

This needs to be set in the program, let's take a look at the NRF24L01 configuration register:

How to set the chip to transmit mode (NRF24L01 as an example)

As shown in the above table, the configuration register address is 0x00, which is a byte, the highest is 0 by default; MASK_RX_DR is the role of setting IRQ. If it is equal to 1, the IRQ pin will not be used. Otherwise it is used to generate a high and low pulse. When RX_RD generates an interrupt, IRQ is low and it is used for reception. When MASK_TX_DS is 1, the IRQ pin is not used. Otherwise, when the data is transmitted, TX_DS will generate a The interrupt causes the IRQ pin to jump low and it is used for transmission. When MASK_MAX_RT is 1, the IRQ pin is not used. Otherwise, when the number of transmissions or receptions reaches the setting, MAX_RT will generate an interrupt to make IRQ. The pin jumps to your level; EN_CRC is generally 1, which is to start the CRC check; CRCO is to set the CRC mode, when it is 0, start the 8-bit CRC check, otherwise start the 16-bit CRC check; PWP_UP it is set NRF24L01 working mode, when it is 1, it is powered on, otherwise it is power-down, its role is to save power; PRIM_RX it is set NRF24L01 is working in transmit or receive mode, when equal to 1, then In receive mode, otherwise in transmit mode.

Ok, the above has been analyzed very clearly, now you should know how to set up the NRF24L01 wireless module for the launch mode! As long as you set PRIM_RX to 0, you can enable it in the transmit mode! Others can be activated according to your own situation!

Smart Multimeter

Smart Multimeter ,Smart Digital Multimeter,Digital Smart Multimeter,Multimeter Smart

YINTE TOOLS (NINGBO) CO., LTD , https://www.yinte-tools.com