query on the ADC0

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

query on the ADC0

640 Views
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. 

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

500 Views
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 Kudos

500 Views
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 Kudos