English
Language : 

NSAM266SA Datasheet, PDF (38/52 Pages) National Semiconductor (TI) – NSAM266SA CompactSPEECHTM Digital Speech Processor with Serial Flash Interface
2 0 Software (Continued)
Example
GTM FFCE 003F 0
Byte sequence
Microcontroller 09 FF CE 00 3F 00 AA
CompactSPEECH 09 FF CE 00 3F 00 01
Description
Select the oldest of the new ICMs in mailbox number 6 to be the current
message For a system where the message tag is encoded as described in the
example for the DMS command The CompactSPEECH return value indicates
that there is such a message
The following pseudo-code demonstrates how to play all new ICMs The
messages are marked after being played
In mailbox number 6
Return val e GTM (FFCE 003F 1)
While (ReturnVal 44 TRUE)
Begin
P( ) * Play *
Message tag 4 GMT( ) * get message tag *
SMT(FFF7) * Mark the message as ‘old’ *
GTM(FFCE 003F 1) * get next with same tag *
End
INIT
Initialize System
Execute this command after the CompactSPEECH has
been configured (see CFG and GCFG commands)
Performs a soft reset of the CompactSPEECH as follows
 Initializes the message directory information
Messages are not deleted To delete the messages use
the DM and DMS commands
 Sets the detectors mask to 0
 Sets the volume level that is controlled by the VC com-
mand to 0
 Sets the playback speed to normal (0)
 Switches to the IDLE state
 Activates (clears to 0) the MWRDY signal
 Initializes the tone detectors
The current message is undefined after INIT execution
The tunable parameters are not affected by this command
They are set to their default values only during RESET
Example
INIT
Microcontroller 13
Byte sequence
CompactSPEECH 13
Description Initialize the CompactSPEECH
INJ
Inject IVS data n byte1 byten
Injects vocabulary data of size n bytes to good flash blocks
This command programs flash devices on a production line
with IVS vocabulary data It is optimized for speed all
CompactSPEECH detectors are suspended during execu-
tion of the command Use the CVOC command to check
whether programming was successful
If there is not enough memory space for the vocabulary
data ERR PARAM is set in the error word and execution
stops
Flash blocks that include IVS data cannot be used for re-
cording even if only one byte of the block contains IVS data
(e g if the vocabulary size is 4k a 100 bytes two blocks of
the flash are not available for message recording)
Example
INJ 128 Data
Byte
sequence
Vocabulary
Microcontroller 29 00 00 00 80
Data
CompactSPEECH 29 00 00 00 80 Echo of Data
Description Inject 128 bytes of vocabulary data
MR
Memory Reset
Erases all good flash blocks and initializes the Compact-
SPEECH (i e does exactly what the INIT command does)
Bad blocks and blocks which are used for IVS vocabularies
are not erased
Note The command erases all messages and should be used with care
Example
MR
Microcontroller 2A
Byte sequence
CompactSPEECH 2A
Description Erase all Serial Flash blocks
P
Playback
Begins playback of the current message The Compact-
SPEECH state changes to PLAY When playback is com-
plete the CompactSPEECH sets the EV NORMAL END
bit in the status word and activates (clears to 0) the
MWRQST signal Playback can be paused with the PA com-
mand and can be resumed later with the RES command
If the current message is undefined ERR INVALID is re-
ported
http www national com
38