CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Looking for a new AD!!!!!!!!

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
John Ilicitean



Joined: 07 Jul 2005
Posts: 27
Location: Rotova

View user's profile Send private message

Looking for a new AD!!!!!!!!
PostPosted: Mon Feb 06, 2006 10:05 am     Reply with quote

Hello!!!

After my failure to work a PIC with a conversor ADS1100. I look for a conversor A/D of 13 bits or more, with a bus SPI or I2C.

If somebody has worked with a PIC and a conversor of this style, I like that passed information to me.


Thanks in advance!!!!
Birdie
Guest







A2D converter
PostPosted: Mon Feb 06, 2006 12:57 pm     Reply with quote

Try the Linear Technology LTC2420(20-bit) or LTC 2400(24-bit).
I have used bothe with great results (also they are interchangeable).
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Feb 06, 2006 1:18 pm     Reply with quote

Whatever you do, make sure that you have a known-good, working
driver for the A/D chip before you buy it.
John Ilicitean



Joined: 07 Jul 2005
Posts: 27
Location: Rotova

View user's profile Send private message

PostPosted: Mon Feb 06, 2006 2:13 pm     Reply with quote

You are right!!
I have seen the characteristics of LTC2420 and it seems to me a good AD!!
I use a PIC16F877, my question is , I need a driver for to comunicate the PIC with LTC2420???
Birdie
Guest







A2D LTC2420
PostPosted: Thu Feb 09, 2006 8:50 am     Reply with quote

Here is a simple driver that works fine.

Code:

int32 Read_A2D(void)
{
   int32 A2D_COUNTS;
   int i;

   output_high(A2D_SCLK);
   delay_us(100);
   output_high(A2D_CSI);
   output_low(A2D_SCLK);
   output_low(A2D_CSI);

   while((input(A2D_SDO))==1); //wait for /EOC to go low...

   for(i=4;i>0;i--) //I don't need to use these first 4 bits
   {
      output_high(A2D_SCLK);
      delay_us(5);
      output_low(A2D_SCLK);
      delay_us(5);
   }

   for(i=20;i>0;i--)      //Set i = number of bits to read
   {                     
      output_high(A2D_SCLK);
      delay_us(5);
      shift_left(&A2D_COUNTS,4,input(A2D_SDO));
      output_low(A2D_SCLK);
      delay_us(5);
   }
   output_high(A2D_CSI);

   return A2D_COUNTS;
}
John Ilicitean



Joined: 07 Jul 2005
Posts: 27
Location: Rotova

View user's profile Send private message

PostPosted: Tue Feb 14, 2006 12:25 pm     Reply with quote

Thank's for help me!!!
Very Happy Very Happy Very Happy
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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