Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

adc convertion in lpc1768 is not really correct

Status
Not open for further replies.

h.galeh

Member level 3
Joined
Apr 16, 2008
Messages
66
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Location
Tehran, Iran, Iran
Activity points
1,690
I use adc to convert a potentiometer's voltage to equivalent digital data.
but here is a problem . it is always changing its value(debug mode) while I really didn't change volume
whats the problem?
how can we make it more precise
 

Typically the use of the JTAG interface for debugging should be avoid when analyzing the performance of the ADC code section.

The use of the JTAG interface during debugging can easily be the source of glitches and ADC values well outside the acceptable range.

Modify your debugging tactics to exclude the use of the JTAG interface while testing the ADC sections of your code.


Both thermal and EMI noise can easily be the source of fluctuations in ADC values, particularly with higher resolution ADCs.

Particular attention must be made in regards to power supply design, decoupling and PCB design/layout.

There are several methods available to counter these fluctuations of the ADC conversion value:

1. Implementing a low pass/anti-aliasing filter to reduce aliasing

2. Separate well designed power supplies for the digital and analog sections

3. Well designed PCB with two separate ground planes

4. Proper use of decoupling capacitors at all appropriate locations.


There are also several soft techniques to improve the ADC conversion results.

1. Implement a moving/rolling average of a set number of ADC values

2. Reduce the number of bits of resolution of the ADC conversion value.


The following attached document may provide further insight into the issue.


BigDog
 

Attachments

  • AN10974.pdf
    1.4 MB · Views: 124
  • AN10974_-_LPC176x_175x_12-bit_ADC_design_guidelines.zip
    1.8 MB · Views: 94

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top