Hi all,
I am trying hard to use a nRF24L01 with my AVR USBKEY (at90usb1287). I am using a reworked version of Atmels sourcecode to drive the nRF. The Problem is: After doing all the initialization to the registers I read all registers back to dump them of the CDC-USART. I can read all the default values perfectly without any error, but ich can’t write the registers.
Even such easy code as
NRF_select(); // CSN low, init SPI transaction
SPDR = 0x05 | 0x20;
while ((SPSR & (1<<SPIF)) == 0);
SPDR = 8;
while ((SPSR & (1<<SPIF)) == 0);
NRF_unselect(); // CSN high again
for setting the channel to 8 isn’t working. As I can read the registers I doubt that there is an error in the wiring and so.
Any ideas?
Best regards,
Robert