T
I C
o
n
fid
e
n
tial
–
N
D
A
R
e
s
tr
ictio
n
s
DRV2605L Demonstration Program
3.2.2
Mode 2 and Mode 3
Mode 2 and mode 3 enable and connect the I
2
C lines for drivers 1 through 4 and drivers 5 through 8,
respectively. The four DRV2605L devices are sent the same default initialization settings for the ERM
actuators (Mode 2) and LRA actuators (Mode 3). The drivers are then setup in RTP mode with magnitude
0x7F. The waveform plays for 2 s and then the drivers are changed to internal trigger mode (to stop RTP
mode).
3.2.3
Mode 4 and Mode 5
Mode 4 and mode 5 enable and connects the I
2
C lines for drivers 1 through 4 and drivers 5 through 8,
respectively. The four DRV2605L devices are sent the same default initialization settings for ERM
actuators (Mode 4) and LRA actuators (Mode 5). When the settings are received by the DRV2605L
devices, each DRV2605L device is individually enabled sequentially and setup for RTP mode with
magnitude 0x7F at a 500-ms interval. Driver 1 or 5 outputs the RTP waveform for 500 ms, then the next
sequential drivers (driver 2 or 6, 3 or 7, 4 or 8) repeat the same conditions as driver 1. As soon as driver 4
or 8 completes the waveform output, all drivers go out of RTP mode for 100 ms and then enter RTP mode
with magnitude 0x7F for 100 ms to create a brief pulse action.
3.3
User Switch
At board startup, the capacitive touch buttons are automatically enabled and USB communication is
disabled even though USB communication was initialized. To enter USB communication for use with the
multi-driver graphical user interface (GUI), the user switch must be pressed. LED1 turns to indicate that
the firmware is active for USB transactions. When the user switch is pressed and the board is in USB
communication mode, the capacitive touch buttons are disabled. A power cycle or software reset is
required to go back to capacitive-touch mode.
3.4
Firmware Modifications
Before the board can accept any combination of LRA and ERM actuators connected to the DRV2605L
devices, the firmware is required to be modified because it must know which actuators are connected to
which haptic drivers. Additional hardware-like dip switches are required to detect real-time changes with
actuators or enable the drivers. The header file,
haptics.h
, contains the definitions of driver 1 through
driver 8, and actuator 1 through actuator 8 which are mapped to arrays that are used in haptic methods as
follows:
•
Haptics_DriversEnableConfig()
•
Haptics_EnableAvailableDrivers()
•
Haptics_ActuatorTypeConnected()
•
Haptics_SwitchAvailableDrivers()
The driver definitions can be either
CONNECTED
or
NOT_CONNECTED
. The actuator definitions can be
either
ACTUATOR_ERM
or
ACTUATOR_LRA
. When each definition is defined properly, the methods
provided configure the TCA9554A and TCA9548A devices to enable the DRV2605L devices and connect
the I
2
C lines of the drivers to the master I
2
C bus properly.
5
SLOU400 – September 2014
DRV2605L Multi-Driver ERM, LRA Haptic Driver Evaluation Kit User’s Guide
Copyright © 2014, Texas Instruments Incorporated