Data Sheet
AS7265x
Design Considerations
ams Application Note Page 13
[v1-5] 2018-May-23 Document Feedback
4.3 I
2
C Virtual Register Write
Writing to a virtual register is similar to the read.
Figure 14. Flow Chart for Virtual Register Write
Write t he Virtual RegAd dr
I2C.WriteReg=0x01Data=0xXX|0x80
Note:0xXXis thevirtualregisteraddres s
ReadSTATUS
I2C.ReadReg=0x00
Write t he da ta
I2C.WriteReg=0x01Data=0xXX
Note:0xXXisthedata
No
TX_VALIDbit=1?
No
ReadSTATUS
I2C.ReadReg=0x00
TX_VALIDbit=1?
Yes
Yes
Please refer to the previous section for polling the STATUS register.
Writing the virtual register address for writing is not same as the one for reading. The MSB of the
virtual register address has to be set to 1 for writing.
Figure 15. Command for Writing the Virtual Register Address for Writing
Start 0x92 WRITE Ack Virtual Reg Addr | 0x80 Ack Stop
Simple command for writing the data as below.
Figure 16. Command for Writing the Data
Start 0x92 WRITE Ack Data Ack Stop