在NRF24L01模块和51单片机组成的系统中,NRF24L01的电压为3.3V,但在写进单片机程序后,测量NRF24L01的电压VCC为1V左右,为什么呢?那出了问题?
IQR的中断怎么屏蔽呢?我设置了 发送模式下:SPI_RW_Reg(WRITE_REG + CONFIG, 0x7e); 但单片机仍然响应中断,是那设置错了?
发送模式的程序如下,我想只发送,这样读回的status 值是多少呢?请帮帮忙解答。谢谢!
SPI_Write_Buf(WRITE_REG + TX_ADDR, TX_ADDRESS, TX_ADR_WIDTH); // Writes TX_Address to nRF24L01
SPI_Write_Buf(WRITE_REG + RX_ADDR_P0, TX_ADDRESS, TX_ADR_WIDTH); // RX_Addr0 same as TX_Adr for Auto.Ack
SPI_Write_Buf(WR_TX_PLOAD, tx_buf, 1); // Writes data to TX payload
SPI_RW_Reg(WRITE_REG + EN_AA, 0x00); // Enable Auto.Ack:Pipe0
SPI_RW_Reg(WRITE_REG + EN_RXADDR, 0x01); // Enable Pipe0
SPI_RW_Reg(WRITE_REG + SETUP_RETR, 0x00); // 500us + 86us, 10 retrans...
SPI_RW_Reg(WRITE_REG + RF_CH, 40); // Select RF channel 40
SPI_RW_Reg(WRITE_REG + RF_SETUP, 0x07); // TX_PWR:0dBm, Datarate:2Mbps, LNA:HCURR
SPI_RW_Reg(WRITE_REG + CONFIG, 0x7e); // Set PWR_UP bit, enable CRC(2 bytes) & Prim:TX. MAX_RT & TX_DS enabled..
CE=1;