雷竞技电竞平台Dialog半导体客户支持- BLE ADV定时器 https://support.dialog-semiconductor.com/resource-keywords/ble-adv-timer 发布数据中断adc功能 https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/advertise-data-interrupts-adc-function < div class = "字段field-name-taxonomy-forums field-type-taxonomy-term-reference field-label-above”> < div class = "字段标签" >论坛:,< / div > < div class = "字段条目" > < div class =”field-item甚至“rel = " sioc: has_container " > < a href = " /论坛/ dialog-smartbond-bluetooth-low-energy - % E2 % 80% 93 -软件”“=“sioc:容器sioc:论坛”属性= " rdfs: label skos: prefLabel”数据类型= " " >对话框Smartbond蓝牙低能量-软件< / > < / div > < / div > < / div > < div class =”字段field-name-body field-type-text-with-summary field-label-hidden”> < div class = "字段条目" > < div class =”field-item甚至“财产=“内容:编码”> < p >嗨对话框中,< / p > < p >我有一个从后跟踪查询线程< / p > < p > < a href = " https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/ultrasonic-interface-using-timer " target = "平等" > https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/ultrasonic-interface-using-timer < / > < br / > < / p > < >之前//我的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.

Device: 
Mon, 16 Nov 2020 08:27:15 +0000 巴拉吉 386955年https://support.dialog-semiconductor.com https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/advertise-data-interrupts-adc-function#comments