
3.0 Command Set
(Continued)
15
8
7
6
5
4
3
2
1
0
Reserved
ERRD
INVALID
ERRD
TIMEOUT
ERRD
COMM
ERRD
ARAM
ERRD
PARAM
ERRD
COMMAND
ERRD
OPCODE
Reserved
The GEW command reads the error word. The error word is
cleared during reset and before execution of all commands,
except GSW and GEW.
If errors ERRDCOMMAND or ERRDPARAM occur during
the execution of a command that has a return value, the
return value is undefined. The microcontroller must still read
the return value, to ensure proper synchronization.
The bits of the error word are used as follows:
ERRDOPCODE
Illegal opcode. The command opcode is not recognized by
the CompactSPEECH.
ERRDCOMMAND
Illegal command sequence. The command is not legal in the
current state.
ERRDPARAM
Illegal parameter. Parameter value is out of range or is not
appropriate for the command.
ERRDARAM
ARAM test failed. This test is performed only during execu-
tion of the AMAP command on the NSAM265SR.
ERRDCOMM
MICROWIRE communication error.
ERRDTIMEOUT
Time-out error. More than 2 ms elapsed between the arrival
of two consecutive bytes (for commands that have parame-
ters).
ERRDINVALID
Command can’t be performed in current context.
GI
NSAM265SR
&
Get Informationitem
NSAM265SF
&
Returns the 16-bit value specified by item from one of the
internal registers of the CompactSPEECH.
item may be one of the following:
0: The duration of the detected DTMF tone, in 10 ms units.
The return value is meaningful only if DTMF detection is
enabled, and the status word shows that a DTMF tone
was detected. The duration includes the time required to
verify that the DTMF tone has ended.
1: The duration of the last detected busy tone in 10 ms
units. This value is only valid if EVDBUSY of the status
register is set to 1. Otherwise, it is undefined.
2: The energy level of the samples in the last 10 ms.
3: The energy level of the samples in the last 10 ms that
are in the frequency range described in Figure 1-1. The
return value is meaningful only if one of the tone detec-
tors is enabled (bits 0, 1 of the detectors mask; see the
description of SDET command).
The return value is unpredictable for any other value ofitem.
GL
NSAM265SR
&
Get Length
NSAM265SF
&
Returns the length of the current message in multiples of 32
bytes.
This information enables the controller to read the entire
message from memory using the RRAM command. The re-
turned value is a 16-bit unsigned integer.
NSAM265SR
The returned value includes the entire last ARAM row of the
message, even if the message occupies only a portion of
the last row. Since an ARAM row includes 512, 1024 or
2048 bytes (depending on the memory configuration), the
returned value may be up to 511, 1023 or 2047 bytes bigger
than the actual message length.
NSAM265SF
The returned value includes the entire last AFLASH seg-
ment of the message, even if the message occupies only a
portion of the last segment. Since an AFLASH sector in-
cludes 2048 bytes, the returned length may be up to 2047
bytes bigger than the actual message length.
The minimum length of a message is one segment, i.e., an
empty message occupies 2 kbytes (the message length is:
2048/32
e
64).
GMS
NSAM265SR
&
Get Memory Statustype
NSAM265SF
&
Returns the estimated total remaining recording time in sec-
onds as a 16-bit unsigned integer. This estimate assumes
no silence compression: a real recording may be longer,
according to the amount of silence detected and com-
pressed.
The return value is dependent on the value of the type pa-
rameter as follows:
0: The actual remaining recording time is returned.
1: The potential additional recording time is returned.
Deleted messages hold memory space that can not be
used for recording until the FR command is executed.
The total amount of recording time used by such mes-
sages is the potential additional recording time. (In the
NSAM265SR this time is always zero.)
2: The sum of the actual and potential recording times is
returned.
The return value is unpredictable for any other value oftype.
GMT
NSAM265SR
&
Get Message Tag
NSAM265SF
&
Returns the 16-bit tag associated with the current message.
NSAM265SF
Bits 7–15 are meaningful only in the NSAM265SF.
24