nrf24l01 problem with configuration


hi
i'm using nrf24l01 atmega8. can't set registers of module... here code...i want set rf_ch register 0x06(default value 0x02) , when read register didn't change! out put of code like: 11 22 0e 02
0e status , 02 rf_ch... please me here :~ 
code: [select]

portb.0=1;//used ce
portb.1=1;//used csn
putchar(0x11);
delay_ms(1000);

portb.1=0;
delay_ms(10);
spi(0x25);// write channel register
delay_ms(10);
spi(0x06);
delay_ms(10);
putchar(0x22);
portb.1=1;

delay_ms(10);
portb.1=0;
p=spi(0x05);
delay_ms(10);
putchar(p);
p=spi(0xff);
delay_ms(10);
putchar(p);
portb.1=1;

you can either use rf24 libs ( https://github.com/stanleyseow/rf24 or other forks ) or mirf libs..

google either of libs.. mirf should smaller less features compared rf24..



Arduino Forum > Using Arduino > Networking, Protocols, and Devices (Moderator: fabioc84) > nrf24l01 problem with configuration


arduino

Comments

Popular posts from this blog

Convierte tu Raspberry en un NAS. Firmware fvdw-sl 15.3 - Raspberry Pi Forums

How to format a Get Request

avrdude: verification error, first mismatch at byte 0x0000 0x0c != 0x62