ymf795 Yamatake Corporation, ymf795 Datasheet - Page 25

no-image

ymf795

Manufacturer Part Number
ymf795
Description
Apl-2 Automobile Sound Player-2
Manufacturer
Yamatake Corporation
Datasheet
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
As a piece is played back, the musical score data are processed in the LSI.
Set the IRQ enable bit (IRQE) to “0” and write data into the FIFO.
Cautions for the write operation is the following two points:
Set each register according to the explanation of “Settings and procedure
required for a piece generation.”
Be sure to write data before FIFO becomes empty.
Overwriting the data into the filled FIFO is prohibited.
The remaining data in FIFO is lower than
IRQ point set in the $34h ?
Do you want to stop the piece?
Stop the piece. (ST=0)
Start the playback.
-25-
Yes
Yes
No
No

Related parts for ymf795