- Fri Jun 15, 2012 2:00 am
#146057
Hi all,
I am new to RF24L01.
Currently, I want to test writing and reading back some values of control register through SPI bus.
The problem is only the first read back after writing a new value to a register returns the expected value.
For example:
- I write 0 to CONFIG register
- Then I read back => it is 0 which is OK
- Then I read more => it becomes 0x08 which is the default value of CONFIG register
- I try to read more => it is always 0x08 !!!!
- Then I try to re-write 0 to it => read back 0 but subsequent readings still return 0x08 !!!
I try to write/read other register, the result is the same !!!!
Could anyone help me to figure out what is the reason for my problem?
Thanks,
Huy
I am new to RF24L01.
Currently, I want to test writing and reading back some values of control register through SPI bus.
The problem is only the first read back after writing a new value to a register returns the expected value.
For example:
- I write 0 to CONFIG register
- Then I read back => it is 0 which is OK
- Then I read more => it becomes 0x08 which is the default value of CONFIG register
- I try to read more => it is always 0x08 !!!!
- Then I try to re-write 0 to it => read back 0 but subsequent readings still return 0x08 !!!
I try to write/read other register, the result is the same !!!!
Could anyone help me to figure out what is the reason for my problem?
Thanks,
Huy