EB_Tresos ADC

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

EB_Tresos ADC

1,140 次查看
chenyh
Contributor II

您好 我想问一下为什么我用EB_Tresos配置的can通讯采集数据,一个ADC只能采集2个数据,第三个数据就和第一个数据重复,我上传了一些图片,帮我看看哪里有问题吗?425e829d68518923b2d0595c20800e9.png425e829d68518923b2d0595c20800e9.pngc21b63d0034be6775beff1d6cd97474.pngc21b63d0034be6775beff1d6cd97474.png

标记 (1)
0 项奖励
回复
1 回复

1,097 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

CAN has nothing related with ADC, so if used both somehow it is simply application task.
For your code, if you start group conversion, you should wait for conversion completion before you can read results. Either you can do this using interrupt and notification enabled (as done in RTD demo example) or for example by calling of Adc_GetGroupStatus function in a loop.

BR, Petr

0 项奖励
回复