![]() |
Linduino
1.3.0
Linear Technology Arduino-Compatible Demonstration Board
|
LTC4245: Hot Swap Controller with I2C Compatible Monitoring. More...
LTC4245: Hot Swap Controller with I2C Compatible Monitoring.
The LTC4245 Hot Swap controller allows a board to be safely inserted and removed from a live backplane. Using an external N-channel pass transistor, board supply voltage and inrush current are ramped up at an adjustable rate. An I2C interface and onboard ADC allow for monitoring of load current, voltage and fault status. I2C DATA FORMAT (MSB FIRST): Data Out: Byte #1 Byte #2 Byte #3 START SA6 SA5 SA4 SA3 SA2 SA1 SA0 W SACK C7 C6 C5 C4 C3 C2 C1 C0 SACK D7 D6 D5 D4 D3 D2 D1 D0 SACK STOP Data In: Byte #1 Byte #2 Byte #3 START SA6 SA5 SA4 SA3 SA2 SA1 SA0 W SACK C7 C6 C5 C4 C3 C2 C1 C0 SACK Repeat Start SA6 SA5 SA4 SA3 SA2 SA1 SA0 R SACK Byte #4 Byte #5 MSB LSB D15 D14 D13 D12 D11 D10 D9 D8 MACK D7 D6 D5 D4 D3 D2 D1 D0 MNACK STOP START : I2C Start Repeat Start: I2C Repeat Start STOP : I2C Stop SAx : I2C Address SACK : I2C Slave Generated Acknowledge (Active Low) MACK : I2C Master Generated Acknowledge (Active Low) MNACK : I2C Master Generated Not Acknowledge W : I2C Write (0) R : I2C Read (1) Cx : Command Code Dx : Data Bits X : Don't care Example Code: float adin_lsb = (1.23/255); // ADIN Voltage Data is 8-Bit Data with 4.82mV LSB and 1.23V Full Scale float adin_resisive_ratio = (155.4/12.4); // Resistor divider circuit at ADIN pin. ack |= LTC4245_read(LTC4245_I2C_ADDRESS, LTC4245_ADIN_REG, &adin_code); // Read ADIN Register adin_voltage = LTC4245_code_to_voltage(adin_code, adin_lsb, adin_resisive_ratio); // Calculate ADIN Voltage from ADIN Register data
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.
Header for LTC4245: Hot Swap Controller with I2C Compatible Monitoring
Definition in file LTC4245.h.
Go to the source code of this file.
Functions | |
float | LTC4245_code_to_voltage (uint8_t register_code, float full_scale_voltage) |
Calculates voltage from register code data. More... | |
int8_t | LTC4245_ARA (uint8_t alert_response_address, uint8_t *i2c_address) |
SMBus Alert ResponseProtocol: Sends an alert response command and releases /ALERT pin. More... | |
int8_t | LTC4245_write (uint8_t i2c_address, uint8_t command, uint8_t code) |
Write an 8-bit code to the LTC4245. More... | |
int8_t | LTC4245_read (uint8_t i2c_address, uint8_t command, uint8_t *code) |
Reads an 8-bit adc_code from LTC4245. More... | |
int8_t LTC4245_ARA | ( | uint8_t | alert_response_address, |
uint8_t * | i2c_address | ||
) |
SMBus Alert ResponseProtocol: Sends an alert response command and releases /ALERT pin.
LTC4245 responds with its address
alert_response_address | the Alert Response Address on the I2C bus |
i2c_address | the address of the alert source |
Definition at line 82 of file LTC4245.cpp.
float LTC4245_code_to_voltage | ( | uint8_t | register_code, |
float | full_scale_voltage | ||
) |
Calculates voltage from register code data.
full_scale_voltage | Data from registers Full scale voltage |
Definition at line 73 of file LTC4245.cpp.
int8_t LTC4245_read | ( | uint8_t | i2c_address, |
uint8_t | command, | ||
uint8_t * | code | ||
) |
Reads an 8-bit adc_code from LTC4245.
command | LTC4245 I2C ADDRESS |
code | Register address to read from Contents of the requested register |
Definition at line 98 of file LTC4245.cpp.
int8_t LTC4245_write | ( | uint8_t | i2c_address, |
uint8_t | command, | ||
uint8_t | code | ||
) |
Write an 8-bit code to the LTC4245.
command | LTC4245 I2C ADDRESS |
code | Register address to be written into Data to be written into the register |
Definition at line 90 of file LTC4245.cpp.