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.

CC2530 Timer Modulo Mode problem

Other Parts Discussed in Thread: CC2530, CC2510

Hi,

  I am trying to use timer 1 or timer 3 in modulo mode to generate an interrupt. Even though the timer counts upto TCC0 an interrupt is not generated. The same code works fine on a CC2510 for timer 3. Since there are are no changes in timer 3 registers in CC2530 i expect the same code to work here too. But as i mentioned there is no interrupt generated. Kindly let me know whether you have faced this problem too and any suggestions to over come the same are welcome.

thanks..

kannan..

  • The timers are different between CC253x and CC251x/CC111x/CC243x in that respect. On CC2530, you will not get an overflow interrupt in modulo mode, except if the timer is started with a value above T1CC0/T3CC0 and this causes the timer to wrap around. To get an interrupt when the timer reaches the modulo value, enable a compare interrupt on T1CC0/T3CC0 (which already will be programmed to the modulo value).

  • hi hec,

        thanks for the help. will use the compare mode instead. I am also facing another problem with the radio. I am using the DMA controller to read the data received from the radio. The DMA is working fine no problems at all. However when i use the DMA to read the RFD RX FIFO the RXFIFOCNT does not return back to zero when all the data has been read and this leads to an RX FIFO overflow error after a few packets. When i read the RFD RX FIFO directly then for each byte read the RXFIFOCNT decrements. I would like to know whether there is a method of automating this when using the DMA. If i use the ISFLUSHRX strobe the clear the FIFO after the data has been read by the DMA my code stops functioning. So should i manually clear the RXFIFOCNT register instead??? 

  • How do you program your DMA? You should use trigger 11 as the DMA trigger, and use single (or repeated single) mode. If you use DMA to read the length byte out of the FIFO, you should set VLEN = 100 to account for the length byte and the two CRC bytes. WORDSIZE should be 0 (8 bits), and M8 should be 1 (7-bit length field). If you read out the length field manually and then start the DMA, remember to take the CRC bytes into account when programming the length.

    Writing to RXFIFOCNT has no effect. It reflects the number of bytes in the FIFO and will only be updated when data is received by the radio, when data is read out of the FIFO, and when the FIFO is flushed.

  • hi hec,

        thanks for your help with the DMA problem. The fault was mine since i wasnt arming the DMA channel according to my radio communication. Thanks for your help anyways. The project I am currently working on requires me to the achieve accurate timing measurements with respect to radio communication. I have two doubtsregarding this issue.

    1) While using CC2530 there is a signal correlator in the receiver that helps to despread the received signal. I would like to know the frequency at which the signal correlator runs. Right now according to my readings I have estimated that the signal correlator runs at 8MHz. I would like to know whether this estimate is correct.

    2) While using CC2510 there is an ADC in the receive section that is responsible for analog to digital conversion from the radio front end. I would like to know the typical sampling rate of the this ADC. 

    I was not able to find this information in the datasheet. I would really like to know these values since i can develop and model my algorithm considering these timings. It would be help full if you could even give me an approximate value for these parameters. Thanks for all the help once again

    Cheers!!

    Kannan.

  • hi,

    we are working on a i2s project and we need the configuration for timer 3 in cc2510. could u kindly give us the code so that we can go ahead with our work.

     

    thanks 

  • lots of users have the same problem while using CC2530, it will be very nice if add these discription in datasheet~