| Linduino 1.3.0 Linear Technology Arduino-Compatible Demonstration Board

LTC2512.h
Go to the documentation of this file.
1 /*!
2 LTC2512: 24-Bit Over-Sampling ADC with Configurable Digital Filter.
3
4 @verbatim
5
6 The LTC2512-24 is a low noise, low power, high performance 24-bit ADC
7 with an integrated configurable digital filter. Operating from a single
8 2.5V supply, the LTC2512-24 features a fully differential input range
9 up to ±VREF, with VREF ranging from 2.5V to 5.1V. The LTC2512-24 supports
10 a wide common mode range from 0V to VREF simplifying analog signal
11 conditioning requirements.
12
13 @endverbatim
14
15 http://www.linear.com/product/LTC2512-24
16
17 http://www.linear.com/product/LTC2512-24#demoboards
18
19
20 Copyright 2018(c) Analog Devices, Inc.
21
22 All rights reserved.
23
24 Redistribution and use in source and binary forms, with or without
25 modification, are permitted provided that the following conditions are met:
26 - Redistributions of source code must retain the above copyright
27 notice, this list of conditions and the following disclaimer.
28 - Redistributions in binary form must reproduce the above copyright
29 notice, this list of conditions and the following disclaimer in
30 the documentation and/or other materials provided with the
31 distribution.
32 - Neither the name of Analog Devices, Inc. nor the names of its
33 contributors may be used to endorse or promote products derived
34 from this software without specific prior written permission.
35 - The use of this software may or may not infringe the patent rights
36 of one or more patent holders. This license does not release you
37 from the requirement that you obtain separate licenses from these
38 patent holders to use this software.
39 - Use of the software either in source or binary form, must be run
40 on or directly connected to an Analog Devices Inc. component.
41
42 THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR
43 IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT,
44 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
45 IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT,
46 INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
47 LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR
48 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
49 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
50 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
51 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
52 */
53
54 /*! @file
55 @ingroup LTC2512
56 Header for LTC2512: 24-Bit Over-Sampling ADC with Configurable Digital Filter
57 */
58
59 #ifndef LTC2512_H
60 #define LTC2512_H
61
62
63 #define SNEAKER_PORT_ADDRESS 0x20
64 #define MCLK_pin QUIKEVAL_CS
65
66 #define CONFIG_DF_4 0x8000
67 #define CONFIG_DF_8 0x8400
68 #define CONFIG_DF_16 0x8200
69 #define CONFIG_DF_32 0x8600
70
71 #define CS_LOW 0x00
72 #define CS_HIGH 0x08
73
74 //! Calculates the output voltage from the given digital code and reference voltage
75 float LTC2512_code_to_voltage(int32_t code, float vref);
76
77 //! Send n num of pulses on pin given
78 void send_pulses(uint8_t pin, uint16_t num_of_pulses);
79
80 //! Reads 4 bytes of data on SPI - D23:D0 + W7:W0
81 uint32_t LTC2512_read_data(uint8_t QUIKEVAL_CS, uint16_t *DF);
82
83 #endif
LTC2512_read_data
uint32_t LTC2512_read_data(uint8_t QUIKEVAL_CS, uint16_t *DF)
Reads 4 bytes of data on SPI - D23:D0 + W7:W0.
Definition: LTC2512.cpp:101
LTC2512_code_to_voltage
float LTC2512_code_to_voltage(int32_t code, float vref)
Calculates the output voltage from the given digital code and reference voltage.
Definition: LTC2512.cpp:76
vref
float vref
Definition: LTC2492_Thermocouple_Meter.ino:129
QUIKEVAL_CS
#define QUIKEVAL_CS
QuikEval CS pin (SPI chip select on QuikEval connector pin 6) connects to Arduino SS pin...
Definition: Linduino.h:57
send_pulses
void send_pulses(uint8_t pin, uint16_t num_of_pulses)
Send n num of pulses on pin given.
Definition: LTC2508.cpp:84