![]() |
Linduino
1.3.0
Linear Technology Arduino-Compatible Demonstration Board
|
Linear Technology DC1186A Demonstration Board. More...
Linear Technology DC1186A Demonstration Board.
LTC2308: 12-Bit, 8-Channel 500ksps SAR ADC with SPI Interface.
NOTES Setup: Set the terminal baud rate to 115200 and select the newline terminator. Equipment required is a voltage source (preferably low-noise) and a precision voltmeter. No external power supply is required. Ensure all jumpers on the demo board are installed in their default positions from the factory. Refer to Demo Manual DC1186A. How to test Single-Ended mode: Bipolar Mode: The voltage source should be connected to one of the inputs CH0,...CH7. Ensure the input is within its specified absolute input voltage range. (It is easiest to tie the voltage source negative terminal to COM.) Ensure the voltage source is set within the range of 0V to +4.096V. (Swapping input voltages results in a reversed polarity reading.) Unipolar Mode: The voltage source should be connected to one of the inputs CH0,...CH7. Ensure the input is within its specified absolute input voltage range. (It is easiest to tie the voltage source negative terminal to COM.) Ensure the voltage source is set within the range of 0V to +4.096V. How to test Differential Mode: Bipolar Mode: The voltage source should be connected between paired channels. Ensure both inputs are within their specified absolute input voltage range. (It is easiest to tie the voltage source negative terminal to COM or GND.) Ensure the voltage source is set within the range of 0 to +4.096V (differential voltage range). (Swapping input voltages results in a reversed polarity reading.) Unipolar Mode: The voltage source should be connected between paired channels. (It is easiest to tie the voltage source negative terminal to COM or GND.) Ensure both inputs are within their specified absolute input voltage range. (It is easiest to tie the voltage source negative terminal to COM or GND.) Ensure the voltage source is set within the range of 0 to +4.096V (differential voltage range). USER INPUT DATA FORMAT: decimal : 1024 hex : 0x400 octal : 02000 (leading 0 "zero") binary : B10000000000 float : 1024.0
http://www.linear.com/product/LTC2308
http://www.linear.com/product/LTC2308#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.
Definition in file DC1186A.ino.
Go to the source code of this file.
Functions | |
static void | print_title () |
Prints the title block when program first starts. More... | |
static void | print_prompt () |
Prints main menu. More... | |
static uint8_t | print_user_command_differential () |
Display selected differential channels. More... | |
static uint8_t | print_user_command_single_ended () |
Display selected single-ended channel. More... | |
static void | print_channel_selection (uint8_t menu) |
Display selected differential channels. More... | |
static void | menu_1_read_input () |
Read channels. More... | |
static void | menu_2_select_single_ended_differential () |
Sets LTC2308 to Single-Ended or Differential. More... | |
static void | menu_3_select_uni_bipolar () |
Select unipolar (0-REFCOMP) or bipolar (+/- 0.5 x REFCOMP) mode. More... | |
static void | menu_4_sleep () |
Put LTC2308 to sleep (low power) More... | |
static void | setup () |
Initialize Linduino. More... | |
static void | loop () |
Repeats Linduino loop. More... | |
Variables | |
static uint8_t | uni_bipolar = LTC2308_UNIPOLAR_MODE |
Default set for unipolar mode. More... | |
static uint8_t | single_ended_differential = LTC2308_SINGLE_ENDED_MODE |
LTC2308 Unipolar or Bipolar mode selection. More... | |
static uint8_t | LTC2308_bits = 12 |
Resolution (12 bits) More... | |
static float | LTC2308_vref = 4.096 |
const uint8_t | BUILD_COMMAND_SINGLE_ENDED [8] |
Lookup table to build the command for single-ended mode, input with respect to GND. More... | |
const uint8_t | BUILD_COMMAND_DIFF [8] |
Lookup table to build the command for differential mode with the selected uni/bipolar mode. More... | |
|
static |
Repeats Linduino loop.
Definition at line 151 of file DC1186A.ino.
|
static |
Read channels.
Definition at line 188 of file DC1186A.ino.
|
static |
Sets LTC2308 to Single-Ended or Differential.
Definition at line 292 of file DC1186A.ino.
|
static |
Select unipolar (0-REFCOMP) or bipolar (+/- 0.5 x REFCOMP) mode.
Definition at line 324 of file DC1186A.ino.
|
static |
|
static |
Display selected differential channels.
Displaying single-ended channels is straightforward; not so with differential because the inputs can take either polarity.
Definition at line 459 of file DC1186A.ino.
|
static |
Prints main menu.
Definition at line 384 of file DC1186A.ino.
|
static |
Prints the title block when program first starts.
Definition at line 368 of file DC1186A.ino.
|
static |
Display selected differential channels.
Displaying single-ended channels is straightforward; not so with differential because the inputs can take either polarity.
Definition at line 397 of file DC1186A.ino.
|
static |
Display selected single-ended channel.
Definition at line 492 of file DC1186A.ino.
|
static |
Initialize Linduino.
Definition at line 138 of file DC1186A.ino.
const uint8_t BUILD_COMMAND_DIFF[8] |
Lookup table to build the command for differential mode with the selected uni/bipolar mode.
Build the command for differential mode
Definition at line 132 of file DC1186A.ino.
const uint8_t BUILD_COMMAND_SINGLE_ENDED[8] |
Lookup table to build the command for single-ended mode, input with respect to GND.
Builds the command for single-ended mode, input with respect to GND
Definition at line 127 of file DC1186A.ino.
|
static |
Resolution (12 bits)
Definition at line 122 of file DC1186A.ino.
|
static |
Definition at line 123 of file DC1186A.ino.
|
static |
LTC2308 Unipolar or Bipolar mode selection.
Definition at line 121 of file DC1186A.ino.
|
static |
Default set for unipolar mode.
Definition at line 120 of file DC1186A.ino.