English
Language : 

NSAM265SR Datasheet, PDF (25/58 Pages) National Semiconductor (TI) – CompactSPEECH Digital Speech Processors
3 0 Command Set (Continued)
15
EV
DTMF
14
EV
RESET
13
EV
VOX
12
11
10
9
8
Reserved EV
EV
EV
MEMLOW DIALTONE BUSY
7
EV
ERROR
6
5
EV
EV
MEMFULL NORMAL
END
4
EV
DTMF
END
3
0
EV
DTMF
DIGIT
GNM
Get Number of Messages tag ref tag mask
NSAM265SR
NSAM265SF
Returns the number of messages whose message tags
match the tag ref parameter Only bits set in tag mask
are compared i e a match is considered successful if
message tag and tag mask e tag ref and tag mask
where and is a bitwise AND operation
The tag ref and tag mask parameters are each two
bytes the return value is also 2-byte long
For example if tag ref e 4216 and tag mask e 3F16
the number of existing old messages whose user-defined
tag is 2 is returned See Section 1 5 for a description of
message tag encoding If tag mask e 0 the total number
of all existing messages is returned regardless of the tag
ref value
GSW
Get Status Word
NSAM265SR
NSAM265SF
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 sets the MWRQST signal to active (low)
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
The bits in the status word are used as follows
EV DTMF DIGIT
DTMF digit A value indicating a detected DTMF digit (See
GT command )
EV DTMF END
1 e Ended detection of a DTMF tone The detected digit is
held in EV DTMF DIGlT
EV NORMAL END
1 e Normal completion of operation e g end of message
playback end of garbage collection etc
EV MEMFULL
1 e Memory is full
EV ERROR
1 e Error detected in the last command You can use the
GEW command to return the error code
EV BUSY
1 e Busy tone detected Use this indicator for call progress
and line disconnection
EV DIALTONE
1 e Dial tone detected Use this indicator for call progress
and line disconnection
EV MEMLOW
NSAM265SF only 1 e Memory is almost full (i e 20 sec-
onds recording time remain assuming no silence on the
one-before-last FLASH block) when working in memory in-
tensive mode
EV VOX
1 e a period of silence (no energy) was detected on the
telephone line during recording
EV RESET
When the CompactSPEECH completes its power-up se-
quence and enters the RESET state this bit is set to 1 and
the MWRQST signal is activated (set low) Normally this bit
changes to 0 after performing the INIT command If this bit
is set during normal opertion of CompactSPEECH it indi-
cates an internal CompactSPEECH error The microcontrol-
ler can recover from such an error by reinitializing the sys-
tem
EV DTMF
1 e Started detection of a DTMF tone
GT
Generate Tone tone
NSAM265SR
NSAM265SF
Generates the tone specified by the 1-byte tone 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
B
C
D
B
E
C
F
D
Bits 5 – 7 0
To generate a single-frequency tone encode the bits as fol-
lows
Bit 0
0
Bits 1 – 5 3 – 20
The value in bits 1 – 5 is multiplied by 100 to
generate the required frequency (300 Hz
through 2000 Hz)
Bits 6 7 0
CompactSPEECH does not check the validity of the tone
specification Invalid specifications yields unpredictable re-
sults
25