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
45 of 76
© 2019 Dialog Semiconductor
5.8.3 Frame Definition
A frame consists of a collection of parameters used to define the playback of a snippet with differing
gain, time base, carrier frequency, and number of repetitions. A frame consists of up to three bytes,
its structure is shown in Figure 27. The frame parameters can be easily set up using the Dialog
SmartCanvas GUI.
Byte 1 is mandatory. For byte 1, always set COMMAND_TYPE = 0. If set incorrectly, the device
will generate an interrupt of the type E_MEM_FAULT.
Byte 2 is optional. When used, set COMMAND_TYPE = 1 in Byte 2.
Byte 3 is optional, for use in wideband sequences only, and contains the frame frequency's eight
LSBs.
If COMMAND_TYPE of frame Byte 2 is set to 1 and FREQ_CMD = 1, then the Byte 3 contains drive
frequency data to enable wideband LRA support.
All frame parameters except COMMAND_TYPE, SNP_ID_L, GAIN, and TIMEBASE are optional. For
a full description, see Table 18.
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Byte 1 =>
COMMAND_TYPE
= 0
GAIN [1:0]
TIMEBASE[1:0]
SNP_ID_L[2:0]
Byte 2 =>
COMMAND_TYPE
= 1
SNP_ID_LOOP[3:0]
FREQ_CMD
FREQ[8]
SNP_ID_H
Byte 3 =>
FREQ[7:0]
Figure 27: Command Structure for a Single Frame
Table 18: Bit Definitions for Frame Parameters
Byte
Number
Register Bit
Definitions
Description
1 and/or 2
COMMAND_TYPE
COMMAND_TYPE labels the byte and tells the system how to interpret the
following seven LSBs.
COMMAND_TYPE = 0 in Byte 1
COMMAND_TYPE = 1 signifies Byte 2 is present following Byte 1
1
GAIN[1:0]
Gain applied to the snippet identified by SNP_ID_L/H:
00 = 0 dB
01 = -6 dB
10 = -12 dB
11 = -18 dB
1
TIMEBASE[1:0]
The timebase length of the snippet pointed to by the snippet ID. This
register is interpreted differently depending on
FREQ_WAVEFORM_TIMEBASE:
If FREQ_WAVEFORM_TIMEBASE = 0 (default):
00 = 5.44 ms
01 = 21.76 ms
10 = 43.52 ms
11 = 87.04 ms
If FREQ_WAVEFORM_TIMEBASE = 1:
00 = 1.36 ms
01 = 5.44 ms
10 = 21.76 ms
11 = 43.52 ms