English
Language : 

NSAM265SR Datasheet, PDF (24/58 Pages) National Semiconductor (TI) – CompactSPEECH Digital Speech Processors
3 0 Command Set (Continued)
15
8
Reserved
7
ERR
INVALID
6
ERR
TIMEOUT
5
ERR
COMM
4
ERR
ARAM
3
ERR
PARAM
2
ERR
COMMAND
1
ERR
OPCODE
0
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 ERR COMMAND or ERR PARAM 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
ERR OPCODE
Illegal opcode The command opcode is not recognized by
the CompactSPEECH
ERR COMMAND
Illegal command sequence The command is not legal in the
current state
ERR PARAM
Illegal parameter Parameter value is out of range or is not
appropriate for the command
ERR ARAM
ARAM test failed This test is performed only during execu-
tion of the AMAP command on the NSAM265SR
ERR COMM
MICROWIRE communication error
ERR TIMEOUT
Time-out error More than 2 ms elapsed between the arrival
of two consecutive bytes (for commands that have parame-
ters)
ERR INVALID
Command can’t be performed in current context
GI
Get Information item
NSAM265SR
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 EV BUSY 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 of item
GL
Get Length
NSAM265SR
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 e64)
GMS
Get Memory Status type
NSAM265SR
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 of type
GMT
Get Message Tag
NSAM265SR
NSAM265SF
Returns the 16-bit tag associated with the current message
NSAM265SF
Bits 7 – 15 are meaningful only in the NSAM265SF
24