LPC54606 ADC 跳变

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC54606 ADC 跳变

3,269 Views
goforit
Contributor I

在使用LPC54606  ADC模块的的过程中发现ADC接地不是一直为0,会有31  15等值,不过大多数时候还是为0.如果引脚接VCC则一直保持在4095.  希望有大佬帮忙解答一下

Labels (1)
Tags (1)
0 Kudos
13 Replies

2,814 Views
jeremyzhou
NXP Employee
NXP Employee

Hi 康 徐,

非常感谢使用NXP产品,很高兴为你提供技术支持!
请问你测试的代码来自SDK吗?还有板子是官方评估板吗?
Have a great day,

TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

2,814 Views
goforit
Contributor I

代码使用的官方SDK,板子使用的北京龙邱的核心板

0 Kudos

2,814 Views
jeremyzhou
NXP Employee
NXP Employee

Hi 康 徐,

你可以把你使用的代码贴上来,我这边测试一下。
Have a great day,
TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

2,814 Views
goforit
Contributor I

例程1.zip_免费高速下载|百度网盘-分享无限制 

我直接把工程放在了云盘,麻烦您了。这个是官方的SDK。您测试起来应该简单一点

0 Kudos

2,814 Views
jeremyzhou
NXP Employee
NXP Employee

Hi 康 徐,

请详细介绍一下你的测试过程,工程,板子名称,硬件配置等,这样可以100%保证现象复现。
Have a great day,
TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

2,814 Views
goforit
Contributor I

测试过程:使能ADC0  0通道,12分辨率进行转换。将ADC0  0通道引脚直接接地,转换出来的结果会有跳变,不持续为0,跳变范围在0-70左右。使用的是龙邱公司的核心板。核心板芯片名称LPC54606J512BD100。使用MDK进行的调试。

0 Kudos

2,814 Views
jeremyzhou
NXP Employee
NXP Employee

Hi 康 徐,

好的,我在LPXpresso 54608板子上测试一下,看看能否复现问题。
Have a great day,
TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

2,814 Views
goforit
Contributor I

您好,请问测试的如何了呢

0 Kudos

2,814 Views
jeremyzhou
NXP Employee
NXP Employee

Hi 康 徐,

测试过程中,我首先按照参考书手册中的Table 1026推荐的引脚配置来重新定义了PIO0_10,而在测试结果中除了一开始会有一些零星大于0的采样值,后面基本上都是0值。

pastedImage_1.png
Have a great day,
TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

2,814 Views
goforit
Contributor I

还有很重要的一点,我转换完成后,立马进行下一次转换。您测试的时候转换之间有加延时?

0 Kudos

2,814 Views
jeremyzhou
NXP Employee
NXP Employee

Hi,

没有加延时,直接测试的,这样的话可能对干扰更敏感一些。
Have a great day,
TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

2,814 Views
goforit
Contributor I

我也是这样设置的,通过IAR在线调试,可以看到转换出来的结果虽然大多数时间为0,但是总有一些时候不为0,请问芯片本身就是这样的?在以前使用K60的时候,adc端口接地转换出来的结果是一直为0,绝对不会有跳动。

0 Kudos

2,814 Views
jeremyzhou
NXP Employee
NXP Employee

Hi 康 徐,

我这边测出来一开始出现几个跳动,后面几乎都是0的,我觉得这应该可能更多是开发板硬件设计有关,

LPC开发板的工艺可能有噪声干扰,你可以考虑在引脚口加一个滤波电容再测试一下。
Have a great day,
TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos