Write Command; Read And Compare Command - Texas Instruments BQ27220 Technical Reference Manual

Hide thumbs Also See for BQ27220:
Table of Contents

Advertisement

Updating BQ27220 Configuration Parameters

8.1.1 Write Command

The write command "W:" instructs the I
2
register address. The I
C address format used throughout this document is based on an 8-bit representation of
the address. The format of this sequence is:
"W: I2CAddr RegAddr Byte0 Byte1 Byte2..."
For example, the following:
W: AA 55 AB CD EF 00
2
Indicates that the I
C master writes the byte sequence 0xAB 0xCD 0xEF 0x00 to register 0x55 of the device
addressed at 0xAA.
More precisely, it indicates to write the following data to the device address 0xAA:
0xAB to register 0x55
0xCD to register 0x56
0xEF to register 0x57
0x00 to register 0x58

8.1.2 Read and Compare Command

The read and compare command is formatted identically to the write command. The data presented with this
command matches the data read exactly, or the operation should cease with an error indication to the user.
The gm.fs file contains no information about program flow or decision making. If a read and compare command
72
BQ27220
Figure 8-1. Typical gm.fs File Snippet
2
C master to write one or more bytes to a given I
Copyright © 2022 Texas Instruments Incorporated
2
C address and given
SLUUBD4A – APRIL 2016 – REVISED NOVEMBER 2022
Submit Document Feedback
www.ti.com

Advertisement

Table of Contents
loading

Table of Contents