SBOSAB5 May 2024 INA4235
PRODUCTION DATA
Refer to the PDF data sheet for device specific package drawings
Table 7-1 lists the INA4235 registers. All register locations not listed in the table are considered as reserved locations and the register contents must not be modified.
Register Name | Address | Register Type | Register Size (bits) | Default Value |
---|---|---|---|---|
CONFIG1 | 0x20 | R/W | 16 | 0xF127 |
CONFIG2 | 0x21 | R/W | 16 | 0x0000 |
CALIBRATION_(CH1 - CH4) | 0x05,0x0D, 0x15. 0x1D | R/W | 16 | 0x0000 |
ALERT_CONFIG(1 - 4) | 0x07, 0x0F, 0x17, 0x1F | R/W | 16 | 0x0000 |
ALERT_LIMIT(1 - 4) | 0x06, 0x0E, 0x16, 0x1E | R/W | 16 | 0x0000 |
SHUNT_VOLTAGE_(CH1 - CH4) | 0x00, 0x08, 0x10, 0x18 | R | 16 | 0x0000 |
BUS_VOLTAGE_(CH1 - CH4) | 0x01, 0x09, 0x11,0x19 | R | 16 | 0x0000 |
CURRENT_(CH1 - CH4) | 0x02, 0x0A, 0x12, 0x1A | R | 16 | 0x0000 |
POWER_(CH1 - Ch4) | 0x03, 0x0B, 0x13, 0x1B | R | 16 | 0x0000 |
ENERGY_(CH1 - CH4) | 0x04, 0x0C, 0x14, 0x1C | R | 32 | 0x0000 |
FLAGS | 0x22 | R | 16 | 0x0000 |
MANUFACTURER_ID | 0x7E | R | 16 | 0x5449 ("TI" in ASCII) |
DEVICE_ID | 0x7F | R | 16 | 0x4350 |
Complex bit access types are encoded to fit into small table cells. Table 7-2 shows the codes that are used for access types in this section.
Access Type | Code | Description |
---|---|---|
Read Type | ||
R | R | Read |
Write Type | ||
W | W | Write |
The configuration register is shown in Table 7-3.
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
15-12 | ACTIVE_CHANNEL | R/W | 1111b | These 4 bits determine which channels are active. Set
this bit to '1' to enable each channel. Disabled channels are
skipped in the round robin cycle. Bit15 = Channel 4 measurement enable/disable. Bit14 = Channel 3 measurement enable/disable. Bit13 = Channel 2 measurement enable/disable. Bit12 = Channel 1 measurement enable/disable. Power up default: 1111b = All channels active |
11-9 | AVG | R/W | 000b | Sets the number of ADC conversion results to be
averaged. The read-back registers are updated after averaging is
completed. 000b = 1 001b = 4 010b = 16 011b = 64 100b = 128 101b = 256 110b = 512 111b = 1024 |
8-6 | VBUSCT | R/W | 100b | Sets the conversion time of the VBUS measurement 000b = 140µs 001b = 204µs 010b = 332µs 011b = 588µs 100b = 1100µs 101b = 2116µs 110b = 4156µs 111b = 8244µs |
5-3 | VSHCT | R/W |
100b |
Sets the conversion time of the SHUNT measurement 000b = 140µs 001b = 204µs 010b = 332µs 011b = 588µs 100b = 1100µs 101b = 2116µs 110b = 4156µs 111b = 8244µs |
2-0 | MODE | R/W |
111b |
Operating mode, modes can be selected to operate the
device either in Shutdown mode, continuous mode or triggered mode.
The mode also allows user to select mux settings to set continuous or triggered mode on bus voltage, shunt voltage measurement. 000b = Shutdown 001b = Shunt voltage triggered, single shot 010b = Bus voltage triggered, single shot 011b = Shunt voltage and Bus voltage triggered, single shot 100b = Shutdown 101b = Continuous shunt voltage 110b = Continuous bus voltage 111b = Continuous shunt and bus voltage |
Return to the Summary Table.
The configuration register is shown in Table 7-4.
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
15 |
RST |
R/W |
0b |
Set this bit to '1' to generate a system reset that is the same as power-on reset. Resets all registers to default values and then self-clears. |
14-12 | Reserved | R | 000b | These bits always read 0. |
11-8 | ACC_RST | R/W | 0000b | Writing a one to these bits resets the
energy registers and clears any overflow flags. Bit11 = Channel 4 energy reset, overflow clear. Bit10 = Channel 3 energy reset, overflow clear. Bit9 = Channel 2 energy reset, overflow clear. Bit8 = Channel 1 energy reset, overflow clear. Power up default: 0000b = All channels active Bits are reset back to 0 after write. |
7 | CNVR_MASK | R/W | 0b |
Setting this bit high configures the ALERT pin to be asserted when conversions are complete. 0b = Disable conversion ready flag on ALERT pin 1b = Enables conversion ready flag on ALERT pin ALERT remains asserted until the CVRF field in the flags register is read. |
6 | ENOF_MASK | R/W |
0b |
When set to 1, the Alert pin toggles when an energy overflow condition occurs on any of the enabled channels |
5 | ALERT_LATCH | R/W |
0b |
When set to 1 the state of the Alert pin latches during fault conditions. To clear the alert the alert flags register must be read and the fault condition removed. |
4 | ALERT_POL | R/W | 0b | When this bit is set to 1, the alert pin toggles from low to high during a fault condition. When set to 0 (default), the alert pin toggles from high to low during faults. |
3-0 | RANGE | R/W | 0000b |
Enables the selection of the shunt full scale input range for each channel. Bit3 = Channel 4 range selection. Bit2 = Channel 3 range selection. Bit1 = Channel 2 range selection. Bit0 = Channel 1 range selection. range selection bit = 0 selects ±81.92mV range selection bit = 1 selects ±20.48mV 0000b = all channels set to ±81.92mV range |
Return to the Summary Table.
The calibration registers shown in Table 7-5 must be programmed to receive valid current, power, and energy results after initial power up, power cycle events, or on device enable.
Address | Register Name | Register Type | Register Size (bits) |
---|---|---|---|
0x05 | CALIBRATION_CH1 | R/W | 16 |
0x0D | CALIBRATION_CH2 | R/W | 16 |
0x15 | CALIBRATION_CH3 | R/W | 16 |
0x1D | CALIBRATION_CH4 | R/W | 16 |
This register provides the device with the value of the shunt resistor that are present to create the measured differential voltage. This register also sets the resolution of the Current Register. Programming this register sets the Current_LSB and the Power_LSB.
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
15 | Reserved | R | 0h | |
14-0 | SHUNT_CAL | R/W | 0000h | Programmed value needed for doing the shunt voltage to current conversion. |
Return to the Summary Table.
The alert configuration registers are shown in Table 7-7.
Address | Register Name | Register Type | Register Size (bits) |
---|---|---|---|
0x07 | ALERT1 | R/W | 16 |
0x0F | ALERT2 | R/W | 16 |
0x17 | ALERT3 | R/W | 16 |
0x1F | ALERT4 | R/W | 16 |
The format of each alert configuration register is shown in Table 7-8.
These registers configure what triggers an alert for each of the channels. The alert mask field sets the active alert. Up to 4 alerts can be assigned to a given channel or spread equally across all channels depending on the needs of the application.
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
15 - 4 | Reserved | R | 000000000000b | Reserved |
4-3 | CHANNEL | R/W | 00b | Selects 00b = Channel 1 01b = Channel 2 10b = Channel 3 11b = Channel 4 |
2-0 | ALERT_MASK |
R/W |
000b | Sets the active alert for the assigned channel 000b = reserved, no effect 001b = Shunt Voltage over limit (SOL) 010b = Shunt Voltage under limit (SUL) 011b = Bus Voltage over limit (BOL) 100b = Bus Voltage under limit (BUL) 101b = Power over limit (POL) 110b = reserved, no effect 111b = reserved, no effect |
The alert configuration registers set what triggers an alert for each of the channels. The alert mask field sets the active alert. Up to 4 alerts can be assigned to a given channel or spread as required across all channels depending on the application.
Return to the Summary Table.
The alert limit registers shown in Table 7-9 must be programmed to set the desired fault limit threshold.
Address | Register Name | Register Type |
Reset |
Register Size (bits) |
---|---|---|---|---|
0x06 | LIMIT1 | R/W |
0000h |
16 |
0x0E | LIMIT2 | R/W |
0000h |
16 |
0x16 | LIMIT3 | R/W |
0000h |
16 |
0x1E | LIMIT4 | R/W |
0000h |
16 |
The format of the alert limit register follows the format of the corresponding result register.
Shunt voltage limits are represented as signed 16 bit, bus voltage limits are unsigned 15 bit, and power limits are unsigned 16 bit values.
Return to the Summary Table.
The Shunt Voltage Registers store the current shunt voltage reading, VSHUNT. The shunt voltage measurement for each channel has a unique address as shown in Table 7-10.
Address | Register Name | Register Type | Register Size (bits) |
---|---|---|---|
0x00 | SHUNT_VOLTAGE_CH1 | R | 16 |
0x08 | SHUNT_VOLTAGE_CH2 | R | 16 |
0x10 | SHUNT_VOLTAGE_CH3 | R | 16 |
0x18 | SHUNT_VOLTAGE_CH4 | R | 16 |
The format of each shunt voltage register is shown in Table 7-11.
If averaging is enabled, these registers contain the averaged shunt voltage value.
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
15-0 | VSHUNT | R | 0000h | Differential voltage measured across the shunt output. 2's complement value. |
Negative numbers are represented in two's complement format. Generate the two's complement of a negative number by complementing the absolute value binary number and adding 1. An MSB = '1' denotes a negative number.
Example: For a value of VSHUNT = –80mV:
Return to the Summary Table.
The bus voltage registers store the voltage measured at the bus pin for each of the channels. Bus voltage measurements are stored in an unique register addresses as shown in Table 7-12.
Address | Register Name | Register Type | Register Size (bits) |
---|---|---|---|
0x01 | BUS_VOLTAGE_CH1 | R | 16 |
0x09 | BUS_VOLTAGE_CH2 | R | 16 |
0x11 | BUS_VOLTAGE_CH3 | R | 16 |
0x19 | BUS_VOLTAGE_CH4 | R | 16 |
The format of each bus voltage register is shown in Table 7-13.
The bus voltage registers only return positive values. If averaging is enabled, this register displays the averaged value.
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
15-0 | VBUS | R | 0000h | Bus voltage output. 2's complement value, however always positive. |
Return to the Summary Table.
The current registers store the calculated current value for each of the channels. Current measurements are stored in an unique register addresses as shown in Table 7-14.
Address | Register Name | Register Type | Register Size (bits) |
---|---|---|---|
0x02 | CURRENT_CH1 | R | 16 |
0x0A | CURRENT_CH2 | R | 16 |
0x12 | CURRENT_CH3 | R | 16 |
0x1A | CURRENT_CH4 | R | 16 |
The format of each bus current register is shown in Table 7-15.
If averaging is enabled, this register displays the averaged value. The value of the Current Register is calculated by multiplying the decimal value in the Shunt Voltage Register with the decimal value of the Calibration Register.
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
15-0 | CURRENT | R | 0000h | Calculated current output in Amperes. 2's complement value. |
Return to the Summary Table.
The power registers store the multiplied value of the bus voltage and current for each of the channels. Power measurements are stored in an unique register addresses as shown in Table 7-16.
Address | Register Name | Register Type | Register Size (bits) |
---|---|---|---|
0x03 | POWER_CH1 | R | 16 |
0x0B | POWER_CH2 | R | 16 |
0x13 | POWER_CH3 | R | 16 |
0x1B | POWER_CH4 | R | 16 |
The format of each bus power register is shown in Table 7-17.
If averaging is enabled, this register displays the averaged value. The Power Register records power in Watts by multiplying the decimal values of the Current Register with the decimal value of the Bus Voltage Register. This is an unsigned result.
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
15-0 | POWER | R | 0000h | This bit returns a calculated value of power in the
system. This is an unsigned result. |
Return to the Summary Table.
The energy registers accumulate data from the power registers and with the internal precision timebase calculate and store the energy for each of the channels. Energy measurements are stored in an unique register addresses as shown in Table 7-18.
Address | Register Name | Register Type | Register Size (bits) |
---|---|---|---|
0x04 | ENERGY_CH1 | R | 32 |
0x0C | ENERGY_CH2 | R | 32 |
0x14 | ENERGY_CH3 | R | 32 |
0x1C | ENERGY_CH4 | R | 32 |
The format of each bus power register is shown in Table 7-19.
The Energy register records energy in Joules and utilizes the precision oscillator as a timebase. This is an unsigned result.
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-0 | ENERGY | R | 00000000h | This bit returns a calculated value of energy in the
system. This is an unsigned result. |
Return to the Summary Table.
The Flags Register is shown in Table 7-20.
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
15 | LIMIT4_ALERT | R | 0b |
Indicates the fourth alert limit has been exceeded. This alert is independent of channel. |
14 | LIMIT3_ALERT | R | 0b |
Indicates the third alert limit has been exceeded. This alert is independent of channel. |
13 | LIMIT2_ALERT | R | 0b |
Indicates the second alert limit has been exceeded. This alert is independent of channel. |
12 | LIMIT1_ALERT | R | 0b |
Indicates the first alert limit has been exceeded. This alert is independent of channel. |
11 | ENERGYOF_CH4 | R | 0b |
Indicates an the energy register has overflowed for channel 4 |
10 | ENERGYOF_CH3 | R | 0b |
Indicates an the energy register has overflowed for channel 3 |
9 | ENERGYOF_CH2 | R | 0b |
Indicates an the energy register has overflowed for channel 2 |
8 | ENERGYOF_CH1 | R | 0b |
Indicates an the energy register has overflowed for channel 1 |
7 | CVRF (Conversion Ready Flag) | R | 0b |
Although the device can be read at any time, and the data from the last conversion is available, the Conversion Ready Flag bit is provided to help coordinate one-shot or triggered conversions. The Conversion Ready Flag bit is set after all conversions, averaging, and multiplications are complete. Conversion Ready Flag bit clears under the following conditions: 1.) Writing to the Configuration Register (except for Power-Down selection) 2.) Reading the Flags Register |
6 | OVF (Math Over-flow) | R | 0b | This bit is set to '1' if an arithmetic operation results in an overflow error. This bit indicates that current and power data can be invalid. |
5-0 | Reserved | - | 000000b |
Reserved |
Return to the Summary Table.
The manufacturer ID register is shown in Table 7-21.
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
15-0 | MANUFACTURE_ID | R | 5449h | Reads back TI in ASCII |
Return to the Summary Table.
The DEVICE_ID register is shown in Table 7-22.
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
15-4 | DIE_ID | R | 0x435 | Stores the device identification bits |
3-0 | REV_ID | R | 1h | Device revision identification. |
Return to the Summary Table.