SBOS844C May 2021 – March 2023 INA234
PRODUCTION DATA
Refer to the PDF data sheet for device specific package drawings
Table 7-2 lists the INA234 registers. All register locations not listed in Table 7-2 should be considered as reserved locations and the register contents should not be modified.
Address | Register Name | Register Size (bits) | Reset Value | Section |
---|---|---|---|---|
0h | Configuration Register | 16 | 4127h | Go |
1h | Shunt Voltage Register | 16 | 0000h | Go |
2h | Bus Voltage Register | 16 | 0000h | Go |
3h | Power Register | 16 | 0000h | Go |
4h | Current Register | 16 | 0000h | Go |
5h | Calibration Register | 16 | 0000h | Go |
6h | Mask/Enable Register | 16 | 0000h | Go |
7h | Alert Limit Register | 16 | 0000h | Go |
3Eh | Manufacturer ID Register | 16 | 5449h | Go |
3Fh | Device ID Register | 16 | A480h | Go |
Complex bit access types are encoded to fit into small table cells. Table 7-3 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-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. 0b = Normal Operation 1b = System Reset self clears registers to default values |
14-13 | Reserved | R | 10b | Reserved value always returns 10b |
12 | ADCRANGE | R/W | 0b | Enables the selection of the shunt full scale input across IN+ and IN–. 0b = ±81.92 mV 1b = ±20.48 mV |
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 |
The Shunt Voltage Register stores the current shunt voltage reading, VSHUNT and is show in Table 7-5. 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 = –80 mV:
If averaging is enabled, this register displays the averaged value.
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
15-4 | VSHUNT | R | 000h | Differential voltage measured across the shunt output. Two's complement value. |
3-0 | Reserved | R | 0h | Always returns 0. Remove these bits from the full result by doing a right arithmetic shift |
The bus voltage register is shown in Table 7-6.
This register will only return positive values. If averaging is enabled, this register displays the averaged value.
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
15 | Reserved | R | 0b | This bit returns Zero as common mode voltage is only positive |
14-4 | VBUS | R | 000h | These bits readout the bus voltage of the system |
3-0 | Reserved | R | 0h | Always returns 0. Remove these bits from the full result by doing a right arithmetic shift |
The power register is shown in Table 7-7.
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. |
CURRENT is shown in Table 7-8.
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-4 | CURRENT | R | 000h | Calculated current output in Amperes. Two's complement value. |
3-0 | RESERVED | R | 0h | Always returns 0. Remove these bits from the full result by doing a right arithmetic shift |
The calibration register shown in Table 7-9 must be programmed to receive valid current and power results after initial power up or power cycle events.
This register provides the device with the value of the shunt resistor that was present to create the measured differential voltage. It 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. |
The Mask/Enable Register is shown in Table 7-10.
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
15 | SOL (Shunt Over-limit) | R/W | 0b | Setting this bit high configures the ALERT pin to be asserted if the shunt voltage conversion result exceeds the value programmed in the LIMIT register |
14 | SUL (Shunt Under-limit) | R/W | 0b | Setting this bit high configures the ALERT pin to be asserted if the shunt voltage conversion result is below the value programmed in the LIMIT register. Cannot be set if Shunt overlimit is set. |
13 | BOL (Bus Over-limit) | R/W | 0b | Setting this bit high configures the ALERT pin to be asserted if the bus voltage conversion result exceeds the value programmed in the LIMIT register Cannot be set if Shunt overlimit or Shunt underlimit is set. |
12 | BUL (Bus Under-limit) | R/W | 0b | Setting this bit high configures the ALERT pin to be asserted if the bus voltage conversion result is below the value programmed in the LIMIT register Cannot be set if Shunt over limit, Shunt under limit or Bus over limit is set. |
11 | POL (Power Over-limit) | R/W | 0b | Setting this bit high configures the ALERT pin to be asserted if the power result exceeds the value programmed in the LIMIT register Cannot be set if Shunt over limit, Shunt under limit, Bus over limit or Bus under limit is set. |
10 | CNVR (Conversion Ready) | R/W | 0b | Setting this bit high configures the ALERT pin to be asserted when the Conversion Ready Flag, Bit 3, is asserted indicating that the device is ready for the next conversion. 0b = Disable conversion ready flag on ALERT pin 1b = Enables conversion ready flag on ALERT pin |
9-6 | Reserved | R | 0000b | |
5 | MemError | R | 0b | CRC or ECC error |
4 | AFF (Alert Function Flag) | R | 0b | Alert Function Flag -While only one Alert Function can be monitored at the ALERT pin at a time, the Conversion Ready can also be enabled to assert the ALERT pin. Reading the Alert Function Flag following an alert allows the user to determine if the Alert Function was the source of the Alert. When the Alert Latch Enable bit is set to Latch mode, the Alert Function Flag bit clears only when the Mask/Enable Register is read. When the Alert Latch Enable bit is set to Transparent mode, the Alert Function Flag bit is cleared following the next conversion that does not result in an Alert condition. |
3 | 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 Mask/Enable Register |
2 | OVF (Math Over-flow) | R | 0b | This bit is set to '1' if an arithmetic operation resulted in an overflow error. It indicates that current and power data may be invalid. |
1 | APOL (Alert Polarity) | R/W | 0b | Alert Polarity bit sets the Alert pin polarity. 0b = Normal (Active-low open drain) 1b= Inverted (active-high ) |
0 | LEN (Alert Latch Enable) | R/W | 0b | When the Alert Latch Enable bit is set to Transparent mode, the Alert pin and Alert Function Flag (AFF) bit resets to the idle states when the fault condition has been cleared. When the Alert Latch Enable bit is set to Latch mode, the Alert pin and AFF bit remains active following a fault until this register flag has been read. This bit must be set to use the I2C Alert Response function. 0b = Transparent 1b = Latched Alert pin |
The alert limit register is shown in Table 7-11.
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
15-0 | LIMIT | R/W | 0000h | The Alert Limit Register contains the value used to compare to the register selected in the Mask/Enable Register to determine if a limit has been exceeded. A two's complement value must be used for the Shunt Over Voltage limit. Limit values entered should match the format of the targeted register |
The manufacturer ID register is shown in Table 7-12.
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
15-0 | MANUFACTURE_ID | R | 5449h | Reads back TI in ASCII |
The Device ID register is shown in Table 7-13.
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
15-3 | DIEID | R | A480h | Stores the device identification bits |
3-0 | Reserved | R | 0h | Always read 0 |