T
I C
o
n
fid
e
n
tial
–
N
D
A
R
e
s
tr
ictio
n
s
Typical Usage Examples
6. If using the internal trigger mode, set the Go bit (in register 0x0C) to fire the effect or sequence of
effects. If using an external trigger mode, send an appropriate trigger pulse to the IN/TRIG pin. See the
Waveform Triggers
section of the DRV2605L datasheet for details.
7. If desired, the user can repeat step 5 to figure the effect or sequence again.
8. Put the device in low-power mode by deasserting the EN pin through the TCA9554 device to set the
STANDBY bit.
NOTE:
To send the same commands to multiple DRV2605L devices at the same time, configure the
TCA9554 and TCA9548A devices to the appropriate channel selections. I
2
C write functions
can be sent to multiple DRV2605L device, but I
2
C read functions for each DRV2605L device
must be read individually. One issue with write functions is the inability to properly determine
whether multiple DRV2605L devices are ACK (acknowledge) or NACK (not acknowledge) if
the same command was sent, however writing actual bytes to the DRV2605L is not a
problem. The bus acts as an
AND
bus and logic zero takes priority.
lists examples of the I
2
C transactions that are required to play a triple click (100%) waveform
using driver 1 in LRA, closed-loop mode. The yellow highlighted rows indicate auto-calibration mode and
obtaining the results for the auto-calibration compensation and back-EMF results (if required to be
performed for the first time).
Table 9. I
2
C Transaction Example of Playing a Triple Click Waveform Using Driver1 in LRA, Closed
Loop mode
SLAVE
DEVICE
ADDRESS
REGISTER
VALUE
DESCRIPTION
I
2
C ACTION
(7-BIT)
1
Write
TCA9554
0x20
0x03
0xFE
Configures IO expander for output port at channel 1
2
Write
TCA9554
0x20
0x01
0x01
Sends a high signal to output channel 1
3
Write
TCA9548A
0x70
N/A
0x01
Configures I
2
C switch to connect channel 1 I
2
C lines
4
Write
DRV2605L
0x5A
0x16
0x53
Set rated voltage (2 V
RMS
)
5
Write
DRV2605L
0x5A
0x17
0xA4
Set overdrive clamp voltage (3.6-V peak)
6
Write
DRV2605L
0x5A
0x01
0x07
Change mode to AutoCalibration
7
Write
DRV2605L
0x5A
0x1E
0x20
Set AutoCalTime to 500 ms
8
Write
DRV2605L
0x5A
0x0C
0x01
Set GO Bit
9
Read
DRV2605L
0x5A
0x0C
Poll GO Bit until it clears t0
12
Write
DRV2605L
0x5A
0x1A
0xB6
Set feedback control register
13
Write
DRV2605L
0x5A
0x1B
0x93
Set control 1 register
14
Write
DRV2605L
0x5A
0x1C
0xF5
Set control 2 register
15
Write
DRV2605L
0x5A
0x1D
0x80
Set control 3 register
16
Write
DRV2605L
0x5A
0x01
0x00
Set mode to internal trigger
17
Write
DRV2605L
0x5A
0x04
0x0C
Set waveform sequence 1 as triple-click waveform
18
Write
DRV2605L
0x5A
0x05
0x00
Indicator that there is only one waveform that
should be played
19
Write
DRV2605L
0x5A
0x0C
0x01
Set GO bit
20
Read
DRV2605L
0x5A
0x0C
Poll GO bit until it clears to 0
21
Write
TCA9554
0x20
0x00
0x00
Deassert the EN pin for driver 1
22
Write
TCA9548A
0x70
N/A
0x00
No driver I
2
C channels connected
12
DRV2605L Multi-Driver ERM, LRA Haptic Driver Evaluation Kit User’s Guide
SLOU400 – September 2014
Copyright © 2014, Texas Instruments Incorporated