
2.0 Software
(Continued)
GSW
Get Status Word
Returns the 2-byte status word.
THE STATUS WORD
The CompactSPEECH processor has a 16-bit status word
to indicate events that occur during normal operation. The
CompactSPEECH asserts the MWRQST signal (clears to 0),
to indicate a change in the status word. This signal remains
active until the CompactSPEECH receives a GSW com-
mand.
The status word is cleared during reset, and by the GSW
command.
15
14
13
1211
10
9
8
7
6
5
4
30
ED
ED
ED
R
R
ED
ED
ED
ED
ED
ED
ED
The bits in the status word are used as follows:
EVDDTMFDDIGIT
DTMF digit. A value indicating a detected DTMF digit. (See
the description of DTMF code in the GT command.)
EVDDTMFDEND
1
e
Ended detection of a DTMF tone. The detected digit is
held in EVDDTMFDDIGIT.
EVDNORMALDEND
1
e
Normal completion of operation, e.g., end of message
playback.
EVDMEMFULL
1
e
Memory is full.
EVDERROR
1
e
Error detected in the last command. You must issue
the GEW command to return the error code and clear
the error condition.
EVDBUSY
1
e
Busy tone detected. Use this indicator for call progress
and line disconnection.
EVDDIALTONE
1
e
Dial tone detected. Use this indicator for call progress
and line disconnection.
EVDVOX
1
e
a period of silence (no energy) was detected on the
telephone line during recording. (See VOXDTIMED
COUNT in Table 2-2.)
EVDRESET
When the CompactSPEECH completes its power-upDse-
quence and enters the
RESET
state, this bit is set to 1, and
the MWRQST signal is activated (cleared to 0).
Normally, this bit changes to 0 after performing the INIT
command. If this bit is set during normal operation of the
CompactSPEECH, it indicates an internal CompactSPEECH
error. The microcontroIler can recover from such an error by
re-initializing the system.
EVDDTMF
1
e
Started detection of a DTMF tone.
Example
GSW
Byte sequence:
Microcontroller
14 AA AA
CompactSPEECH 14 00
40
Description:
Get the CompactSPEECH Status Word
(typically sent after the MMRQST signal
is asserted by the CompactSPEECH
which indicates a change in the status
word).
The CompactSPEECH responds that the
memory is full.
GT
Generate Tonetone
Generates the tone specified by the 1-bytetone parameter,
until an S command is received.
Specify the tone by setting the bits of tone as follows:
Bit 0
1
Bits 1–4
DTMF code.
Where the DTMF code is encoded as follows:
Value (Hex)
DTMF Digit
0 to 9
0 to 9
A
A
*
Y
B
C
D
B
E
C
F
D
http://www.national.com
36