English
Language : 

NSAM265SR Datasheet, PDF (27/58 Pages) National Semiconductor (TI) – CompactSPEECH Digital Speech Processors
3 0 Command Set (Continued)
R
Record tag
NSAM265SR
NSAM265SF
Records a new message with message tag tag The Com-
pactSPEECH state changes to RECORD The R command
continues execution until stopped by the S command Re-
cording can be paused with the PA command and can be
resumed later with the RES command
If the memory becomes full recording stops and EV MEM-
FULL is set in the status word
NSAM265SF
EV MEMFULL is also set in the NSAM265SF if there is
only one AFLASH block available for recording and the
MESSAGE SAFE bit in the tag parameter is set
NSAM265SR
If an attempt to record more than the maximum number of
messages is made an ERR INVALID error is reported
Note A time day stamp is automatically attached to each message Before
using the R command for the first time use the SETD command
Failure to do so results in undefined values for the time and day
stamp
RDET
Reset Detectors detectors reset mask
NSAM265SR
NSAM265SF
Resets the CompactSPEECH tone and energy detectors
according to the value of the detectors reset mask parame-
ter A bit set to 1 in the mask resets the corresponding
detector A bit cleared to 0 is ignored
The 1-byte detectors reset mask is encoded as follows
Bit 0
Reset the busy and dial tone detectors
Bits 1 – 4 Reserved Must be set to 0
Bit 5
Reset the no energy (VOX) detector
Bit 6
Reset the DTMF detector
Bit 7
Reserved Must be set to 0
RES
Resume
NSAM265SR
NSAM265SF
Resumes the activity that was suspended by the PA com-
mand
RRAM
Read RAM
NSAM265SR
NSAM265SF
Returns 32 bytes from the current message The first RRAM
command issued returns the first 32 bytes of the current
message Subsequent RRAM commands return the next
following 32 bytes from the message until the end of the
message The command sequence can be stopped by the S
command
Notes When the end of the message is detected during RRAM execution
the CompactSPEECH sets the EV NORMAL END bit in the status
word If the current message was created with the WRAM command
the 32-byte return value should be ignored
When using WRAM and RRAM to write and read messages of arbi-
trary length the microcontroller is responsible to mark the actual end
of the message (e g with a delimiter string)
The next RRAM command after the end of the message is reached
starts again from the beginning of the current message
S
Stop
NSAM265SR
NSAM265SF
Stops execution of the current command and switches the
CompactSPEECH to the IDLE state S may be used to stop
execution of all the Say commands and the FR P R GT
RRAM and WRAM commands
SAS
Say Argumented Sentence sentence n arg
NSAM265SR
NSAM265SF
SAS announces sentence number sentence n of the cur-
rently selected vocabulary and passes arg to it sentence
n and arg are each 1-byte long
When playing is complete the CompactSPEECH sets the
EV NORMAL END bit in the status word and activates
the MWRQST signal
If you are using an internal vocabulary you can synthesize
the two built-in sentences These sentences are Time and
Day and You Have These sentences are designated 0 and
1 respectively in the internal vocabulary sentence table
Sentence 0
If the internal vocabulary is selected the built-in Time and
Day sentence is synthesized If an external vocabulary is
selected it is assumed that the Time and Day sentence is
defined as sentence 0 in the sentence table For example
use SAS 0 0 to synthesize the current time and day
Sentence 1
If the internal vocabulary is selected the built-in You Have
sentence is synthesized If an external vocabulary is select-
ed it is assumed that the You Have sentence is defined as
sentence 1 in the sentence table For example use SAS 1 5
to synthesize the sentence You Have 5 Messages
If sentence n is not defined in the current vocabulary
ERR PARAM is set in the error word
For further information on sentences 0 and 1 and their op-
tions see Table 1-3
SB
Skip Backward time length
NSAM265SR
NSAM265SF
Retreats in the current message time length units each of
0 2 seconds duration and cause message playback to
pause time length is a 2-byte parameter that may have
any value up to 320 i e 64 seconds The skip accuracy is
0 14 seconds This command is meaningful only in the
PLAY state The RES command must be issued to continue
playback
If the beginning of the message is detected during execu-
tion of the SB command execution of this command is ter-
minated the EV NORMAL END bit in the status register
is set the MWRQST signal is activated and the Compact-
SPEECH switches to the IDLE state If time length is
greater than 320 ERR PARAM is set in the error word
SDET
Set Detectors Mask detectors mask
NSAM265SR
NSAM265SF
Controls the reporting of detection for tones and VOX ac-
cording to the value of the detectors mask parameter A bit
set to 1 in the mask enables the reporting of the corre-
sponding detector A bit cleared to 0 disables the reporting
Disabling reporting of a detector does not stop or reset the
detector
27