Posted on April 14, 2017 at 14:44
i'm trying to communicate with NRF24L01 RFmodule, it seems that spi init. is ok , but when i'm trying to read for example theREG_RF_CH Registry (0x05) it should return the reset value (0x02) but that does not hap...
Posted on April 17, 2017 at 17:06 Thanks Centauris.Alphafor your Help, you are right, the correct code is: uint8_t SPI1_WriteRead_byte (uint8_t wr) { uint8_t data=0; while ((SPI1->SR & SPI_SR_TXE) != SPI_SR_TXE); *((__IO uint8_t *)&SPI1->DR...