
– Checking this box sets all EVM results in this plot to the same scale value specified by the Max and
Min fields.
– When this is not selected, each EVM has their own Y-axis scale based on the min and max value
for the result values of the EVM.
– For the DIETEMP Result, the units can also be toggled between °C and °F.
• This processes the existing data in the plots, and converts new data coming in. If receiving new
data while changing units, then a datapoint can be missed or duplicated.
• Max
– The maximum Y-axis value to use for all EVMs in this plot.
– If this field is empty when Manual Scale is selected, then the field auto-populate with the maximum
value currently in the plot.
• Min
– The minimum Y-axis value to use for all EVMs in this plot.
– If this field is empty when Manual Scale is selected, then the field auto-populates with the minimum
value currently in the plot.
3.3 Direct EVM USB Communication
If desired, the EVM can be communicated with directly without the use of the GUI through the USB port. This is
done by sending the desired command string over the serial COM port and receiving the results either through
the COM port or the USB BULK channel, based on the mode. This is useful for interfacing the EVM with custom
setups, scripts, or GUIs.
3.3.1 Standard USB Read and Write Operations
Use the serial COM port to read and write registers through USB commands using the following format:
• Set device address format: setdevice DEVID.
– Where setdevice is always lower case, and DEVID is defined as:
• I2C
– The 4 LSBs of the address in decimal format. Ex, for an address of 0x4A, use 10.
– Note, when the SCB is reset while one or more EVMs are connected, the address defaults to the lowest
address/chip select found.
• The SCB checks for I2C or SPI at start up, if no device is attached, the SCB defaults to SPI. Reset the
SCB with an I2C EVM connected to use I2C.
– For example, to set an I2C device with a register address of 0x4A, send the command: setdevice 10
– For this example, the EVM returns the acknowledgment and state ("idle" or "collecting") in JSON format:
{"acknowledge":"setdevice 10"}
{"evm_state":"idle"}
• Read register format: rreg ADR
– Where ADR is the address in hex, and rreg is always lower case.
– Register addresses can be in upper or lower case, and do not need to be led by '0x'. 0 padding register
addresses is also optional. For example, to read register address 0xB, some valid commands include:
• rreg b
• rreg 0B
• rreg 0x0B
– When '0x' is used, the 'x' must be lower case.
– For this example, the EVM returns the results and state ("idle" or "collecting") in JSON format:
{"acknowledge":"rreg 0x0B"}
{"register":{"address":11,"value":3}}
{"evm_state":"idle"}
• Write register format: wreg ADR VAL.
– Where ADR and VAL are in hex, and wreg is always lower case.
– Register addresses and values can be in upper or lower case, and do not need to be led by '0x'. 0 padding
register addresses and values is also optional. For example, to write register address 0x1 with the value
0xfb69, some valid commands include:
www.ti.com Software
SBOU302 – JUNE 2023
Submit Document Feedback
EZShunt™ Digital Current and Power Monitors 15
Copyright © 2023 Texas Instruments Incorporated