adc

Thread Starter

ansarirahim

Joined Apr 1, 2008
1
Dear All,
can any one suggest , how to read the 24-bit adc output interfaced to my ARM9 board..please do urgent...and provide code and circuit diag. if necessary..
with thanks
Ansari
 

mik3

Joined Feb 4, 2008
4,843
Connect the output of the ADC to some pins of the ARM (with some resistors if necessary) and define these pins as inputs. Then write the appropriate code to read the specific inputs on the ARM when you want.
 

scubasteve_911

Joined Dec 27, 2007
1,203
If you have the board, then why would you need circuit diagrams?

From experience, you should get aquainted with the ARM library reference manual along with the reference guide for the processor. When writing code, I have these two PDFs open at all times.

There are a lot of steps for setting up the hardware,

1) Ensure you clock the peripherals
2) Enable the pin as an Alternate function input (since used by ADC)
3) Setup the structure to initialize the ADC, then enable it,
4) read the values on interrupt or flag monitoring

Steve

PS. What software are you using? What device? You have a debugger?
 
Top