
NO.:
W62410 API
VERSION:
A
PAGE
49
2.4 The Compress command.
Description:
The above information is the exclusive intellectual property of Winbond Electronics and shall not be
disclosed, or reproduced without permission from Winbond.
With this command, the host can let the CHIPSET perform compression on a non-compressed
voice frame of 30-milliseconds. Thus effectively using the CHIPSET as a coprocessor. With the
Compress
command, the host has to send 240, 16-bit words representing an
uncompressed
voice frame to the CHIPSET in 16 bit signed format. These 240 samples represent exactly
30-milliseconds of voice sampled at 8kHz. This voice frame will be compressed and will then be
returned back to the host. This can be useful if one wants to use the CHIPSET as a compression
coprocessor without any storage memory or CODEC connected to the CHIPSET.
After the host has sent the 240 samples it has to send a dummy command. The CHIPSET will
then return into how many words the voice frame has been compressed. This can be 9, 2 or 1
words. The host has then to send again “l(fā)ength” number of dummy commands to receive the
compressed voice frame.
Command (first)
Compress
Returned value
Status
Command (2..241)
Compress
Remark:
Returned value
Status
Command (242)
Compress
Remark:
High Byte
0
Low byte
0
0
0
1
0
0
0
0
0
0
0
0
1
0
0
High Byte
0
Low byte
0
0
0
1
0
0
0
0
0
0
0
0
1
0
0
High Byte
x
Low byte
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
240 samples, needed in 16 signed bit format.
High Byte
x
Low byte
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
High Byte
0
Low byte
0
0
0
1
0
0
0
0
0
0
0
0
1
0
0
This is only a dummy command so that the CHIPSET can continue processing and return the length
of the compressed voice frame.
Returned value
Status
Remark:
High Byte
0
Low byte
0
0
0
1
Length
0
0
0
0
1
0
0
Length
= 4 bits indicating the number of words that are used to compress the previous voice frame of
240 samples. The encoder can return back 18, 4 or 1 bytes back. Therefore, the length will then
contain the values 9, 2 or 1 (this 1 should be considered as 0.5). In case of a 1-byte return, this byte
will be in the low part of the 16 bit Status word.
Command (243 .. +0, 1, 8)
Compress
Remark:
This is only a dummy command so that the CHIPSET can continue returning data.
Returned value
High Byte
Status
y
y
y
Remark:
In case the length parameter was 1 then the returned result will be in the low part of the 16-bits of the
Status word.
High Byte
0
Low byte
0
0
0
1
0
0
0
0
0
0
0
0
1
0
0
Low byte
x
y
y
y
y
y
x
x
x
x
x
x
x