Data Sheet
AS7265x
Design Considerations
ams Application Note Page 11
[v1-5] 2018-May-23 Document Feedback
AS72651 does not support the slave clock stretching mode.
AS72651 has only three hardware based registers, STATUS (0x00), WRITE (0x01), and READ
(0x02). The rest are implemented as virtual registers in the firmware. All virtual registers are accessed
through WRITE and/or READ registers. Please refer to the data sheets for complete set of virtual
registers.
4.2 I
2
C Virtual Register Read
To read an I
2
C virtual register, please follow the flow chart below.
Figure 9. Flow Chart for Virtual Register Read
Wri te t he Virt ual R eg Addr
I2C.WriteReg=0x01Data=0xXX
Note:0xXXis thevirtualregisteraddress
ReadSTATUS
I2C.ReadReg=0x00
Readthedata
I2C.ReadReg=0x02
Yes
TX_VALIDbit=1?
No
ReadSTATUS
I2C.ReadReg=0x00
RX_VALIDbit=1?
Yes
No
To poll the STATUS register, the controller should write the STATUS address then following a read
command to get the value of the STATUS register. The Figure 3 shows the format of the command
for polling the STATUS register.
Figure 10. Command for Polling the STATUS Register
Start 0x92 STATUS Ack Repeat Start 0x93 Data Nack Stop
To write the virtual register address, please program WRITE register with the virtual register
address as the following format.
Figure 11. Command for Writing the Virtual Register Address for Reading
Start 0x92 WRITE Ack Virtual Reg Addr Ack Stop
Finally below is the reading command to get the data.
Figure 12. Command for Reading the READ register
Start 0x92 READ Ack Repeat Start 0x93 Data Nack Stop