我有 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通道配置为队列扫描,为什么无法更快的采样?

关键词: ADC 采样 配置

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]);}
回复
有奖活动 | |
---|---|
【EEPW电子工程师创研计划】技术变现通道已开启~ | |
发原创文章 【每月瓜分千元赏金 凭实力攒钱买好礼~】 | |
【EEPW在线】E起听工程师的声音! | |
“我踩过的那些坑”主题活动——第001期 | |
高校联络员开始招募啦!有惊喜!! | |
【工程师专属福利】每天30秒,积分轻松拿!EEPW宠粉打卡计划启动! | |
送您一块开发板,2025年“我要开发板活动”又开始了! | |
打赏了!打赏了!打赏了! |
打赏帖 | |
---|---|
多组DCTODC电源方案被打赏50分 | |
【我踩过的那些坑】STM32cubeMX软件的使用过程中的“坑”被打赏50分 | |
新手必看!C语言精华知识:表驱动法被打赏50分 | |
【我踩过的那些坑】杜绑线问题被打赏50分 | |
【我踩过的那些坑】STM32的硬件通讯调试过程的“坑”被打赏50分 | |
【我踩过的那些坑】晶振使用的问题被打赏100分 | |
【我踩过的那些坑】电感选型错误导致的处理器连接不上被打赏50分 | |
【我踩过的那些坑】工作那些年踩过的记忆深刻的坑被打赏10分 | |
【我踩过的那些坑】DRC使用位置错误导致的问题被打赏100分 | |
我踩过的那些坑之混合OTL功放与落地音箱被打赏50分 |