
NO.:
W62410 API
VERSION:
A
PAGE
47
2.3 The ContPlaybackFromMCU command.
Description:
This allows the host to deliver compressed messages or voice prompts from its own memory to
the CHIPSET instead of using the built in voice prompts or a external voice prompt ROM
connected to the CHIPSET. The CHIPSET will take care of decompressing the delivered
compressed data. The
ContPlaybackFromMCU
command coming from the host has to
contain the number of words that will follow this command. The initiating of this process
happens by first sending the
PlaybackFromMCU
command to prepare the CHIPSET followed
by repeated sending of the
ContPlaybackFromMCU
command and the associated data.
The procedure is as such. The first command is the
PlaybackFromMCU
command followed
by the
ContPlaybackFromMCU
command containing the number of words from which one
30-millisecond voice frame is constructed. The host knows how many words will have to be sent
to the host to reconstruct one voice frame. This is then followed by repeated sending (exactly
length times) of the words containing the compressed voice data.
To change the volume or speed, one can do this by sending the appropriate command (either the
SetLoopBack
or the
ContPlaybackMessage_1
command) but only
after
a complete
ContPlaybackFromMCU
command and its associated data cycle. Once a command
immediately followed
with its associated data cycle it is e.g. possible to send a
MonitorLine
command to check for the current line status. The
Idle
command has to be used to stop
completely the playback from MCU. Again, this command can only be send after all the data
needed by the
ContPlaybackFromMCU
command has been send first!
The chipset starts decoding from the moment it has received enough compressed data (maximum
18 bytes or 9 words). The host always has to wait for the returned status word before sending the
next word (the chipset has internally a FIFO buffer big enough to hold enough data to decode two
frames).
Command (first)
High Byte
ContPlaybackFromMCU
0
0
1
0
Remark:
Length
= The number of following words containing two bytes of compressed data that will follow
this command. The values allowed for length are 9, 2 or 1. It is the responsibility of the host to deliver
the correct number of words containing one voice frame (which can be 18, 4 or 1 bytes long).
After sending a voice frame any kind of command can be sent (e.g. to adjust volume and speed) or a
ContPlaybackFromMCU
together with a new group of data words containing compressed voice
frames. In the chipset, there is a small FIFO buffer, sufficiently large enough to contain enough
compressed data to decode at least 60 ms of speech.
It is also possible to monitor the line by sending the
MonitorLine
command instead of
ContPlaybackFromMCU
. However, not by sending the
MonitorLine
command in between the
transmission of a data packet because the chipset can not recognize the difference between data and
commands at that moment.
The
PlaybackFromMCU
command can be completely stopped by the
Idle
command.
This command behaves exactly like the
DeCompress
command but doesn’t return the
decompressed samples to the host but these will be sent to the CODEC for real-time decompression
instead.
Returned value
High Byte
Status
0
0
1
0
The above information is the exclusive intellectual property of Winbond Electronics and shall not be
disclosed, or reproduced without permission from Winbond.
Low byte
0
Length
0
0
0
0
0
1
1
Low byte
0
Length
0
0
0
0
0
1
1