When the nRF24L01 wireless communication module sends data, the nRF24L01 should be set to the transmit mode at first, and then the nRF24L01 wireless communication module is connected to the STC89C51 microcontroller through the serial peripheral interface SPI, and then the receiving node address TX_ADDR and valid data TX_PLD entered into the nRF24L01 wireless communication module in sequence, in this process, the receiving address TX_ The ADDR only needs to be entered once, while for valid dataTX_PLD must be entered continuously when the CSN is high. The CE pin is then set to high and maintained above 10 s, and the data is sent after 130?s. If the receiving end of the nRF24L01 wireless communication module turns on the automatic answer mode, then the data is sent and waits for the response of the receiving signal, the accuracy of the information is judged by the feedback data of the receiving end, if the address of the feedback is consistent with the address sent, the data transmission is successful, then the TX_DS is set to a high level and delete the data in the TX_FIFO register: but if the address of the receiving feed does not match the address sent, the TX_ is retained at this time Data in the FIFO register, the sender sends the data through the automatic retransmission function until the data transmission is successful or the number of reissues ARC is greater than the set value, then the MAX_RT or TX_DS is then set to a high level, the interrupt request IRQ is set to a low level, the microcontrol unit MCU is informed through the data interface, and then the microcontrol unit is processed until the data transmission is successful. Then after the successful communication of the sender and receiver, if there is data to be sent, then the system goes into normal send and receive mode, and if no data needs to be sent, then the system goes into idle mode. The time series of data sent by nRF24L01 is shown in Figure 3-9 below:
正在翻译中..