English
Language : 

NSAM266SA Datasheet, PDF (34/52 Pages) National Semiconductor (TI) – NSAM266SA CompactSPEECHTM Digital Speech Processor with Serial Flash Interface
2 0 Software (Continued)
GEW
Returns the 2-byte error word
Get Error Word
THE ERROR WORD
The 16-bit error word indicates errors that occurred during
execution of the last command If an error is detected the
command is not processed the EV ERROR bit in the
status word is set to 1 and the MWRQST signal is activated
(set to low)
The GEW command reads the error word The error word is
cleared during reset and after execution of the GEW com-
mand
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
15 – 9 8 7 6 5 4 3 2 1 0
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 The value of the parameter is out of
range or is not appropriate for the command
ERR COMM
Microcontroller MICROWIRE communication error
ERR TIMEOUT
Time-out error Depending on the CompactSPEECH’s state
more than 20 ms to 30 ms elapsed between the arrival of
two consecutive bytes (for commands that have parame-
ters)
ERR INVALID
Command cannot be performed in current context
Example
GEW
Microcontroller 1B AA AA
Byte sequence
CompactSPEECH 1B 00 02
Description
Get the CompactSPEECH error word
(typically sent after GSW when EV
ERROR is reported in the status word)
The CompactSPEECH responds
ERR OPCODE
GI
Get Information item
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 last detected DTMF tone in 10 ms
units The return value is meaningful only if DTMF de-
tection is enabled and the status word shows that a
DTMF tone was detected
1 The duration of the last detected busy tone in 10 ms
units
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 2-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
Example
GI 0
Microcontroller 25 00 AA AA
Byte sequence
CompactSPEECH 25 00 00 06
Description
Get the duration of the last detected
DTMF tone
The CompactSPEECH responds
60 ms
http www national com
34