Download Print this page

Epson S1C31D50 Technical Instructions page 347

Cmos 32-bit single chip microcontroller
Hide thumbs Also See for S1C31D50:

Advertisement

21.4.6. Sound Start Command
"Sound Start" command can be set under "sp_state_idle" state.
CH0 state
sp_state_idle
sp_state_idle
sp_state_play
sp_state_play
"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.
Cortex Set HW Processor
S1C31D50 TECHNICAL MANUAL
(Rev. 1.00)
CH1 state
sp_state_idle
sp_state_play
sp_state_idle
sp_state_play
Wait STATE_x = "sp_state_idle"
Wait STATUS.READY = sp_status_ready
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)
Set HWPCMDTRG.HWP0TRG
Wait HWPINTF.HWP0IF = 1
Check STATE_x = "sp_state_play", if necessary
Wait HWPINTF.HWP0IF = 1
Check STATE_x = "sp_state_idle"
Figure 21.4.6.1 "Sound Start" Command Flow
Seiko Epson Corporation
Channel can be set
CH0&CH1 can be set
CH0 can be set
CH1 can be set
No channel can be set
HW Processor interrupts to cortex
HW Processor interrupts to cortex
21-9

Advertisement

loading