![]() |
Linduino
1.3.0
Linear Technology Arduino-Compatible Demonstration Board
|
Linear Technology DC874A Demonstration Board. More...
Linear Technology DC874A Demonstration Board.
LTC4280: Hot Swap Controller with I2C Compatible Monitoring
NOTES Setup: Set the terminal baud rate to 115200 and select the newline terminator. Provide the board with an external power supply of 12 V. Ensure all jumpers on the demo board are installed in their default positions from the factory. Refer to Demo Manual DC874A. This program has options to measure voltage at ADIN pin (input voltage), SOURCE VOLTAGE (output voltage), and SENSE CURRENT (current through sense resisitor). There are also options to read and manipulate CONTROL register, ALERT register, and FAULT register. Mass write option can be achieved using Device Address = 0xBE. Refer to datasheet LTC4280. USER INPUT DATA FORMAT: decimal : 1024 hex : 0x400 octal : 02000 (leading 0 "zero") binary : B10000000000 float : 1024.0
http://www.linear.com/product/LTC4280
http://www.linear.com/product/LTC4280#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 DC1704A.ino.
Go to the source code of this file.
Functions | |
static void | print_title () |
Print the title block. More... | |
static void | print_prompt () |
Print the main menu. More... | |
static int8_t | main_menu_1_continuous_mode () |
Function to read Rsense current, ADIN voltage and ADIN2 voltage in continous mode. More... | |
static int8_t | main_menu_2_read_and_clear_faults () |
Function to read and clear fault register. More... | |
static int8_t | main_menu_3_send_ARA () |
Function to send alert response (0001100) and read back the address of device that pulled ALERT pin low. More... | |
static int8_t | main_menu_4_manage_alerts () |
Function to update alert register bits. More... | |
static int8_t | main_menu_5_settings () |
Function to update control register bits. More... | |
static int8_t | main_menu_6_read_all_registers () |
Function to read all registers. More... | |
static void | setup () |
Initialize Linduino. More... | |
static void | loop () |
Repeats Linduino loop. More... | |
Macros | |
#define | SENSE_RESISTOR 0.004 |
|
static |
Repeats Linduino loop.
Definition at line 109 of file DC1704A.ino.
|
static |
Function to read Rsense current, ADIN voltage and ADIN2 voltage in continous mode.
Definition at line 179 of file DC1704A.ino.
|
static |
Function to read and clear fault register.
Definition at line 243 of file DC1704A.ino.
|
static |
Function to send alert response (0001100) and read back the address of device that pulled ALERT pin low.
Definition at line 273 of file DC1704A.ino.
|
static |
Function to update alert register bits.
Definition at line 290 of file DC1704A.ino.
|
static |
Function to update control register bits.
Definition at line 447 of file DC1704A.ino.
|
static |
Function to read all registers.
Definition at line 620 of file DC1704A.ino.
|
static |
Print the main menu.
Definition at line 166 of file DC1704A.ino.
|
static |
Print the title block.
Definition at line 153 of file DC1704A.ino.
|
static |
Initialize Linduino.
Definition at line 99 of file DC1704A.ino.
#define SENSE_RESISTOR 0.004 |
Definition at line 86 of file DC1704A.ino.