參數(shù)資料
型號: DC798B
廠商: Linear Technology
文件頁數(shù): 33/42頁
文件大?。?/td> 0K
描述: BOARD DELTA SIGMA ADC LTC2480
軟件下載: QuikEval System
設(shè)計(jì)資源: DC798B Design File
DC798B Schematic
標(biāo)準(zhǔn)包裝: 1
系列: QuikEval™
ADC 的數(shù)量: 1
位數(shù): 16
采樣率(每秒): 7.5
數(shù)據(jù)接口: MICROWIRE?,串行,SPI?
已用 IC / 零件: LTC2480
已供物品:
相關(guān)產(chǎn)品: LTC2480HMS#TRPBF-ND - IC ADC DELTA SIGMA 16BIT 10MSOP
LTC2480HDD#TRPBF-ND - IC ADC DELTA SIGMA 16BIT 10DFN
LTC2480HDD#PBF-ND - IC ADC 16BIT SRL 7.5SPS 10DFN
LTC2480HMS#PBF-ND - IC ADC 16BIT SER/SPI 10MSOP
LTC2480IMS#TRPBF-ND - IC ADC 16BIT 10-MSOP
LTC2480IMS#PBF-ND - IC ADC 16BIT 10-MSOP
LTC2480IDD#TRPBF-ND - IC ADC 16BIT 10-DFN
LTC2480CMS#TRPBF-ND - IC ADC 16BIT 10-MSOP
LTC2480CMS#PBF-ND - IC ADC 16BIT 10-MSOP
LTC2480CDD#TRPBF-ND - IC ADC 16BIT 10-DFN
更多...
LTC2480
2480fd
/*** read_LTC2480() ************************************************************
This is the function that actually does all the work of talking to the LTC2480.
The spi_read() function performs an 8 bit bidirectional transfer on the SPI bus.
Data changes state on falling clock edges and is valid on rising edges, as
determined by the setup_spi() line in the initialize() function.
A good starting point when porting to other processors is to write your own
spi_write function. Note that each processor has its own way of configuring
the SPI port, and different compilers may or may not have built-in functions
for the SPI port. Also, since the state of the LTC2480’s SDO line indicates
when a conversion is complete you need to be able to read the state of this line
through the processor’s serial data input. Most processors will let you read
this pin as if it were a general purpose I/O line, but there may be some that
don’t.
When in doubt, you can always write a “bit bang” function for troubleshooting
purposes.
The “fourbytes” structure allows byte access to the 32 bit return value:
struct fourbytes
// Define structure of four consecutive bytes
{
// To allow byte access to a 32 bit int or float.
int8 te0;
//
int8 te1;
// The make32() function in this compiler will
int8 te2;
// also work, but a union of 4 bytes and a 32 bit int
int8 te3;
// is probably more portable.
};
Also note that the lower 4 bits are the configuration word from the previous
conversion. The 4 LSBs are cleared so that
they don’t affect any subsequent mathematical operations. While you can do a
right shift by 4, there is no point if you are going to convert to floating point
numbers - just adjust your scaling constants appropriately.
*******************************************************************************/
signed int32 read_LTC2480(char config)
{
union
// adc_code.bits32
all 32 bits
{
// adc_code.by.te0
byte 0
signed int32 bits32;
// adc_code.by.te1
byte 1
struct fourbytes by;
// adc_code.by.te2
byte 2
} adc_code;
// adc_code.by.te3
byte 3
output_low(CS);
// Enable LTC2480 SPI interface
while(input(PIN_C4)) {}
// Wait for end of conversion. The longest
// you will ever wait is one whole conversion period
// Now is the time to switch any multiplexers because the conversion is finished
// and you have the whole data output time for things to settle.
adc_code.by.te3 = 0;
// Set upper byte to zero.
adc_code.by.te2 = spi_read(config);
// Read first byte, send config byte
adc_code.by.te1 = spi_read(0);
// Read 2nd byte, send speed bit
adc_code.by.te0 = spi_read(0);
// Read 3rd byte. ‘0’ argument is necessary
// to act as SPI master!! (compiler
// and processor specific.)
output_high(CS);
// Disable LTC2480 SPI interface
// Clear configuration bits and subtract offset. This results in
// a 2’s complement 32 bit integer with the LTC2480’s MSB in the 2^20 position
adc_code.by.te0 = adc_code.by.te0 & 0xF0;
adc_code.bits32 = adc_code.bits32 - 0x00200000;
return adc_code.bits32;
} // End of read_LTC2480()
applicaTions inForMaTion
相關(guān)PDF資料
PDF描述
EVAL-AD7841EBZ BOARD EVAL FOR AD7841
XRP2525ID-2-F IC PWR SW USB 3.0 SINGLE NSOIC8
EVAL-AD7839EBZ BOARD EVAL FOR AD7839
NRS6010T4R7MMGF INDUCTOR POWER 4.7UH 1.4A SMD
AD7940-DBRD BOARD EVAL FOR AD7940 STAMP SPI
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
DC-7G3EWA 制造商:Kingbright Corporation 功能描述:Red/Green 10-seg LED lightbar, DC-7G3EWA
DC7G3HWA 功能描述:LED條和陣列 7GR 3RED BARGRAFT 10 SEGMENT RoHS:否 制造商:Avago Technologies 產(chǎn)品:LED Light Bars 照明顏色:Red 光強(qiáng)度:45 mcd 封裝:Tube
DC-7G3HWA 制造商:Kingbright Corporation 功能描述:
DC7K67J/4LR61 制造商:Duracell 功能描述:
DC8 制造商:Cliff Electronic Components 功能描述:SOCKET PCB DC POWER 1.3MM PK10 制造商:Cliff Electronic Components 功能描述:SOCKET, PCB, DC POWER, 1.3MM, PK10 制造商:Cliff Electronic Components 功能描述:SOCKET, PCB, DC POWER, 1.3MM, PK10, Series:DC, Gender:Receptacle, Voltage Rating