
2.0 Software
(Continued)
TL/EE/12584–30
FIGURE 2-6. Master MICROWIRE Data Transfer
2.14 COMMAND DESCRIPTION
The commands are listed in alphabetical order.
The execution time for all commands, when specified, in-
cludes the time required for the microcontroller to retrieve
the return value, where appropriate.
The execution time does not include the protocol timing
overhead, i.e., the execution times are measured from the
moment that the command is detected as valid until the
command is fully executed.
Note:
Each command description includes an example application of the
command. The examples show the opcode issued by the microcon-
troller, and the response returned by the CompactSPEECH. For com-
mands which require a return value from the CompactSPEECH, the
start of the return value is indicated by a thick vertical line.
CCIO
Configure Codec I/Oconfig-value
Configures the voice samples paths in various states. It
should be used to change the default CompactSPEECH
configuration. The config-value
follows:
parameter is encoded as
Bit 0
Loopback control.
0: Loopback disable (default)
1: Loopback enabled. During RECORD state,
the input samples are echoed back un-
changed (i.e., no volume control) to the co-
dec.
Bits 1–7
Reserved
Example
CCIO 3401
Byte sequence:
Microcontroller
34 01
CompactSPEECH 34 01
Description:
Enable Loopback.
CFG
Configure CompactSPEECHconfigDvalue
Configures the CompactSPEECH in various hardware envi-
ronments. It should be used to change the default Compact-
SPEECH configuration.
The configDvalue parameter is encoded as follows:
Bit 0
Codec configuration.
0: short-frame format (default)
1: long-frame format. (Guaranteed by design,
but not tested.)
Bit 1
Reserved.
Bit 2
Echo cancellation control.
0: Echo cancellation off (default)
1: Echo cancellation is on during playback.
Echo cancellation improves the performance of
DTMF detection during playback. Echo cancel-
lation can be turned on only with a system that
can disable AGC during playback. A system
with AGC that cannot be controlled (i.e., en-
abled/disabled) by the microcontroller must not
turn on this bit.
Bit 3
ReservedDmust be cleared to 0.
Bits 4–5
ReservedDmust be set to 10.
Bits 6–7
ReservedDmust be cleared to 00.
Bits 8–10
Number of installed flash devices.
Valid range 1 .. 4 flash devices.
Default is 1.
Bits 11–15
ReservedDMust be cleared to 0.
Note:
The CompactSPEECH automatically detects the type of flash device
in use, i.e., NM29A040 or NM29A080.
Example
CFG 0324
Byte sequence:
Microcontroller
01 03 24
CompactSPEECH 01 03 24
Description:
Configure the CompactSPEECH to work
with:
Codec that supports short-frame format.
Three, NM29A040, flash devices.
Echo cancellation on.
CMT
Cut Message TailtimeDlength
Cut timeDlength units, each of 10 ms duration, off the end
of the current message. The maximum value of timeD
length is 6550. Cut-time accuracy is
g
0.14 sec.
Note:
If timeDlength is longer than the total duration of the message, the
EVDNORMALDEND event is set in the status word, and the mes-
sage becomes empty (i.e., message length is 0), but is not deleted.
Use the DM (Delete Message), or DMS (Delete Messages), command
to delete the message.
Example
CMT 02BC
Byte sequence:
Microcontroller
26 02 BC
CompactSPEECH 26 02 BC
Description:
Cut the last seven seconds of the current
message.
http://www.national.com
32