![]() |
Linduino
1.3.0
Linear Technology Arduino-Compatible Demonstration Board
|
LTC2373: 16/18-bit 1Msps 8 channel SAR ADC LTC2372: 16/18-bit 500ksps 8 channel SAR ADC LTC2374: 16 bit 1.6Msps 8 channel SAR ADC. More...
LTC2373: 16/18-bit 1Msps 8 channel SAR ADC LTC2372: 16/18-bit 500ksps 8 channel SAR ADC LTC2374: 16 bit 1.6Msps 8 channel SAR ADC.
The LTC2373_16/18 are pin-compatible, 16/18-bit A/D converters with serial I/O, and an internal reference. Example Code: Read ADC input. adc_command = LTC2373_CH0 | LTC2373_UNIPOLAR_MODE | LTC2373_LOW_GAIN_MODE | LTC2373_NORMAL_MODE; // Single-ended, CH0, unipolar, low gain, normal mode. LTC2373_read(LTC2373_CS, adc_command, &adc_code); // Throws out last reading LTC2373_read(LTC2373_CS, adc_command, &adc_code); // Obtains the current reading and stores to adc_code variable // Convert adc_code to voltage adc_voltage = LTC2373_code_to_voltage(adc_code, LTC2373_lsb, LTC2373_offset_unipolar_code);
http://www.linear.com/product/LTC2373-16 http://www.linear.com/product/LTC2373_18 http://www.linear.com/product/LTC2372-16 http://www.linear.com/product/LTC2372-18 http://www.linear.com/product/LTC2374-16
http://www.linear.com/product/LTC2373-16#demoboards http://www.linear.com/product/LTC2373_18#demoboards http://www.linear.com/product/LTC2372-16#demoboards http://www.linear.com/product/LTC2372-18#demoboards http://www.linear.com/product/LTC2374-16#demoboards
Copyright 2018(c) Analog Devices, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Header for LTC2373: 16/18-bit 1Msps 8 channel SAR ADC
Definition in file LTC2373.h.
Go to the source code of this file.
Functions | |
uint8_t | LTC2373_build_command (uint8_t sequencer_bit, uint8_t ch_designate, uint8_t range_select, uint8_t gain_compression) |
void | LTC2373_read (uint8_t cs, uint8_t adc_command, uint32_t *ptr_adc_code) |
Reads the LTC2373 and returns 32-bit data. More... | |
void | LTC2373_configure (uint8_t cs, uint32_t adc_command) |
Configures the LTC2373. More... | |
float | LTC2373_code_to_voltage (uint8_t adc_command, uint32_t adc_code, float vref) |
Calculates the LTC2373 input voltage given the binary data and lsb weight. More... | |
Macros | |
#define | LTC2373_CS QUIKEVAL_CS |
Define the SPI CS pin. More... | |
#define | I2C_ADDRESS 0x20 |
#define | I2C_COMMAND 0x80 |
#define | LTC2373_SEQUENCER_BIT 0x80 |
LTC2373 Channel Addresses | |
#define | LTC2373_CH0 0x40 |
#define | LTC2373_CH1 0x48 |
#define | LTC2373_CH2 0x50 |
#define | LTC2373_CH3 0x58 |
#define | LTC2373_CH4 0x60 |
#define | LTC2373_CH5 0x68 |
#define | LTC2373_CH6 0x70 |
#define | LTC2373_CH7 0x78 |
#define | LTC2373_CH0_1 0x00 |
#define | LTC2373_CH1_0 0x20 |
#define | LTC2373_CH2_3 0x08 |
#define | LTC2373_CH3_2 0x28 |
#define | LTC2373_CH4_5 0x10 |
#define | LTC2373_CH5_4 0x30 |
#define | LTC2373_CH6_7 0x18 |
#define | LTC2373_CH7_6 0x38 |
LTC2373 Uni/GAIN config bits | |
#define | LTC2373_RANGE_UNIPOLAR 0x00 |
#define | LTC2373_RANGE_BIPOLAR 0x02 |
#define | LTC2373_RANGE_DIFF_UNIPOLAR 0x04 |
#define | LTC2373_RANGE_DIFF_BIPOLAR 0x06 |
#define | LTC2373_NO_COMPRESSION 0x00 |
#define | LTC2373_GAIN_COMPRESSION 0x01 |
uint8_t LTC2373_build_command | ( | uint8_t | sequencer_bit, |
uint8_t | ch_designate, | ||
uint8_t | range_select, | ||
uint8_t | gain_compression | ||
) |
Definition at line 79 of file LTC2373.cpp.
float LTC2373_code_to_voltage | ( | uint8_t | adc_command, |
uint32_t | adc_code, | ||
float | vref | ||
) |
Calculates the LTC2373 input voltage given the binary data and lsb weight.
adc_code | Raw ADC code |
vref | Reference voltage |
Definition at line 134 of file LTC2373.cpp.
void LTC2373_configure | ( | uint8_t | cs, |
uint32_t | adc_command | ||
) |
void LTC2373_read | ( | uint8_t | cs, |
uint8_t | adc_command, | ||
uint32_t * | ptr_adc_code | ||
) |
Reads the LTC2373 and returns 32-bit data.
cs | Chip Select Pin |
ptr_adc_code | Returns code read from ADC (from previous conversion) |
Definition at line 89 of file LTC2373.cpp.
#define LTC2373_CS QUIKEVAL_CS |