TRW-24G cc5x code not working

Hi! below is the code Im sending from module to another. The same code lives in both modules and well in theory this should work. Can anyone see why this wouldnt work. the code works with both modules connected to 1 pic but when I isolate the modules with their respective pics and run the program it doesnt work. :cry:

thanx in advance

mango4u

while(1)
    {
      
        
       if(SW==0)
        {
        delay_ms(250); 
        delay_ms(250); 
        configure_transmitter();
        receiveLED=0;
        data_array[0] = 0x31;
        data_array[1] = 0x32;
        data_array[2] = 0x33;
        data_array[3] = counter;
        DelayUs();       // delay 100uS
        transmit_data();
        delay_ms(10);
        configure_receiver();        
       }
        
        
        if(RX_DR == 1) //We have data!
          { 
            DelayUs();
            receive_data();
            receiveLED=1;
          }

I am not able to view your entire code so here are some observations:

  1. When both radios are on a single pic the tx/rx is very synchronized.

  2. When Sw != 0 there is no configure_receiver().

  3. I would put one unit in continuous tx mode and the other in rx.

  4. If you have the hardware, configure one pic with your orininal 2 radio

setup and put a third radio on the second pic in rx only.

George[/quote]

More than likely what’s happening is BOTH transceivers are configured as a transmitter and receiver at the same time. To avoid this, setup one end to act like a slave (only send when he receives).