English
Language : 

NSAM266SA Datasheet, PDF (39/52 Pages) National Semiconductor (TI) – NSAM266SA CompactSPEECHTM Digital Speech Processor with Serial Flash Interface
2 0 Software (Continued)
Example
P
Microcontroller 03
Byte sequence
CompactSPEECH 03
Description Play the current message
PA
Pause
Suspends the execution of the current R P GT SO SW
SS or SAS command The PA command does not change
the state of the CompactSPEECH execution can be re-
sumed with the RES command
Note DTMF and tone detectors remain active during Pause
Example
PA
Microcontroller 1C
Byte sequence
CompactSPEECH 1C
Description Suspend playback of current message
PDM
Go To Power-down Mode
Switches the CompactSPEECH to power-down mode (see
Section 1 3 3 for details) Sending any command while in
power-down mode resets the CompactSPEECH detectors
and returns the CompactSPEECH to normal operation
mode
Example
PDM
Microcontroller 1A
Byte sequence
CompactSPEECH 1A
Description
Put the CompactSPEECH in power-down
mode
R
Record tag
Records a new message with message tag tag The
CompactSPEECH state changes to RECORD The R com-
mand continues execution until stopped by the S command
Recording 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 MEMFULL is set in the status word
Note A time-and-day stamp is automatically attached to each message
Before using the R command for the first time use the SETD com-
mand Failure to do so results in undefined values for the time-and-
day stamp
Example
R 000E
Microcontroller 0C 00 0E
Byte sequence
CompactSPEECH 0C 00 0E
Description
Record a new ICM in mailbox Number 6
in a system where the message tag is
encoded as described in the example of
the DMS command
RDET
Reset Detectors detectors reset mask
Resets the CompactSPEECH tone and energy detectors
according to the value of the detectors reset mask pa-
rameter 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 cleared to 0
Bit 5
Reset the no energy (VOX) detector
Bit 6
Reset the DTMF detector
Bit 7
Reserved Must be cleared to 0
Example
RDET 20
Microcontroller 2C 20
Byte sequence
CompactSPEECH 2C 20
Description Reset the VOX detector
RES
Resume
Resumes the activity that was suspended by the PA SF or
SB commands
Example
RES
Microcontroller 1D
Byte sequence
CompactSPEECH 1D
Description
Resume playback which was suspended
by either the PA SF or SB command
RRAM
Read Memory
Returns 32 bytes from the current message The first RRAM
command 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 com-
mand
Note 1 Trying to read beyond the end of the message sets the EV NOR-
MAL END event and the CompactSPEECH switches to the IDLE
state In this case the return value is undefined and should be ig-
nored
Note 2 When using WRAM and RRAM to write and read messages of arbi-
trary length the microcontroller is responsible for marking 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
Note 3 If the current message is undefined ERR INVALID is reported
Example
RMEM Data
Microcontroller 18 AA AA
Byte sequence
CompactSPEECH 18 32 bytes of data
Description
Read 32 bytes from the
current message memory
S
Stop
Stops execution of the current command and switches the
CompactSpeech to the IDLE state S may be used to stop
the execution of WRAM RRAM and all asynchronous com-
mands
39
http www national com