English
Language : 

YMF795 Datasheet, PDF (25/45 Pages) YAMAHA CORPORATION – APL-2 Automobile sound Player-2
YMF795
■On Interrupt Sequence
An interrupt from LSI (/IRQ-“L”) occurs when the amount of data in the FIFO becomes less than the setting value.
For example, supposing that 10h (16b) is set to the IRQ point of $34h, the FIFO becomes full before starting a piece as
described in “Settings and procedure required for a piece generation.”
Once a piece is started, the data in the FIFO decreases as the musical score data is processed. When the amount of
remaining data becomes 16 bytes or less, /IRQ pin becomes “L” and occurrence of an interrupt is sent to the external
microprocessor.
When an interrupt signal is detected, set IRQE to “0” and write the musical score data into the FIFO before it becomes
empty. As overwriting the data into the filled FIFO is prohibited, write the data into FIFO by the amount not causing the
overwriting (16 data in this case).
Flow chart
Set each register according to the explanation of “Settings and procedure
required for a piece generation.”
Start the playback.
As a piece is played back, the musical score data are processed in the LSI.
The remaining data in FIFO is lower than
No
IRQ point set in the $34h ?
Yes
Set the IRQ enable bit (IRQE) to “0” and write data into the FIFO.
Cautions for the write operation is the following two points:
Be sure to write data before FIFO becomes empty.
Overwriting the data into the filled FIFO is prohibited.
Do you want to stop the piece?
No
Yes
Stop the piece. (ST=0)
-25-