AW86225
October 2021 V1.9
www.awinic.com
15 Copyright © 2020 SHANGHAI AWINIC TECHNOLOGY CO., LTD
3FF
WAVEFORM SRAM
Wavef orm library version
Wavef orm#N start address high
Wavef orm#N start address low
Wavef orm#N end address high
Wavef orm#N end address low
base_addr
Wavef orm#2 start address high
Wavef orm#2 start address low
Wavef orm#2 end address high
Wavef orm#2 end address low
Wavef orm#1 start address high
Wavef orm#1 start address low
Wavef orm#1 end address high
Wavef orm#1 end address low
0
#1
#2
#N
4 *
(
#1
–
1
)
+ 1
4 *
(
#1
–
1
)
+ 2
4 *
(
#1
–
1
)
+ 3
4 *
(
#1
–
1
)
+ 4
4 *
(
#2
–
1
)
+ 1
4 *
(
#2
–
1
)
+ 2
4 *
(
#2
–
1
)
+ 3
4 *
(
#2
–
1
)
+ 4
4 *
(
#N
–
1
)
+ 1
4 *
(
#N
–
1
)
+ 2
4 *
(
#N
–
1
)
+ 3
4 *
(
#N
–
1
)
+ 4
4 *
(
#N
–
1
)
+ 5
4 *
(
#N
–
1
)
+ 4 + len(#1)
4 *
(
#N
–
1
)
+ 5 + len(#1)
4 *
(
#N
–
1
)
+ 4 + len(#1) + len(#2)
...
...
address
Figure 15 Waveform library data structure
Waveform version:
One byte located on SRAM base address, setting to different value to identify different version of RAM
waveform library.
Waveform header:
The waveform header block consist of N-boundary definition blocks of 4 bytes each. N is the number of
waveforms stored in the SRAM (N cannot exceed 127). Each of the boundary definition blocks contain the
start address (2 bytes) and end address (2 bytes). So the total length of waveform header block are N*4 bytes.
The start address contains the location in the memory where the waveform data associated with this waveform
begins.
The end address contains the location in the memory where the waveform data associated with this waveform
ends.
The waveform ID is determined after base address is defined. Four bytes begins with the address next to base
address are the first waveform ID’s header, and next four bytes are the second waveform ID’s header, and so
on.
Waveform data:
The waveform data contains a signed data format (2's complement) to specify the magnitude of the drive. The
begin address and end address is specified in waveform ID’s header.
Waveform library initialization steps:
Prepare waveform library data including: waveform library version, waveform header fields for waveform
in library and waveform data of each waveform;
Set register EN_RAMINIT=1 in register 0x43, to enable SRAM initial;
Set base address (register 0x2D, 0x2E);
Write waveform library data into register 0x42 continually until all the waveform library data written;
Set register EN_RAMINIT=0, to disable SRAM initial;
awinic Confidential