AD7707 Analog Devices, AD7707 Datasheet - Page 42

no-image

AD7707

Manufacturer Part Number
AD7707
Description
Manufacturer
Analog Devices
Datasheet

Specifications of AD7707

Resolution (bits)
16bit
# Chan
3
Sample Rate
n/a
Interface
Ser,SPI
Analog Input Type
Diff-Uni,SE-Bip
Ain Range
Bip (Vref)/(PGA Gain),Bip 10V,Bip 5.0V,Uni (Vref)/(PGA Gain),Uni 10V,Uni 5.0V
Adc Architecture
Sigma-Delta
Pkg Type
SOIC,SOP

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
AD7707BRUZ
Manufacturer:
ADI
Quantity:
1 000
Part Number:
AD7707BRUZ
Manufacturer:
ADI/亚德诺
Quantity:
20 000
Part Number:
AD7707BRUZ-REEL7
Manufacturer:
ADI
Quantity:
1 000
Part Number:
AD7707BRZ
Manufacturer:
ADI/亚德诺
Quantity:
20 000
AD7707
Writetoreg (int byteword);
{
int q;
SPCR = 0x3f;
SPCR = 0X7f; /* this sets the WiredOR mode (DWOM=1), Master mode (MSTR=1), SCK idles high
(CPOL=1), /SS can be low always (CPHA=1), lowest clock speed (slowest speed which is master
clock /32) */
DDRD = 0x18; /* SCK, MOSI outputs */
q = SPSR;
q = SPDR; /* the read of the status register and of the data register is needed to clear the
interrupt which tells the user that the data
transfer is complete */
PORTC &= 0xfb; /* /CS is low */
SPDR = byteword; /* put the byte into data register */
while (! (SPSR & 0x80)); /* wait for /DRDY to go low */
PORTC |= 0x4; /* /CS high */
}
Read (int amount, int reglength)
{
int q;
SPCR = 0x3f;
SPCR = 0x7f; /* clear the interrupt */
DDRD = 0x10; /* MOSI output, MISO input, SCK output */
while (PORTC & 0x10); /* wait for /DRDY to go low */
PORTC & 0xfb ; /* /CS is low */
for (b=0;b<reglength;b++)
PORTC|=4; /* /CS is high */
}
{
SPDR = 0;
while (! (SPSR & 0x80)); /* wait until port is ready before reading */
*datapointer++=SPDR; /* read SPDR into store array via datapointer */
}
Rev. B | Page 42 of 52

Related parts for AD7707