SLOS893D September 2014 – August 2025 DRV2624
PRODUCTION DATA
Refer to the PDF data sheet for device specific package drawings
To play haptic effects from the internal memory, the effects must first be loaded into the waveform sequencer, and then the effects can be launched by using any of the trigger options.
The waveform sequencer queues waveform-library identifiers for playback. Eight sequence registers queue up to eight library waveforms for sequential playback. A waveform identifier is an integer value referring to the index position of a waveform in the internal memory. Playback begins at WAV_FRM_SEQ1 when the user triggers the waveform sequencer. When playback of that waveform ends, the waveform sequencer plays the next waveform identifier held in WAV_FRM_SEQ2 (if non-zero). The waveform sequencer continues in this way until the sequencer reaches an identifier value of zero or until all eight identifiers are played whichever comes first.
The waveform identifier is a 7-bit number. The MSB of each sequence register can be used to implement a delay between sequence waveforms. When the MSB is high, bits 6-0 indicate the length of the wait time. The wait time for that step then becomes WAV_FRM_SEQ[6:0] × 10ms.
The DRV2624 device allows for looping of individual waveforms by using the WAVn_SEQ_LOOP parameters. When used, the state machine loops the particular waveform the number of times specified in the associated WAVn_SEQ_LOOP parameter before moving to the next waveform. Additionally, the entire sequencer of waveforms can be looped a number of times specified by the WAV_SEQ_MAIN_LOOP parameter. The waveform-looping feature is useful for long, custom haptic playbacks, such as a haptic ringtone.
Figure 7-18 Waveform Sequencer Programming