This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RX and TX Mode CC1111

Hi,

in my project i have to use the radio for sending data. I have two different codes (TX and RX) for sendind and receiving data. But now i have to write a code which can send and receive at the same time. 

I tried to change my receive code to send data at the same time but it doesn't work. Do you have any example codes or help for me?

Please help i havn't so much time.

Thank you 

  • Not sure what you are trying to do, CC1111 can only be in Rx or Tx at a given time.

  • I will receive data and then i will transmit it again.

    First i have the cc1111 in rx mode, then i change it to tx to send the data. Here a little code example from me:

    DMAARM &= ~DMAARM_CHANNEL0;                 // disarm channel 0
    for(uint16 h=0; h<50000;h++);                              // wait a little
    ayar(1);                                                                       // change radio in TX mode
    DMA_ayar(2);                                                              // change dma config to TX mode
    DMAARM = DMAARM_CHANNEL0;                       // arm channel 0

    RadioTXXBuffer[1] = a;                                            // set data into buffer

    RFST = 0x03;                                                              // activate tx mode

    DMAARM &= ~DMAARM_CHANNEL0;                 // disarm channel 0
    for(uint16 h=0; h<50000;h++);                              // wait a little
    ayar(3);                                                                        // set to RX mode
    DMA_ayar(1);                                                              // rx dma settings

    DMAARM = DMAARM_CHANNEL0;                       // arm channel 0

    This is my example code for sending and receiving.

    Do you think that is right? What can i change?

    Samed

  • Hi Samed

    Without your complete settings and code I cannot say why things are not working. Please take a look at the code example posted May 16 2014 in the following post:

    http://e2e.ti.com/support/wireless_connectivity/f/156/t/341608.aspx

    There you can see how to set up and use the DMA correctly to send and receive packets. I would recommend that you use this code example as a starting point when trying to both send and receive. It can be a good idea to use two different DMA channels; one for RX and one for TX.

     Siri