AnsweredAssumed Answered

using ADC with LPCxpresso51U68

Question asked by omer Tchernichovsky on Jan 10, 2019
Latest reply on Jan 10, 2019 by jeremyzhou

hello,

 

im working with the LPCXpresso51u68 board, and trying to measure analog readings from a power supply,

the power supply in connected to A0 (on J8 analog in connector) on the LPC evaluation board.

 

the problem is - no mater what voltage i enter (between 0 and 5v), i get the same reading all the time.

i have tryied it with 2 other channels - A1 and A2, and the result is the same.

 

can you tell me what am i doing wrong?

 

i used the exmpale of the ADC for keil as a reference.

the relevant parts of my code are added here as a TXT file.

 

thank you

Omer.

Attachments

Outcomes