Epson Arm S1C31 Series Technical Manual page 319

Cmos 32-bit single chip microcontroller
Table of Contents

Advertisement

22 HW Processor (HWP) and Sound Output (SDAC2)
Sound play error
When an error occurs during processing of the Sound Play function, the HWPINTF.HWP1IF bit is set to 1 (an
interrupt can be generated). The error contents can be confirmed by reading the ERROR.ERROR[15:0] bits. As
shown in Table 22.4.1.2, the ERROR.ERRORx bit corresponding to the error that has occurred is set to 1.
ERROR.ERROR[15:0] bits
0000 0000 0000 0000
Non-fatal error
xxxx xxxx xxxx xxx1 (bit 0)
xxxx xxxx xxxx xx1x (bit 1)
xxxx xxxx xxxx x1xx (bit 2)
xxxx xxxx xxxx 1xxx (bit 3)
xxxx xxxx 1xxx xxxx (bit 7)
Fatal error
xxxx xxx1 xxxx xxxx (bit 8)
xxxx xx1x xxxx xxxx (bit 9)
xxx1 xxxx xxxx xxxx (bit 12) error_rom_data_mount The sound data ROM cannot be accessed.
x1xx xxxx xxxx xxxx (bit 14) error_function_id
1xxx xxxx xxxx xxxx (bit 15) error_others
When a non-fatal error has occurred, reissue a valid command.
When a fatal error has occurred, remove the cause of error and redo the processing from initialization.
Tone signal output
The SDAC2 provides a tone generation function to output a tone signal (square wave) with the frequency speci-
fied from the SDAC2 pins.
Before using this function, make sure that both Ch.0 and Ch.1 have terminated normal playback.
The following shows a procedure to start/stop tone signal output:
Starting output
1. Check if the STATE_n.STATE[15:0] bits = 0x0001(sp_state_idle).
2. Set the SDAC2TONE.TONEDIV[15:0] bits.
3. Set the SDAC2CTL.TONEON bit to 1.
:
Output is in progress.
:
Terminating output
4. Set the SDAC2CTL.TONEON bit to 0.
22-12
Table 22.4.1.2 List of Sound Play Errors
Error
error_no_error
No error has occurred.
error_ch0_command
A command that is undefined or is ineffective in the cur-
rent state has been specified in Ch.0.
error_ch1_command
A command that is undefined or is ineffective in the cur-
rent state has been specified in Ch.1.
error_ch0_sentence_no An invalid sentence number has been specified in Ch.0.
error_ch1_sentence_no An invalid sentence number has been specified in Ch.1.
error_SDAC2_overflow An overflow has occurred in the SDAC2 output signal.
error_ch0_decode
Invalid sound data has been read in Ch.0.
error_ch1_decode
Invalid sound data has been read in Ch.1.
An undefined function ID has been specified.
Another error has occurred.
Seiko Epson Corporation
Meaning
(Set tone signal (square wave) frequency)
(Start tone signal (square wave) output)
(Stop tone signal (square wave) output)
S1C31D41 TECHNICAL MANUAL
(Rev. 1.1)

Advertisement

Table of Contents
loading

This manual is also suitable for:

Arm s1c31d41

Table of Contents