English
Language : 

DRV201_15 Datasheet, PDF (13/29 Pages) Texas Instruments – DRV201 Voice Coil Motor Driver for Camera Auto Focus
www.ti.com
Programming (continued)
CURRENT REGISTER NUMBER K
DRV201
SLVSB25C – AUGUST 2011 – REVISED JUNE 2015
REGISTER NUMBER K+1
K+2
DRV201 ADDRESS 1
0001110
DATA
DRV201 ADDRESS 1
0001110
Figure 8. Single Read from the Current Location
DATA
7.5.1.3 Sequential Read and Write
Sequential read and write allows simple and fast access to DRV201 registers. Figure 9 shows sequential read
from a defined location. If the master doesn’t issue a stop condition after giving ACK, DRV201 auto increments
the register number and writes the data from the next register.
CURRENT REGISTER NUMBER K
REGISTER NUMBER M
REGISTER NUMBER M+1 K+2
REGISTER NUMBER M+L-1 M+L
DRV201 ADDRESS 0
0001110
REGISTER NUMBER
M
DRV201 ADDRESS 1
0001110
DATA
DATA
DATA
L bytes of DATA
Figure 9. Sequential Read from a Defined Location
Figure 10 shows the sequential write. If the master doesn’t issue a stop condition after giving ACK, DRV201 auto
increments it’s register by one and the master can write to the next register.
CURRENT REGISTER NUMBER K
REGISTER NUMBER M REGISTER NUMBER M+1 M+2
REGISTER NUMBER M+L-1 M+L
DRV201 ADDRESS 0
0001110
REGISTER NUMBER
M
DATA
DATA
L bytes of DATA
Figure 10. Sequential Write
DATA
If read is started without writing the register value first, DRV201 writes out data from the current location. If the
master doesn’t issue a stop condition after giving ACK, DRV201 auto increments the I2C register and writes out
the data. This continues until the master issues a stop condition. This is shown in Figure 11.
CURRENT REGISTER NUMBER K
REGISTER NUMBER K+1 K+2
REGISTER NUMBER K+L-1 K+L
DRV201 ADDRESS 1
0001110
DATA
DATA
DATA
L bytes of DATA
Figure 11. Sequential Read Starting from a Current Location
Copyright © 2011–2015, Texas Instruments Incorporated
Product Folder Links: DRV201
Submit Documentation Feedback
13