AW86225
October 2021 V1.9
www.awinic.com
17 Copyright © 2020 SHANGHAI AWINIC TECHNOLOGY CO., LTD
Rtp Mode
The real-time playback mode is a simple, single 8-bit register interface that holds an amplitude value. When
real-time playback is enabled, begin to enters a register value to RTP_DATA over the I
2
C will trigger the
playback, the value is played until the data sending finished or removes the device from RTP mode.
After FF_AEM or FF_AFM register is configured as 0, HOST can obtain the RTP FIFO almost empty or almost
full status through interrupt signal(pin INTN) or read FF_AES or FF_AFS register. RTP FIFO almost empty and
almost full threshold can be configured through FIFO_AE and FIFO_AF registers.
Figure 17 RTP mode playback
Playback steps:
Prepare RTP data before playback;
Set PLAY_MODE bit to 1 in register 0x08;
Set GO bit to 1 in register 0x09 to trigger waveform playback;
Delay 1ms;
Check GLB_STATE=4’b1000, if HOST don’t send data to FIFO, chip will wait for RTP data coming in this
state forever;
Write RTP data continually to register 0x32 to playback RTP waveform;
HOST need monitor the full and empty status for RTP FIFO.
Device will be switched to STANDBY mode after wave data in RTP FIFO is played empty
.
Trig Mode
The device has a configuration, multi-mode pin TRIG/INTN. It can serve as a dedicated hardware pin for quickly
trigger haptic data playback through configuration register INTN_PIN. Quickly trigger can be configured
posedge/negedge/both-edge/level trigger.
FIFO
Almost empty threshold
Almost full level
FIFO write address
FIFO read address
FIFO last address
0
FIFO NOT empty and
chip startup
FIFO empty
...
...
awinic Confidential