How to calculate ADC sample rate

2 posts / 0 new
Last post
lonfaye
Offline
Last seen:5 years 5 months ago
Joined:2014-08-20 08:56
How to calculate ADC sample rate

Hi to everyone ,

我需要知道如何计算ADCsample rate of DA14580.

In the SDK and datasheet, I can not get it.

Thanks.

Device:
MH_Dialog (not verified)
Hi Ionfaye,

Hi Ionfaye,

There is no available API in current SDK. However, I attached ADC information here. This should be able to give you some ideas.

A conversion has two phases: the sampling phase and the conversion phase. When bit GP_ADC_CTRL_REG[GP_ADC_EN] is set to ‘1’, the ADC continuously tracks (samples) the selected input voltage. Writing a '1' at bit GP_ADC_CTRL_REG[GP_ADC_START] ends the sampling phase and triggers the conversion phase. When the conversion is ready the ADC resets bit GP_ADC_START and returns to the sampling phase.
The conversion itself is fast and takes about one clock cycle of 16 MHz, though the data handling will require several additional clock cycles depending on the software code style. The fastest code can handle the data in four clock cycles of 16 MHz, resulting to a highest sampling rate of 16 MHz/5 = 3.3 Msample/s

Thank, MH_Dialog