![]() |
Linduino
1.3.0
Linear Technology Arduino-Compatible Demonstration Board
|
Linear Technology DC985A Demonstration Board. More...
Linear Technology DC985A Demonstration Board.
LTC4245: 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 DC985A. 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 LTC4245. USER INPUT DATA FORMAT: decimal : 1024 hex : 0x400 octal : 02000 (leading 0 "zero") binary : B10000000000 float : 1024.0
http://www.linear.com/product/LTC4245
http://www.linear.com/product/LTC4245#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 DC985A.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... | |
static uint8_t | discover_DC985A (char *demo_name) |
Read the ID string from the EEPROM and determine if the correct board is connected. More... | |
|
static |
Read the ID string from the EEPROM and determine if the correct board is connected.
Returns 1 if successful, 0 if not successful
Definition at line 155 of file DC985A.ino.
|
static |
Repeats Linduino loop.
Definition at line 109 of file DC985A.ino.
|
static |
Function to read Rsense current, ADIN voltage and ADIN2 voltage in continous mode.
Definition at line 216 of file DC985A.ino.
|
static |
Function to read and clear fault register.
Definition at line 339 of file DC985A.ino.
|
static |
Function to send alert response (0001100) and read back the address of device that pulled ALERT pin low.
Definition at line 395 of file DC985A.ino.
|
static |
Function to update alert register bits.
Definition at line 412 of file DC985A.ino.
|
static |
Function to update control register bits.
Definition at line 589 of file DC985A.ino.
|
static |
Function to read all registers.
Definition at line 747 of file DC985A.ino.
|
static |
Print the main menu.
Definition at line 203 of file DC985A.ino.
|
static |
Print the title block.
Definition at line 190 of file DC985A.ino.
|
static |
Initialize Linduino.
Definition at line 97 of file DC985A.ino.