Epson S1C31D50 Technical Manual page 320

Cmos 32-bit single chip
Hide thumbs Also See for S1C31D50:
Table of Contents

Advertisement

21 HW Processor (HWP) and Sound Output
Sound play commands
Table 21.4.1.1 lists the sound play function commands.
Command
Sound Start
Sound Stop Immediately
Sound Stop after Current
Phrase
Pause Immediately
Pause after Current Phrase
Release Pause
Mute Immediately
Mute after Current Phrase
Release Mute
Each sound play command can be issued in the specific states. Follow the procedure below to issue a command.
1. Confirm that the STATE_n.STATE[15:0] bits = issuable state.
2. Confirm that the STATUS.READY bit = 1.
3. Configure the sound play function registers required to execute the command (if necessary).
4. Set the COMMAND_n.COMMAND[7:0] bits.
5. Write 1 to the HWPCMDTRG.HWP0TRG bit.
6. Wait until the HWPINTF.HWP0IF bit is set to 1 (interrupt).
7. Confirm that the STATE_n.STATE[15:0] bits = transit destination state (if necessary).
Playback start/stop
Single channel playback output start procedure
The following shows a Ch.n playback output start procedure:
1. Confirm that the STATE_n.STATE[15:0] bits = 0x0001 (sp_state_idle).
2. Confirm that the STATUS.READY bit = 1.
3. Configure the following sound play register bits:
- Set the COMMAND_n.COMMAND[7:0] bits to 0x01.
- Set the COMMAND_n.OPTION[7:0] bits.
- SENTENCE_n.SENTENCE_NO[15:0] bits
- VOLUME_n.VOLUME[15:0] bits
- REPEAT_n.REPEAT[15:0] bits
- SPEED_0.SPEED[15:0] bits
4. Write 1 to the HWPCMDTRG.HWP0TRG bit.
5. Wait until the HWPINTF.HWP0IF bit is set to 1 (interrupt).
The HWP starts sound data output of the specified sentence number from this point.
6. Confirm that the STATE_n.STATE[15:0] bits = 0x0002 (sp_state_play) as necessary.
7. Write 0 to the HWPINTF.HWP0IF bit.
:
Playback is in progress.
:
8. Wait until the HWPINTF.HWP0IF bit is set to 1 (interrupt).
9. Confirm that the STATE_n.STATE[15:0] bits = 0x0001 (sp_state_idle) as necessary.
When the sound data ends, playback output is automatically terminated and the sound play function transits
to sp_state_idle state.
21-8
Table 21.4.1.1 List of Sound Play Commands
Function
Start playback output
Stop playback output immediately
Stop playback output after ending current phrase
Pause playback output immediately
Pause playback output after ending current phrase sp_state_play sp_state_pause
Release pause state
Mute playback output immediately
Mute playback output after ending current phrase
Release mute state
Seiko Epson Corporation
Transit
Issuable state
destination state
sp_state_idle
sp_state_play
sp_state_play,
sp_state_idle
sp_state pause,
sp_state_mute
sp_state_play,
sp_state_idle
sp_state pause,
sp_state_mute
sp_state_play sp_state_pause
sp_state_pause sp_state_play
sp_state_play
sp_state_mute
sp_state_play
sp_state_mute
sp_state_mute
sp_state_play
(Command acceptable)
(Select command)
(Trigger to issue command)
(Occurrence of state transition)
(Command acceptable)
(Select Sound Start command)
(Select gapless play option)
(Specify sentence number)
(Specify volume level)
(Specify repeat count)
(Specify playback speed, Ch.0 only)
(Trigger to issue command)
(Occurrence of state transition)
(Clear interrupt flag)
(Occurrence of state transition)
S1C31D50/D51 TECHNICAL MANUAL
(Rev. 2.00)

Advertisement

Table of Contents
loading

This manual is also suitable for:

S1c31d51

Table of Contents