//我的ADC配置adc_config_t echo_pin_cfg = {.input_mode = ADC_INPUT_MODE_SINGLE_ENDED, .input = ADC_INPUT_SE_P0_6, .smpl_time_mult = 15, .continuous = true, .interval_mult = 0, .input_attenuator = ADC_INPUT_ATTN_4X, .chopping = false, .过采样= 7};adc_init(及echo_pin_cfg);//采样ISR代码void timer_0_isr() {if ((counter % 4) == 0) //大约每50微秒{adc_count = adc_get_sample();Sprintf ((char *) tempbuff," %d, %d \n",adc_count,counter);uart_send(UART2, (uint8_t *) tempbuff, strlen(tempbuff), UART_OP_BLOCKING);柜台}+ +;} < /代码> < / pre > < p > < >强供参考:定时器0 ISR重载值为12.5微秒< /强> < / p > < p > < / p > < p >项目使用:< >强ble_app_peripheral < /强> < / p > < p >当我试着调试我的程序<强>垃圾从我的ADC值频道< / >,< >强BLE启动时广告> < /强。 Otherwise I get required ADC counts. This repeats for every 3 seconds as BLE interval is set for this value in user_peripheral.h When I turn Off ADV PACKETS through setting
// Default Handler Operations static const struct default_app_operations user_default_app_operations = { .default_operation_adv = NULL, // PREVIOUSLY ITS DEFINED AS user_app_adv_start };
in user_callback_config.h I get proper output from my ADC channel.
P.S. check the attached file and do the needful.
I need clarification on why BLE ADV timer interrupts ADC channel, how to overcome it ?
Br,
BALAJI.
Keywords: Device: