Texas Instruments INA234EVM User Manual page 13

Hide thumbs Also See for INA234EVM:
Table of Contents

Advertisement

www.ti.com
4.2.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.
4.2.3.1 Standard USB CDC Read and Write Operations
Use the serial COM port to read and write registers through USB CDC commands using the following format:
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 0x1, some valid commands include:
rreg 1
rreg 01
rreg 0x01
– When '0x' is used, the 'x' must be lower case.
– For the previous example, the EVM would return the results in JSON format
{"acknowledge":"rreg 0x01"}
{"register":{"address":1,:"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 0x5 with the value
0x4121, some valid commands include:
wreg 5 4121
wreg 05 0x4121
wreg 0x05 0x4121
– When '0x' is used, the 'x' must be lower case.
– For the previous example, the EVM would return the results in JSON format:
{"acknowledge":"wreg 0x01 0x4121"}
{"console":"Writing 0x4121 to ADC_CONFIG register"}
{"evm_state":"idle"}
SBOU264 – MAY 2021
Submit Document Feedback
Copyright © 2021 Texas Instruments Incorporated
Operation
INA234EVM and INA236EVM
13

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ina236evm

Table of Contents