DC2100A  1.2.0
Bi-Directional Cell Balancer Using the LTC3300-1 and the LTC6804-2
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
LTC1380.h
Go to the documentation of this file.
1 /*
2  Linear Technology DC2100A Demonstration Board.
3  API Header File for LTC1380 Single-Ended 8-Channel/Differential 4-Channel Analog Multiplexer with SMBus Interface.
4  All datasheet references in this file refer to Linear Technology document 138093f.pdf.
5 
6  @verbatim
7  The LTC1380/LTC1393 are CMOS analog multiplexers with
8  SMBus compatible digital interfaces. The LTC1380 is a
9  single-ended 8-channel multiplexer, while the LTC1393 is a
10  differential 4-channel multiplexer. The SMBus digital interface
11  requires only two wires (SCL and SDA). Both the
12  LTC1380 and the LTC1393 have four hard-wired SMBus
13  addresses, selectable with two external address pins. This
14  allows four devices, each with a unique SMBus address, to
15  coexist on one system and for four devices to be synchronized
16  with one stop bit.
17  The supply current is typically 10mA. Both digital interface
18  pins are SMBus compatible over the full operating supply
19  voltage range. The LTC1380 analog switches feature a
20  typical RON of 35W (±5V supplies), typical switch leakage of
21  20pA and guaranteed break-before-make operation. Charge
22  injection is ±1pC typical.
23  The LTC1380/LTC1393 are available in 16-lead SO and GN
24  packages. Operation is fully specified over the commercial
25  and industrial temperature ranges.
26  @endverbatim
27 
28  http://www.linear.com/product/LTC1380
29 
30  REVISION HISTORY
31  $Revision: 687 $
32  $Date: 2014-09-05 14:51:22 -0400 (Fri, 05 Sep 2014) $
33 
34  Copyright (c) 2013, Linear Technology Corp.(LTC)
35  All rights reserved.
36 
37  Redistribution and use in source and binary forms, with or without
38  modification, are permitted provided that the following conditions are met:
39 
40  1. Redistributions of source code must retain the above copyright notice, this
41  list of conditions and the following disclaimer.
42  2. Redistributions in binary form must reproduce the above copyright notice,
43  this list of conditions and the following disclaimer in the documentation
44  and/or other materials provided with the distribution.
45 
46  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
47  ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
48  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
49  DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
50  ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
51  (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
52  LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
53  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
54  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
55  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
56 
57  The views and conclusions contained in the software and documentation are those
58  of the authors and should not be interpreted as representing official policies,
59  either expressed or implied, of Linear Technology Corp.
60 
61 */
62 
63 /*! @file
64  @ingroup LTC1380
65  API Header File for LTC1380 Single-Ended 8-Channel/Differential 4-Channel Analog Multiplexer with SMBus Interface.
66 */
67 
68 #ifndef __LTC1380_H__
69 #define __LTC1380_H__
70 
71 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
72 // Includes
73 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
74 #include "Typedefs.h"
75 
76 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
77 // Definitions
78 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
79 
80 //! @name LTC3300-1 Driver Properties
81 //! @{
82 #define LTC1380_NUM_CHANNELS 8 //! Num addresses and channels from datasheet Description on page 1
83 #define LTC1380_BAUD_RATE 100 //! in kHz, Max SMBus Operating Frequency (fSMB from datasheet page 3)
84 //! @}
85 
86 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
87 // Global Data
88 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
89 
90 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
91 // Global Prototypes
92 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
93 
94 //! Commands an LTC1380 mux to connect one channel to its output.
95 //! @return void
96 void LTC1380_Set_Channel(int8 board_num, //!< The logical address for the PCB containing this LTC1380 IC.
97  int8 mux_num, //!< The number for the LTC1380 IC, must be less than LTC1380_CONFIG_NUM_ICS_PER_ADDRESS.
98  int8 channel_num //!< The channel number to set for the LTC1380 IC.
99  );
100 
101 //! Commands an LTC1380 mux to disconnect all channels from its output.
102 //! @return void
103 void LTC1380_All_Off(int8 board_num, //!< The logical address for the PCB containing this LTC1380 IC.,
104  int8 mux_num //!< The number for the LTC1380 IC, must be less than LTC1380_CONFIG_NUM_ICS_PER_ADDRESS.
105  );
106 
107 #endif
void LTC1380_Set_Channel(int8 board_num, int8 mux_num, int8 channel_num)
Commands an LTC1380 mux to connect one channel to its output.
Definition: LTC1380.c:114
void LTC1380_All_Off(int8 board_num, int8 mux_num)
Commands an LTC1380 mux to disconnect all channels from its output.
Definition: LTC1380.c:138