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.

CC2640R2F ADC采样时间

我有两个ADC channel,一个检测电量,一个检卡。

我测试发现检测电量的这个channel ADC采样一次用时 40us, 检卡这个channel ADC采样需要10ms。

这两个channel的初始化、采样这部分代码都是一样,不知道为什么采样时间会差别这么大。

static void app_adc_init( void )
{
    ADC_Params   adcParams;

    ADC_init();

    ADC_Params_init(&adcParams);
    app_battery_adc_handle = ADC_open( ADC_BATTERY_DETECT, &adcParams );
    if( app_battery_adc_handle == NULL )
        while(1);

    ADC_Params_init(&adcParams);
    app_card_adc_handle = ADC_open( ADC_CV520_CARD_DETECT, &adcParams );
    if( app_card_adc_handle == NULL )
        while(1);
}

void app_evt_process_rfu_timer(void)
{
    HWREGB( GPIO_BASE + GPIO_O_DOUT3_0 + PIN_DBG_03 ) = 1;
    ADC_convert( app_card_adc_handle, &adc_test );
//    ADC_convert( app_battery_adc_handle, &CurValue );
    HWREGB( GPIO_BASE + GPIO_O_DOUT3_0 + PIN_DBG_03 ) = 0;
}