Epson Arm S1C31 Series Technical Manual page 317

Cmos 32-bit single chip microcontroller
Table of Contents

Advertisement

22 HW Processor (HWP) and Sound Output (SDAC2)
Mute after Current Phrase command
The sound is muted after ending the phrase that is being output when the command is issued.
Sentence example: "The temperature is set at / 41 degrees."
(Mute/Pause/Stop after Current Phrase command)
Mute release
The mute state can be released with the procedure shown below.
1. Confirm that the STATE_n.STATE[15:0] bits = 0x0004 (sp_state_mute).
2. Confirm that the STATUS.READY bit = 1.
3. Set the COMMAND_n.COMMAND[7:0] bits to 0x09.
4. Write 1 to the HWPCMDTRG.HWP0TRG bit.
5. Wait until the HWPINTF.HWP0IF bit is set to 1 (interrupt).
From this point, the volume returns to the level it was before being muted.
6. Confirm that the STATE_n.STATE[15:0] bits = 0x0002 (sp_state_play) as necessary.
7. Write 0 to the HWPINTF.HWP0IF bit.
When the volume returns back to the original level, a smoothing (fade-in) process for the playback output
signal is carried out to suppress the occurrence of noise due to a sudden rise of the signal.
Figure 22.4.1.4 Smoothing Process when Playback Output is Resumed
When sound data ends in mute state
End of sound data automatically stops the muted playback output and the Sound Play function transits to sp_
state_idle state. If the HWPINTF.HWP0IF bit is set to 1 (occurrence of state transition) before releasing the
mute state, read the STATE_n.STATE[15:0] bits and check to see if they are set to 0x0001 (sp_state_idle).
Pause
Pause control
During playback, it can be paused with the procedure shown below.
1. Confirm that the STATE_n.STATE[15:0] bits = 0x0002 (sp_state_play).
2. Confirm that the STATUS.READY bit = 1.
3. Set the COMMAND_n.COMMAND[7:0] bits to 0x04 or 0x05.*
4. Write 1 to the HWPCMDTRG.HWP0TRG bit.
5. Wait until the HWPINTF.HWP0IF bit is set to 1 (interrupt).
The HWP pauses the playback output from this point.
6. Confirm that the STATE_n.STATE[15:0] bits = 0x0003 (sp_state_pause) as necessary.
7. Write 0 to the HWPINTF.HWP0IF bit.
* Two pause commands are available. Setting the COMMAND_n.COMMAND[7:0] bits to 0x04 selects
the Pause Immediately command; setting to 0x05 selects the Pause after Current Phrase command.
22-10
Phrase 0
Command execution
Figure 22.4.1.3 Example of Waiting for End of Phrase
Sound level
Smoothing process
Command execution
(Release Mute/Pause command)
Seiko Epson Corporation
Phrase 1
Output suspending position
"The temperature is set at" is output before being muted.
(Command acceptable)
(Select Release Mute command)
(Trigger to issue command)
(Occurrence of state transition)
(Clear interrupt flag)
Time
(Command acceptable)
(Select Pause command)
(Trigger to issue command)
(Occurrence of state transition)
(Clear interrupt flag)
S1C31D41 TECHNICAL MANUAL
(Rev. 1.1)

Advertisement

Table of Contents
loading

This manual is also suitable for:

Arm s1c31d41

Table of Contents