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.

RTOS/CC2640R2F: About Multi Task Threads co-working

Part Number: CC2640R2F

Tool/software: TI-RTOS

Hi TI,

We have a technical requirement for CC2640R2FRGZR.

Now we are using the CC2640R2 to do the ADC sample. The CC2640R2 should be running with 2 task threads at the same time. One of the threads samples analog datas, by strictly 1 millisecond interval(1000 times per second), using Sensor Controller. The other of them transfers ADC datas by BLE. Because we want to do that, when BLE is transferring ADC datas, the suspending of ADC sampling is prohibited.

However, the method being used is that(by step, only 1 thread is used):

1)Using “Utils_constructClock” to make a clock with 1 millisecond interval.

2)When sampled 40 analog datas(with CC2640R2 Sensor Controller), the CC2640R2 transferred them by BLE.

3)CC2640R2 transfers ADC datas 20 times per second.

So by actual measurement, only 807-808 datas are transferred in a second, and there is about 7.2 milliseconds interval between 40 datas and 40 datas. Also, the actual clock interval is 1.06ms, longer than 1ms.

Sampling analog datas by strictly 1 millisecond interval(the ADC data should be written to CC2640R2 main memory), without suspended by BLE transferring, how can CC2640R2 do that?

If CC2640R2 can achieve that with 2 task threads co-working, we want to know the way.

If CC2640R2 cannot, we want to know why. Besides, we want to know whether the CC2640R2 should be replaced.

Thanks