here is the code. It’s pretty simple so i don’t think it’s hard to understand.
'************************
'* RF Recieve Data *
'************************
RF_Recieve_Data:
'Power down RF Front end
Output RF_CE
Low RF_CE
'Erase the current data array so that we know we are looking at actual received data
'RF_Data_Array[0] = $00
'Clock in data, we are setup for 32-bit payloads
For j = 0 To 3
RF_Data_Temp.0 = RF_Data1
High RF_CLK1
Low RF_CLK1
RF_Data_Temp.1 = RF_Data1
High RF_CLK1
Low RF_CLK1
RF_Data_Temp.2 = RF_Data1
High RF_CLK1
Low RF_CLK1
RF_Data_Temp.3 = RF_Data1
High RF_CLK1
Low RF_CLK1
RF_Data_Temp.4 = RF_Data1
High RF_CLK1
Low RF_CLK1
RF_Data_Temp.5 = RF_Data1
High RF_CLK1
Low RF_CLK1
RF_Data_Temp.6 = RF_Data1
High RF_CLK1
Low RF_CLK1
RF_Data_Temp.7 = RF_Data1
High RF_CLK1
Low RF_CLK1
RF_Data_Array[j] = RF_Data_Temp Rev 8
Next
'Power up RF Front end
High RF_CE
Return
'************************
'* RF Config Recieve *
'************************
RF_Config_Recieve:
'Configure For “ShockRebust” Reciever
Output RF_CE
Output RF_CS
Output RF_CLK1
Output RF_Data1
Low RF_CE
Low RF_CS
Low RF_Data1
Low RF_CLK1
Low RF_DR1
Low RF_CE
High RF_CS
DelayMS 1
'Config Setup word 0010.0011.0100.1110.0000.0101
RF_Config_Setup[0] = %00000101
RF_Config_Setup[1] = %01001110
RF_Config_Setup[2] = %00100011
RF_Config_Setup_Temp = RF_Config_Setup[2] Rev 8
For i = 0 To 7
RF_Data1 = RF_Config_Setup_Temp >> i
High RF_CLK1
Low RF_CLK1
Next
RF_Config_Setup_Temp = RF_Config_Setup[1] Rev 8
For i = 0 To 7
RF_Data1 = RF_Config_Setup_Temp >> i
High RF_CLK1
Low RF_CLK1
Next
RF_Config_Setup_Temp = RF_Config_Setup[0] Rev 8
For i = 0 To 7
RF_Data1 = RF_Config_Setup_Temp >> i
High RF_CLK1
Low RF_CLK1
Next
'Configuration is actived on falling edge of CS (page 10)
Low RF_CE
Low RF_CS
'After configuration of the receiver, we need DATA1 as an input
Input RF_Data1
Input RF_DR1
Low RF_DR1
DelayMS 1
'Start monitoring the air
High RF_CE
Low RF_CS
Return
The Transmission from the Chip is fine
so i made a small loop so basicly i don’t clear the Data Array and send out what i recieve.
but it doesn’t send anything that way.
But if i just Send out Something loke “Y” then the PC Recieves it fine