Datasheet

Table Of Contents
DA7280
LRA/ERM Haptic Driver with Multiple Input Triggers,
Integrated Waveform Memory and Wideband Support
Datasheet
Revision 3.0
30-Jul-2019
CFR0011-120-00
22 of 76
© 2019 Dialog Semiconductor
5.2.6 Register Triggered Waveform Memory Mode
If sequence consistency or I
2
C bus availability is a concern, register triggered waveform memory
mode (RTWM) mode can be used to play back previously defined sequences from the Waveform
Memory, see Section 5.8, via I
2
C register trigger only. Enter this mode by setting
OPERATION_MODE = 3.
5.2.6.1 I
2
C Triggering and Sequence Looping
Sequence selection is done via PS_SEQ_ID with the additional option to loop the sequence up to
16 times using PS_SEQ_LOOP. To trigger a sequence, set SEQ_START = 1. Once a sequence
completes, the event is reported by dropping the nIRQ pin low and signaling via SEQ_DONE_M.
To repeat a sequence immediately following completion of playback, set SEQ_CONTINUE = 1.
5.2.7 Edge Triggered Waveform Memory Mode
If there is no host available, or for minimal host interaction, edge triggered waveform memory mode
(ETWM) mode can be used to play back a previously defined sequences from the Waveform
Memory, see Section 5.8, via external GPI edge trigger or also via I
2
C trigger, as in RTWM mode.
The ETWM is also useful if deterministic timing is required without reliance on the I
2
C bus.
Each of the GPI_0, GPI_1 and GPI_2 pins can be independently configured and will react according
to the setting in GPIx_POLARITY as follows:
Rising edge trigger, GPIx_POLARITY = 0: only a rising GPI edge creates an event that triggers a
pre-programmed sequence.
Falling edge trigger, GPIx_POLARITY = 1: only a falling GPI edge creates an event that triggers
a pre-programmed sequence.
Rising and falling edge trigger, GPIx_POLARITY = 2: both edges create events that trigger a pre-
programmed sequence.
Any event received during playback from any GPI after the initial GPI trigger event will result in a
sequence stop.
There are two ways of reacting to a GPI event based on GPIx_MODE:
Single sequence, GPIx_MODE = 0: no matter how many times a particular GPI is triggered, it will
play the sequence located at GPIx_SEQUENCE_ID.
Multi-sequence, GPIx_MODE = 1: odd GPI events trigger the sequence at
GPIx_SEQUENCE_ID, while even GPI events trigger the sequence located at the value of
GPIx_SEQUENCE_ID + 1 bit.
In ETWM mode, a maximum of six different sequences can be configured (two per GPI, when multi-
sequence mode is enabled). The desired haptic sequence for each GPI must be set by programming
GPIx_SEQUENCE_ID.
Once a sequence has finished playing, a signal is sent via the nIRQ pin and DA7280 automatically
returns to IDLE state, assuming STANDBY_EN = 0, to await the next trigger event.
Sequence looping operates in the same way as RTWM mode, see Section 5.2.6.1.