21-16
Seiko Epson Corporation
S1C31D50 TECHNICAL MANUAL
(Rev. 1.00)
21.4.12.
Sound Play Error
Once an ERROR is occurred, HW Processor makes an interrupt, please check the ERROR register in
“
21.4.14. Sound Play Function Registers
”
.
Figure 21.4.12.1 shows
“
Sound Play Error
”
check flow.
Figure 21.4.12.1
“
Sound Play Error
”
Check Flow.
21.4.13.
Sound Play Interrupt Masking
In the
“
Sound Play
”
function, an interrupt occurs when the state of each channel transitions.
This interrupt can be masked by enabling
the bit of INTMASK register in
“
21.4.14. Sound Play Function
Registers
”
.
The mask bits are listed below.
INTMASK.TO_IDLE bit
When this bit is enabled, the interrupt generated when the state moves
to “
sp_state_idle
” is masked.
INTMASK.TO_PLAY bit
When this bit is enabled, the interrupt generated when the state moves
to “
sp_state_play
” is masked.
INTMASK.TO_PAUSE bit
When this bit is enabled, the interrupt generated when the state moves
to “
sp_state_pause
” is
masked.
INTMASK.TO_MUTE bit
When this bit is enabled, the interrupt generated when the state moves
to “
sp_state_
mute” is masked.
Figure 21.4.13.1 shows
“
Sound Play Interrupt Masking
”
flow.
Figure 21.4.13.1
“
Sound Play Interrupt Masking
”
Flow.
In
ter
rup
t Ma
sk
ing
Set INTMASK to 0x000x
Wait STATE_x = "sp_state_idle"
Wait STATUS.READY = sp_status_ready
ERRO
R
Wait HWPINTF.HWP1IF = 1(means Error occurred)
HW Processor interrupts to cortex
Check ERROR Register
Summary of Contents for S1C31D50
Page 461: ...25 1 Seiko Epson Corporation S1C31D50 TECHNICAL MANUAL Rev 1 00 25 Package TQFP12 48PIN ...
Page 462: ...25 2 Seiko Epson Corporation S1C31D50 TECHNICAL MANUAL Rev 1 00 QFP13 64PIN ...
Page 463: ...25 3 Seiko Epson Corporation S1C31D50 TECHNICAL MANUAL Rev 1 00 TQFP14 80PIN ...
Page 464: ...25 4 Seiko Epson Corporation S1C31D50 TECHNICAL MANUAL Rev 1 00 QFP15 100PIN ...