English
Language : 

DRV2604L Datasheet, PDF (34/73 Pages) Texas Instruments – DRV2604L 2- to 5.2-V Haptic Driver for LRA and ERM with Internal Memory and Smart-Loop Architecture
DRV2604L
SLOS866D – MAY 2014 – REVISED JUNE 2015
www.ti.com
Programming (continued)
8.5.8.2 Waveform Setup and Playback
Playback of a haptic effect can occur in multiple ways. Using the PWM mode, RTP mode, and analog-input
mode can provide the waveform in real time. The waveforms can also be played from the RAM in which case the
waveform playback engine is used and the waveform is either played by an internal GO bit (register 0x0C), or by
an external trigger.
8.5.8.2.1 Waveform Playback Using RTP Mode
The user can enter the RTP mode by writing the MODE[2:0] bit to 5 in register 0x01. When in RTP mode, the
DRV2604L device drives the actuator continuously with the amplitude specified in the RTP_INPUT[7:0] bit (in
register 0x02). Because the amplitude tracks the value specified in the RTP_INPUT[7:0] bit, the I2C bus can
stream waveforms.
8.5.8.2.2 Waveform Playback Using the Analog-Input Mode
The user can enter the analog-input mode by setting the MODE[2:0] bit to 3 in register 0x01 and by setting the
N_PWM_ANALOG bit to 1 in register 0x1D. When in analog-input mode, the DRV2604L device accepts an
analog voltage at the IN/TRIG pin. The DRV2604L device drives the actuator continuously in analog-input mode
until the user sets the device into STANDBY mode or enters another interface mode. The reference voltage in
analog-input mode is 1.8 V. Therefore a 1.8-V reference voltage is interpreted as a 100% input value, a 0.9-V
reference voltage is interpreted as 50%, and a 0-V reference voltage is interpreted as 0%. The input value is
analogous to the duty-cycle percentage in PWM mode. The interpretation of these percentages varies according
to the selected mode of operation. See the Data Formats for Waveform Playback section for details.
8.5.8.2.3 Waveform Playback Using PWM Mode
The user can enter the PWM mode by setting the MODE[2:0] bit to 3 in register 0x01 and by setting the
N_PWM_ANALOG bit to 0 in register 0x1D. When in PWM mode, the DRV2604L device accepts PWM data at
the IN/TRIG pin. The DRV2604L device drives the actuator continuously in PWM mode until the user sets the
device to STANDBY mode or to enter another interface mode. The interpretation of the duty-cycle information
varies according to the selected mode of operation. See the Data Formats for Waveform Playback section for
details.
8.5.8.2.4 Loading Data to RAM
The DRV2604LL device contains 2 kB of integrated RAM to store customer waveforms. The waveforms are
represented as time-amplitude pairs. Using the playback engine, the waveforms can be recalled, sequenced, and
played through the I2C or an external GPIO trigger.
A library consists of a revision byte (should be set to 0), a header section, and the waveform data content. The
library header defines the data boundaries for each effect ID in the data field, and the waveform data contains a
sequence of time-value pairs that define the effects.
RAM
0x000
Revision
Header
Waveform Data
0x7FF
Figure 28. RAM Memory Structure
34
Submit Documentation Feedback
Product Folder Links: DRV2604L
Copyright © 2014–2015, Texas Instruments Incorporated