Hi,
I've never used this device (yet - I've had a couple of tranceivers for a while but haven't gotten around to playing with them) but overall I'd say you're on the right track. The byte and bit order seems to be correct.
However, if you look at the W_REGISTER command in the datasheet you'll see that it's stated as 001A AAAA where the five A's represents the adress. In your code you seem to have the command and the adress split into to separate bytes.
I think you should do something like:
Code:
Data_Out[0] = Write_Reg + Setup_aw ' Set adress width for all pipes
Data_Out[1] = $03 ' $03=5bytes for all pipes
Num_Byte = 1
GOSUB SPI_WRITE
Data_Out[0] = Write_Reg + RX_Adress_P0
Data_Out[1] = "N"
Data_Out[2] = "E"
Data_Out[3] = "T"
Data_Out[4] = "1"
Data_Out[5] = "4"
Num_Byte = 5
GOSUB SPI_Write
But again, that's just MY interpretation of the datasheet.
/Henrik.
Bookmarks