|
|
View previous topic :: View next topic |
Author |
Message |
magnoedu
Joined: 29 May 2009 Posts: 11
|
pic 16f877a and 10 adc ci ad7490 ,it's possible? |
Posted: Sun Sep 19, 2010 1:32 am |
|
|
Hello friends
I'm trying to do a project for a data logger with a PIC 16F877A and ten ad7490 cis of sixteen entries, working with protocol spi.
wanted to know if is possible?
if anyone has any similar project or could help me develop the code? |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9226 Location: Greensville,Ontario
|
|
Posted: Mon Sep 20, 2010 5:21 am |
|
|
It should be possible.
Start with just ONE of the AD7490s and write the SPI code that you need.
Have a simple 1 to 16 loop to read and print the raw adc result.
Then, when that works, add a second AD7490,edit code to address it and verify that works.
A simple outside loop of incrementing the SPI address of the 7490s with an inside loop of addressing the 16 channnels per ADC is where I'd begin.
With a simple print the raw adc result to a PC.
The idea is to start simple,working code, and build upon that.
Keep the original code, and edit a 2nd,3rd,4th,...copy as you go, that way you can always go back to a version that worked!
Also make lots of comments as to what you're doing!
Hope this helps.
Jay |
|
|
magnoedu
Joined: 29 May 2009 Posts: 11
|
thanks |
Posted: Mon Sep 20, 2010 7:26 pm |
|
|
I start this project, I work how you tell me.
I post here if possible.
thanks
Emerson |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|