Maker Pro
Maker Pro

A couple basic questions regarding a ADC

M

Michael Noone

Jan 1, 1970
0
Hi - I'm working on interfacing a TI ADS1252 ADC (http://www-
s.ti.com/sc/ds/ads1252.pdf) to an Atmel AVR (an 8b microcontroller, an
ATMEGA48). This one was marked as having SPI, which I thought would make it
easy to interface with. Now that I'm sitting down and wiring it up, I have
noticed something very strange. There are only *two* digital io lines,
while SPI typically has three. Can anybody tell me if the built in SPI
device in an AVR will be able to handle this?

Also - it asks for a clock input, but it only has one pin for the clock.
I'm used to just attaching a crystal and two capacitors for a clock signal,
but that doesn't exactly seem possible with only one clock pin. So - how
would I go about getting a 16Mhz clock signal?

Thanks for your help,

-Michael J. Noone
 
L

Larry Brasfield

Jan 1, 1970
0
Michael Noone said:
Hi - I'm working on interfacing a TI ADS1252 ADC (http://www-
s.ti.com/sc/ds/ads1252.pdf) to an Atmel AVR (an 8b microcontroller, an
ATMEGA48). This one was marked as having SPI, which I thought would make it
easy to interface with. Now that I'm sitting down and wiring it up, I have
noticed something very strange. There are only *two* digital io lines,
while SPI typically has three. Can anybody tell me if the built in SPI
device in an AVR will be able to handle this?

If you are not hooking any other devices to the AVR's
SPI port, it can be made to work. If the SPI bus is
shared among devices, you have some work to do
getting that thing to be quiet until told to speak up.
Also - it asks for a clock input, but it only has one pin for the clock.
I'm used to just attaching a crystal and two capacitors for a clock signal,
but that doesn't exactly seem possible with only one clock pin. So - how
would I go about getting a 16Mhz clock signal?

You can buy crystal oscillators at that frequency.
Thanks for your help,

You're welcome.
 
M

Michael Noone

Jan 1, 1970
0
If you are not hooking any other devices to the AVR's
SPI port, it can be made to work. If the SPI bus is
shared among devices, you have some work to do
getting that thing to be quiet until told to speak up.

Right now it'll be the only device on the SPI bus, so hopefully that
won't be an issue.
You can buy crystal oscillators at that frequency.

Yes - heck I think I even have some 16Mhz crystals lying around. But my
problem is that I'm used to connecting two leads from a crystal to two
pins on an IC. Now there is only one pin - thus my confusion. Perhaps do
you just have one pin from the crystal connected to the clock pin and
also connected to a grounded capacitor, and then have the other crystal
pin only connected to a grounded capacitor? Thanks,

-Michael J. Noone
 
J

James Morrison

Jan 1, 1970
0
"Larry Brasfield" <[email protected]> wrote in
Yes - heck I think I even have some 16Mhz crystals lying around. But my
problem is that I'm used to connecting two leads from a crystal to two
pins on an IC. Now there is only one pin - thus my confusion. Perhaps do
you just have one pin from the crystal connected to the clock pin and
also connected to a grounded capacitor, and then have the other crystal
pin only connected to a grounded capacitor? Thanks,

If the pin only has one input clock pin then it is expecting a
single-ended signal input and cannot be connected directly to a crystal.
Some chips have two pins and allow you to connect a crystal directly
(with appropriate external passives). The difference is that the
feedback circuitry is inside the chip in the latter case.

A device that provides that feedback circuitry is a called an oscillator
(or crystal oscillator). Its output is at some logic level (see
datasheet of specific oscillator for this info). This sounds like what
you need. Make sure you pick one that matches the input requirements
for the chip you want to connect e.g. input voltage level, jitter, ...

James.
 
J

John Fields

Jan 1, 1970
0
Hi - I'm working on interfacing a TI ADS1252 ADC (http://www-
s.ti.com/sc/ds/ads1252.pdf) to an Atmel AVR (an 8b microcontroller, an
ATMEGA48). This one was marked as having SPI, which I thought would make it
easy to interface with. Now that I'm sitting down and wiring it up, I have
noticed something very strange. There are only *two* digital io lines,
while SPI typically has three. Can anybody tell me if the built in SPI
device in an AVR will be able to handle this?

Also - it asks for a clock input, but it only has one pin for the clock.
I'm used to just attaching a crystal and two capacitors for a clock signal,
but that doesn't exactly seem possible with only one clock pin. So - how
would I go about getting a 16Mhz clock signal?

---
You need to supply a 16MHz clock signal to the CLK input. if you don't
already have that in your system, then you need to buy a 16MHz crystal
oscillator. Check Digi-Key, they've got bunches. Here's one:

http://www.digikey.com/scripts/DkSearch/dksus.dll?Detail?Ref=182864&Row=272631&Site=US
____
As for the operation of SCLK and DOUT/DRDY it's all spelled out in the
data sheet at:

http://focus.ti.com/lit/ds/symlink/ads1252.pdf
____
Basically, you wait until DOUT/DRDY goes low, (which will signal the
end of a conversion, then you exercise SCLK and data will come out of
____
dout/DRDY.
 
Top