Download Print this page

Epson S1C31D50 Technical Instructions page 359

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

Advertisement

PLAY & STOP
Figure 21.4.15.2 shows Sound PLAY-STOP Flow.
Cortex Set HW Processor
Cortex Set HW Processor
S1C31D50 TECHNICAL MANUAL
(Rev. 1.00)
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 Function Register(See Table 21.4.14.1)
Set HWPCMDTRG.HWP0TRG
Wait HWPINTF.HWP0IF = 1
Check STATE_x = "sp_state_play", if necessary
Wait STATE_x = "sp_state_play"
Wait STATUS.READY = sp_status_ready
Set "Sound Stop" COMMAND
-
COMMAND_x: "STOP_xxx"
in Sound Play Function Registers(See Table 21.4.14.1)
Set HWPCMDTRG.HWP0TRG
Wait HWPINTF.HWP0IF = 1
Check STATE_x = "sp_state_idle"
Figure 21.4.15.2 Sound PLAY-STOP Flow
Seiko Epson Corporation
HW Processor interrupts to cortex
HW Processor interrupts to cortex
21-21

Advertisement

loading