Quantcast
Channel: Wireless Connectivity
Viewing all articles
Browse latest Browse all 116964

Forum Post: CC2540 ADC sampling while transmitting

$
0
0

Hi,

Im sampling a signal using the ADC at a rate of 300Hz (and is triggered by a timer). The samples are copied by DMA and I receive an interrupt every 10 samples. At that point, I transmit the data.

Is there a way to synchronize between the ADC and the transmission ? as the ADC is sampling at a fixed rate, im assuming that the OS may decide to transmit exactly in the middle of a sample.

Is there any way to prevent the cc2540 to transmit while an ADC sample is progress ? I am experiencing errors while sampling an there is a transmission in progress.

Or is there a way to flush the transmission buffer so that it will transmit immediatly, rather than wait for packets to be accumulated? 

Thanks,

Yadid


Viewing all articles
Browse latest Browse all 116964


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>