This application note describes the usage of current shunt and power monitor INA226/INA228 with the AM263x MCU. The two devices can use the Inter-Integrated Circuit (I2C) interface for communication. This document provides an example of using the AM263x control card evaluation module (EVM) to evaluate this usage, along with an excel tool that provides the programming values and the I2C driver to program them.
The spreadsheet mentioned in this document can be downloaded from the following URL: https://www.ti.com/lit/zip/sprad70.
Code Composer Studio™ is a trademark of Texas Instruments.
All trademarks are the property of their respective owners.
Current shunt monitors are a simple and easy way to measure current. The INA226/INA228 is a current shunt and power monitor with an I2C- or SMBUS-compatible interface. It measures the voltage across a sense resistor placed in the conduction path between a power source and a load. The device can monitor both shunt voltage drops and bus supply voltage. Programmable calibration value, conversion times, and averaging, combined with an internal multiplier, enable direct readouts of current in amperes and power in watts.
The INA226 reports current, bus voltage and power on common-mode bus voltages that can vary from 0 V to 36 V, independent of the supply voltage. The device operates from a single 2.7-V to 5.5-V supply, drawing a typical of 330 μA of supply current. It can measure a full-scale differential input of ±81.92 mV across a resistive shunt sense element.
The INA228 reports current, bus voltage, temperature, power, energy and charge accumulation on common-mode bus voltages that can vary from 0 V to 85 V, independent of the supply voltage. The device operates from a single 2.7-V to 5.5-V supply, drawing a typical of 640 μA of supply current. It can measure a full-scale differential input of ±163.84 mV or ±40.96 mV across a resistive shunt sense element with common-mode voltage support from –0.3 V to +85 V. The integrated temperature sensor is ±1°C accurate for die temperature measurement and is useful in monitoring the system ambient temperature.
The devices are specified over the operating temperature range between –40°C and 125°C and features up to 16 programmable addresses on the I2C-compatible interface. See the respective device datasheets for more information.
The INA226/INA228 can be used as a simple on-board device for added safety and protection, feedback control and system monitoring in applications such as battery management systems (BMS) in hybrid electric vehicles (HEV) and electric vehicles (EV), battery test equipment, motor current measurements in industrial drives and automotive applications, and so forth. It can help in monitoring/ measuring the following:
The AM263x Control Card Evaluation Module (EVM) has 2x INA226/INA228 (in E1/E2 respectively) current monitors that can be used to evaluate this usage. The two current monitors are used to measure the power on the two voltage rails, 1.2V and 3.3V, respectively.
As an example, consider the monitoring and measurement of power on the 1.2V voltage rail. Follow sections 3.1 and 3.2 if you are using the control card with INA226 or sections 3.3 and 3.4 if it has the INA228.