Linduino  1.3.0
Linear Technology Arduino-Compatible Demonstration Board

Linear Technology DC874A Demonstration Board. More...

Detailed Description

Linear Technology DC874A Demonstration Board.

LTC4215: 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
   LTC4215.

USER INPUT DATA FORMAT:
 decimal : 1024
 hex     : 0x400
 octal   : 02000  (leading 0 "zero")
 binary  : B10000000000
 float   : 1024.0

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

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

Definition in file DC874A.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
 

Function Documentation

◆ loop()

static void loop ( void  )
static

Repeats Linduino loop.

Definition at line 109 of file DC874A.ino.

◆ main_menu_1_continuous_mode()

static int8_t main_menu_1_continuous_mode ( )
static

Function to read Rsense current, ADIN voltage and ADIN2 voltage in continous mode.

Returns
Returns the state of the acknowledge bit after the I2C address write. 0=acknowledge, 1=no acknowledge.

Definition at line 179 of file DC874A.ino.

◆ main_menu_2_read_and_clear_faults()

static int8_t main_menu_2_read_and_clear_faults ( )
static

Function to read and clear fault register.

Returns
Returns the state of the acknowledge bit after the I2C address write. 0=acknowledge, 1=no acknowledge.

Definition at line 243 of file DC874A.ino.

◆ main_menu_3_send_ARA()

static int8_t main_menu_3_send_ARA ( )
static

Function to send alert response (0001100) and read back the address of device that pulled ALERT pin low.

Returns
Returns the state of the acknowledge bit after the I2C address write. 0=acknowledge, 1=no acknowledge.

Definition at line 273 of file DC874A.ino.

◆ main_menu_4_manage_alerts()

static int8_t main_menu_4_manage_alerts ( )
static

Function to update alert register bits.

Returns
Returns the state of the acknowledge bit after the I2C address write. 0=acknowledge, 1=no acknowledge.

Definition at line 290 of file DC874A.ino.

◆ main_menu_5_settings()

static int8_t main_menu_5_settings ( )
static

Function to update control register bits.

Returns
Returns the state of the acknowledge bit after the I2C address write. 0=acknowledge, 1=no acknowledge.

Definition at line 447 of file DC874A.ino.

◆ main_menu_6_read_all_registers()

static int8_t main_menu_6_read_all_registers ( )
static

Function to read all registers.

Returns
Returns the state of the acknowledge bit after the I2C address read. 0=acknowledge, 1=no acknowledge.

Definition at line 620 of file DC874A.ino.

◆ print_prompt()

static void print_prompt ( )
static

Print the main menu.

Definition at line 166 of file DC874A.ino.

◆ print_title()

static void print_title ( void  )
static

Print the title block.

Definition at line 153 of file DC874A.ino.

◆ setup()

static void setup ( void  )
static

Initialize Linduino.

Definition at line 99 of file DC874A.ino.

Macro Definition Documentation

◆ SENSE_RESISTOR

#define SENSE_RESISTOR   0.004

Definition at line 86 of file DC874A.ino.