View previous topic :: View next topic |
Author |
Message |
John Ilicitean
Joined: 07 Jul 2005 Posts: 27 Location: Rotova
|
Looking for a new AD!!!!!!!! |
Posted: Mon Feb 06, 2006 10:05 am |
|
|
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 |
Posted: Mon Feb 06, 2006 12:57 pm |
|
|
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
|
|
Posted: Mon Feb 06, 2006 1:18 pm |
|
|
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
|
|
Posted: Mon Feb 06, 2006 2:13 pm |
|
|
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 |
Posted: Thu Feb 09, 2006 8:50 am |
|
|
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
|
|
Posted: Tue Feb 14, 2006 12:25 pm |
|
|
Thank's for help me!!!
|
|
|
|