
V3.0
Dec/6/2001
Page 1 of 9
RTS2100B
Series
The above information is the exclusive intellectual property of M-Square Technologies Corporation and shall not be disclosed, distributed without permission from M-Square.
www.msquaretech.com
6.0 INSTRUCTION SET SUMMARY
All program codes can use the 64 labels as the program entrances for conditional branch.
All speech codes (maximum 256K ) are divided into sections.
Instruction (Statement)
Summary
DEST = label
Function Briefs
Comment
Set the DEST register
Set INT0 ~ 2 trigger
conditions
Set system operation mode
Label=1-64
INTA = operand
0=disable,1=enable
MOD = operand
TMR = timer
Set time interval
8ms+[(timer-1)x32
ms]
STOP
Enter power saving mode
Waiting for time out
(TMR=0)
Set output pins state
Turn on (or off) the LED
indicator
Set Flags state
Jump to the address of
DEST
Jump to "label"
Conditional jump when
"INTi=0"
Conditional jump when
"Fi=0"
Conditional jump when
"TMR=0"
Play the speech "hello"
with a sample rate 6K
WAITMR
Oi = logic-state
i=0-1
LED = on [off]
Fi = logic-state
i=0
GOTO DEST
GOTO label
IF INTi=0 GOTO label
i=0-2
IF Fi=0 GOTO label
i=0
IF TMR=0 GOTO label
PLAYSpeech (hello, 6)
sample
rate=4-512KHz
PLAYSphMld(Song[A=dog,
Do=6;B=cat,Do=8;…Tem
po
Volume=operand
Repeat1 = n
STATEMENT1
Repeat2 = m
STATEMNET2
ENDR2
ENDR1
Play an animal song which
is edited by a text format.
Tempo=30-300
With 4 step volume control
Volume=1-4
Duplicate STATEMENT1
code with "n" times and
STATEMENT2 code with
"nxm" times
REPEATi=value
ENDi
i=1-4 , value=1-128
CALL SubRoutine
DEST register reserved for
internal usage.
RET