21-9
Seiko Epson Corporation
S1C31D50 TECHNICAL MANUAL
(Rev. 1.00)
21.4.6.
Sound Start Command
“Sound Start” command can be set under “sp_state_
idle
” state
.
CH0 state
CH1 state
Channel can be set
sp_state_idle
sp_state_idle
CH0&CH1
can be set
sp_state_idle
sp_state_play
CH0
can be set
sp_state_play
sp_state_idle
CH1
can be set
sp_state_play
sp_state_play
No channel
can be set
“
Sound
Start” command starts sound playing, the state is moved to “sp_state_play” after sound play start.
After finishing the playing, HW Processor makes an interrupt and the state is moved to
“sp_state_
idle
” on
default.
When state transition is occurred, HW Processor makes an interrupt on default, the interrupt can be
masked by INTMASK on
“
21.4.14.1 Sound Play Function Registers
”
.
Figure 21.4.6.1 shows
“
Sound Start
”
command flow.
Figure 21.4.6.1
“
Sound Start
”
Command Flow
So
und
C
om
pl
et
io
n
Check STATE_x = "sp_state_idle"
“
So
und
St
ar
t”
co
m
m
and
Set HWPCMDTRG.HWP0TRG
Wait STATE_x = "sp_state_idle"
Set
“
Sound Start
”
command
-
COMMAND_x: "
Sound Start
"
-
SENTENCE_x,
-
VOLUME_x,
-
REPEAT_x
-
SPEED_0(only CH0)
in Sound Play Function Registers(See Table 21.4.14.1)
Check STATE_x = "sp_state_play", if necessary
Cortex Set HW Processor
Wait HWPINTF.HWP0IF = 1
HW Processor interrupts to cortex
Wait HWPINTF.HWP0IF = 1
HW Processor interrupts to cortex
Wait STATUS.READY = sp_status_ready
Summary of Contents for S1C31D50
Page 461: ...25 1 Seiko Epson Corporation S1C31D50 TECHNICAL MANUAL Rev 1 00 25 Package TQFP12 48PIN ...
Page 462: ...25 2 Seiko Epson Corporation S1C31D50 TECHNICAL MANUAL Rev 1 00 QFP13 64PIN ...
Page 463: ...25 3 Seiko Epson Corporation S1C31D50 TECHNICAL MANUAL Rev 1 00 TQFP14 80PIN ...
Page 464: ...25 4 Seiko Epson Corporation S1C31D50 TECHNICAL MANUAL Rev 1 00 QFP15 100PIN ...