我有 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年“我要开发板活动”又开始了! | |
打赏了!打赏了!打赏了! |
打赏帖 | |
---|---|
【我踩过的那些坑】电感选型错误导致的处理器连接不上被打赏50分 | |
【我踩过的那些坑】工作那些年踩过的记忆深刻的坑被打赏10分 | |
【我踩过的那些坑】DRC使用位置错误导致的问题被打赏100分 | |
我踩过的那些坑之混合OTL功放与落地音箱被打赏50分 | |
汽车电子中巡航控制系统的使用被打赏10分 | |
【我踩过的那些坑】工作那些年踩过的记忆深刻的坑被打赏100分 | |
分享汽车电子中巡航控制系统知识被打赏10分 | |
分享安全气囊系统的检修注意事项被打赏10分 | |
分享电子控制安全气囊计算机知识点被打赏10分 | |
【分享开发笔记,赚取电动螺丝刀】【OZONE】使用方法总结被打赏20分 |