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
31 of 76
© 2019 Dialog Semiconductor
5.6.5.5 Edge Triggered Waveform Memory (ETWM) Mode
The following registers should be set up prior to operation in ETWM mode:
Set SNP_MEM_x (where x = 0 to 99), see Section 5.8.
Set FREQ_WAVEFORM_TIMEBASE according to the minimum or maximum sequence timebase
required.
If custom waveform sequences are required, see Section 5.7.5.
Set WAV_MEM_LOCK = 0 to prohibit access to the waveform memory if required.
Figure 16 shows how to operate the device in ETWM mode.
1. Before first-time playback, set GPIx_SEQUENCE_ID, GPI_x_MODE, and GPIx_POLARITY, see
Section 5.2.7. These bits determine which sequence each of the GPI pins points to, whether they
trigger single or multiple sequences, and whether they react to rising, falling, or both edges.
2. Set PS_SEQ_ID and PS_SEQ_LOOP to select the sequence to play from Waveform Memory
when a start event is created via writing to I
2
C (SEQ_START). Note: If this has already been
done, then this step can be skipped.
3. Set OPERATION_MODE = 4. On subsequent sequence playbacks, this step can be skipped (if
OPERATION_MODE = 4). Haptic sequences will not begin playing until a start event is detected
either by an edge on one of the GPI pins, or by setting SEQ_START = 1 via I
2
C.
4. While in the DRIVE state, set SEQ_CONTINUE = 1 to repeat the sequence.
5. When the haptic sequence is completed, DA7280 will signal this by setting nIRQ = 0 and setting
SEQ_DONE = 1. DA7280 will then return to IDLE or STANDBY state, depending on the value of
the STANDBY_EN.
6. Clear the nIRQ and SEQ_DONE_M signals by setting SEQ_DONE_M = 0 via I
2
C.
At any time during operation in ETWM mode, set OPERATION_MODE or SEQ_START = 0 to return
to IDLE or STANDBY state.