Continue ADC sampling in the background, for BLE application

2 posts / 0 new
Last post
jamesleo-konka
Offline
Last seen: 5 years 1 month ago
Joined: 2017-01-22 02:42
Continue ADC sampling in the background, for BLE application

Hi Dialog,
Is it possible to implement continue ADC sampling in the background?
For example, in DMA mode at BLE mode.
I'm not sure whether the OS_TIMER is precision to do the us/ms level sampling.
For a long period sampling, we can use the software timer - if no precision is required.
Does the HW ADC be blocked when system get into sleep for BLE application?

Is there a sample code for this ADC mode?

Thanks

Device: 
MT_dialog
Offline
Last seen: 1 year 2 months ago
Staff
Joined: 2015-06-08 11:34
Hi jamesleo-konka,

Hi jamesleo-konka,

There is a sample of how to use the ADC in the peripherals demo. Currently the SDK doesn't support ADC operations over the DMA, additionally when the 68x goes to sleep all the peripherals including the DMA and the ADC are switched off, so you wont be able to be in sleep mode and have your ADC providing values. The reason for the DMA on the 68x is to offload the processor from peripheral interaction,  and its not able to operate under sleep mode. 

Thanks MT_dialog