query on the ADC0

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

query on the ADC0

1,306 次查看
nagendramurthy
Contributor II

Hello everyone, 

I'm working on the LPC1837 micro controller. i have a query regrading the ADC conversion of the ADC0 channel 0. 

ADC0 channel 0 has be connected to the port 4 and pin 3 of the micro controller. as per the data sheet , i have matched it. 

Question: I'm feeding the fixed voltage of 12.5 v to the  ADC 0 channel 0. but when i'm output value is varies from 0 to max and  again decrease from Max to 0. 

i'm facing the issue only in the channel. 

where as the output for the other channel are obtain are correct. 

标签 (1)
标记 (2)
0 项奖励
回复
2 回复数

1,166 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi nagendra murthy,

   Mike is correct.

   You can't input the 12.5V to the ADC0.0 directly.

From the datasheet, you can get that the ADC input voltage can't exceed 3.3V.

pastedImage_1.png

I am afraid your pin is damaged.

Do you have any other board? Please try your code on another board, and make sure the adc input voltage is below 3.3V.

If your result is still not OK, please check EDAIO0, make sure you configure ADC0_0 as the analog function on pin P4_3:

pastedImage_2.png

Wish it helps you!


Have a great day,
Kerry

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

0 项奖励
回复

1,166 次查看
mikesimmonds
Contributor III

Hi There.

I am pretty sure that the maximum voltage that may be applied to an ADC pin must be less than or equal to VRef. Which is probably 3.3 Volts. You will need voltage dividers on the ADC inputs. You may have already damaged the device by over voltage.

Cheers, Mike.

0 项奖励
回复