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
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