Datasheet

20
ENS160 Datasheet v0.95 preliminary / December 2020
14.1.4 I
2
C Write Operation
After the START condition, in a single continuous transaction:
The I²C Master sends the 7-bit slave address and 0 into the R/W bit (the byte sent
would be 0xA4 or 0xA6 dependent on the power-up value of MISO/ADDR).
The I²C Master then sends the address of the first register to write.
The I²C Master then sends 1-n data bytes which are written into sequential registers
(if valid) until the transaction is concluded with a STOP condition.
Figure 14: I
2
C Write Operation
Figure 15: I
2
C Auto-Increment Write Operation
Register address
SDA
MSB LSB
A A
Slave address
1 2 3 4 5 6 7 8 9 1 2 3 4 5 6 7 8 9
SCLK
S
R//W
Acknowledge from slave
A
S
or
P
Data to register
AD6 AD5 AD4 AD3 AD2 AD1 AD0
1 2 3 4 5 6 7 8 9
Register address
SDA
MSB LSB
A A
Slave address
1 2 3 4 5 6 7 8 9 1 2 3 4 5 6 7 8 9
SCLK
S
R//W
Acknowledge from slave
A
Data to register
AD6 AD5 AD4 AD3 AD2 AD1 AD0
1 2 3 4 5 6 7 8 9
S
or
P
Data to register + n
Master
transmitter