How To Read Data From AD7714

Status
Not open for further replies.

anoop kr

Member level 4
Joined
Aug 6, 2010
Messages
69
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Location
kerala
Activity points
1,885
Hi
For my data acquisition project i need to interface the external ADC AD7714 with my micro controller ATMEGA8A which is running in 16MHz. The ADC is running in 2.4576MHz. These two are interfaced by SPI protocol. i configured all the registers and when i am trying to read the data from the ADC and displays in LCD it shows always 255255255. I tried with different register values but still i am getting the above said one value. can anyone have any suggestion for this...please help..
 

Hi
I tried with that code also.But i didn't help me a lot.. Still the output is same.. what i have to do.. i am posting the code i had written...The SPI functions are defined in another header file.

- - - Updated - - -

Here is the code and the SPI header file.
 

Attachments

  • ATMEGA8+AD7714.txt
    2.7 KB · Views: 88
  • SPI.txt
    606 bytes · Views: 87

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…