我有 44 个 ADC 通道配置为队列扫描。 我使用给定的函数初始化它们,但是尽管我选择了采样时间为 1e-7,但我无法让它们更快地采样
有什么建议吗?
/* Function
to initialize the EVADC group with default parameters */void
initEVADCGroup(IfxEvadc_GroupId grpId, IfxEvadc_GroupId grpIdMstr,
IfxEvadc_Adc_Group *adcGroup){ /* Create and initialize group
configuration with default values */ IfxEvadc_Adc_GroupConfig
adcGroupConfig; IfxEvadc_Adc_initGroupConfig(
adcGroupConfig, g_evadc); /* Setting user configuration using group 2
*/ adcGroupConfig.groupId = grpId; adcGroupConfig.master =
grpIdMstr; adcGroupConfig.startupCalibration = TRUE;
adcGroupConfig.inputClass->sampleTime = 1e-7; /* Enable queued
source */ adcGroupConfig.arbiter.requestSlotQueue0Enabled = TRUE;
/* Enable all gates in "always" mode (no edge detection) */
adcGroupConfig.queueRequest[0].triggerConfig.gatingMode =
IfxEvadc_GatingMode_always; /* Initialize the group */
IfxEvadc_Adc_initGroup(adcGroup, adcGroupConfig);}
44个ADC通道配置为队列扫描,为什么无法更快的采样?
![](http://uphotos.eepw.com.cn/24681012/thumb/avatar.jpg)
关键词: ADC 采样 配置
![](http://uphotos.eepw.com.cn/1642473880/thumb/avatar.jpg)
unction(&adcGroupConfig, grpId); /* Assign the ADC master group */ adcGroupConfig.master = grpIdMstr; /* Set the sampling time for all channels */ adcGroupConfig.sampleTime[0].onTime = 1.0e-7; /* set ON time to 100ns */ adcGroupConfig.sampleTime[0].offTime = 1.0e-7; /* set OFF time to 100ns */ adcGroupConfig.sampleTime[14].onTime = 1.0e-7; /* set ON time to 100ns for channel 14 */ adcGroupConfig.sampleTime[14].offTime = 1.0e-7; /* set OFF time to 100ns for channel 14 */ /* Initialize the ADC group with the configuration */ IfxEvadc_Adc_initGroup(adcGroup, &adcGroupConfig);} /* In main function */int main(void){ IfxEvadc_Adc_Group adcGroup[2]; /* ADC groups */ /* Initialize ADC groups */ initEVADCGroup(IfxEvadc_GroupId_0, IfxEvadc_GroupId_0, &adcGroup[0]); initEVADCGroup(IfxEvadc_GroupId_1, IfxEvadc_GroupId_0, &adcGroup[1]);}
回复
有奖活动 | |
---|---|
高温试验箱出现故障该怎么办? | |
5月直播——【探索边缘智能的未来——直播盛宴即将开启!】 | |
请大声喊出:我要开发板! | |
【有奖活动】EEPW网站征稿正在进行时,欢迎踊跃投稿啦 | |
【有奖活动】智能可穿戴设备AR/VR如何引领科技新潮流! |
打赏帖 | |
---|---|
换逻辑分析仪_STM32F103认识串口F103相关的知识认识被打赏18分 | |
“DFRobot盖革计数器模块评测”了解电离辐射对人体的危害被打赏8分 | |
“DFRobot盖革计数器模块评测”了解盖革计数器和电离辐射危害被打赏18分 | |
换逻辑分析仪_STM32F103_HAL库PWM呼吸灯被打赏23分 | |
换逻辑分析仪_STM32F103_(寄存器)PWM呼吸灯被打赏20分 | |
换逻辑分析仪STM32F103HAL库定时器被打赏13分 | |
换逻辑分析仪_STM32F103_(HAL库)驱动GPIO操作,点亮LED被打赏13分 | |
【分享评测,赢取加热台】+拆解一个儿童的python编程主控板被打赏20分 | |
【分享评测,赢取加热台】+拆解一个共享充电宝被打赏20分 | |
【换取手持数字示波器】+自制的STC无线调试器被打赏17分 |