Linduino  1.3.0
Linear Technology Arduino-Compatible Demonstration Board
LTC2449_Datalogger.ino File Reference

Go to the source code of this file.

Functions

static void read_LTC2449 (float vref, uint16_t eoc_timeout, uint16_t channel_delay)
 Reads the LTC2449 and displays the results. More...
 
static void print_all (float *results)
 Displays the the data in the array. More...
 
static void print_prompt ()
 Print the Prompt. More...
 
static void setup ()
 Initialize Linduino. More...
 
static void loop ()
 Repeats Linduino loop. More...
 

Macros

#define CS   QUIKEVAL_CS
 LTC2449: 24-Bit High Speed 16-Channel Delta Sigma ADCs with Selectable Speed/Resolution. More...
 

Variables

const uint8_t SINGLE_ENDED_CONFIG_ARRAY [16]
 Lookup table to build the command for single-ended mode. More...
 
const uint8_t DIFF_CONFIG_ARRAY [16]
 Lookup table to build the command for differential mode. More...
 
const uint8_t OSR_CONFIG_ARRAY [10]
 Lookup table to build the OSR command. More...
 

Function Documentation

◆ loop()

static void loop ( void  )
static

Repeats Linduino loop.

Definition at line 121 of file LTC2449_Datalogger.ino.

◆ print_all()

static void print_all ( float *  results)
static

Displays the the data in the array.

Definition at line 191 of file LTC2449_Datalogger.ino.

◆ print_prompt()

static void print_prompt ( )
static

Print the Prompt.

Definition at line 159 of file LTC2449_Datalogger.ino.

◆ read_LTC2449()

static void read_LTC2449 ( float  vref,
uint16_t  eoc_timeout,
uint16_t  channel_delay 
)
static

Reads the LTC2449 and displays the results.

Definition at line 170 of file LTC2449_Datalogger.ino.

◆ setup()

static void setup ( void  )
static

Initialize Linduino.

Definition at line 98 of file LTC2449_Datalogger.ino.

Macro Definition Documentation

◆ CS

#define CS   QUIKEVAL_CS

LTC2449: 24-Bit High Speed 16-Channel Delta Sigma ADCs with Selectable Speed/Resolution.

The LTC2449 is a 16-channel (8-differential) high speed 24-bit No Latency Delta Sigma ADCs.
They use a proprietary delta-sigma architecture enabling variable speed/resolution. Through
a simple 4-wire serial interface, ten speed/resolution combinations 6.9Hz/280nVRMS to
3.5kHz/25uVRMS (4kHz with external oscillator) can be selected with no latency between
conversion results or shift in DC accuracy (offset, full-scale, linearity, drift).
Additionally, a 2X speed mode can be selected enabling output rates up to 7kHz (8kHz if an
external oscillator is used) with one cycle latency.

http://www.linear.com/product/LTC2449

http://www.linear.com/product/LTC2449#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:

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  • Neither the name of Analog Devices, Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
  • The use of this software may or may not infringe the patent rights of one or more patent holders. This license does not release you from the requirement that you obtain separate licenses from these patent holders to use this software.
  • Use of the software either in source or binary form, must be run on or directly connected to an Analog Devices Inc. component.

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.The chip select

Definition at line 66 of file LTC2449_Datalogger.ino.

Variable Documentation

◆ DIFF_CONFIG_ARRAY

const uint8_t DIFF_CONFIG_ARRAY[16]
Initial value:
}
#define LTC24XX_MULTI_CH_P13_N12
#define LTC24XX_MULTI_CH_P1_N0
#define LTC24XX_MULTI_CH_P4_N5
#define LTC24XX_MULTI_CH_P9_N8
#define LTC24XX_MULTI_CH_P14_N15
#define LTC24XX_MULTI_CH_P3_N2
#define LTC24XX_MULTI_CH_P2_N3
#define LTC24XX_MULTI_CH_P10_N11
#define LTC24XX_MULTI_CH_P12_N13
#define LTC24XX_MULTI_CH_P5_N4
#define LTC24XX_MULTI_CH_P8_N9
#define LTC24XX_MULTI_CH_P7_N6
#define LTC24XX_MULTI_CH_P15_N14
#define LTC24XX_MULTI_CH_P11_N10
#define LTC24XX_MULTI_CH_P0_N1
#define LTC24XX_MULTI_CH_P6_N7

Lookup table to build the command for differential mode.

Build the command for differential mode

Definition at line 78 of file LTC2449_Datalogger.ino.

◆ OSR_CONFIG_ARRAY

const uint8_t OSR_CONFIG_ARRAY[10]
Initial value:
}
#define LTC24XX_MULTI_CH_OSR_32768
#define LTC24XX_MULTI_CH_OSR_8192
#define LTC24XX_MULTI_CH_OSR_256
#define LTC24XX_MULTI_CH_OSR_1024
#define LTC24XX_MULTI_CH_OSR_64
#define LTC24XX_MULTI_CH_OSR_4096
#define LTC24XX_MULTI_CH_OSR_16384
#define LTC24XX_MULTI_CH_OSR_128
#define LTC24XX_MULTI_CH_OSR_512
#define LTC24XX_MULTI_CH_OSR_2048

Lookup table to build the OSR command.

Build the command for different OSR modes

Definition at line 86 of file LTC2449_Datalogger.ino.

◆ SINGLE_ENDED_CONFIG_ARRAY

const uint8_t SINGLE_ENDED_CONFIG_ARRAY[16]
Initial value:
}
#define LTC24XX_MULTI_CH_CH3
#define LTC24XX_MULTI_CH_CH14
#define LTC24XX_MULTI_CH_CH8
#define LTC24XX_MULTI_CH_CH15
#define LTC24XX_MULTI_CH_CH13
#define LTC24XX_MULTI_CH_CH1
#define LTC24XX_MULTI_CH_CH6
#define LTC24XX_MULTI_CH_CH5
#define LTC24XX_MULTI_CH_CH0
#define LTC24XX_MULTI_CH_CH11
#define LTC24XX_MULTI_CH_CH2
#define LTC24XX_MULTI_CH_CH12
#define LTC24XX_MULTI_CH_CH7
#define LTC24XX_MULTI_CH_CH10
#define LTC24XX_MULTI_CH_CH9
#define LTC24XX_MULTI_CH_CH4

Lookup table to build the command for single-ended mode.

Builds the command for single-ended mode

Definition at line 71 of file LTC2449_Datalogger.ino.