YMF721 (OPL4-ML2) is a high quality and low cost Wavetable synthesizer LSI. YMF721 (OPL4-ML2)
integrates an OPL3 (FM synthesizer), General MIDI processor and 1 Mbyte Wavetable sample ROM into one
chip, and complies with General MIDI (GM) system level 1. Thus, it is best suited to multimedia applications,
sound cards, MIDI synthesis modules and other sound applications.
Since this LSI outputs stereophonic 16 bit digital signal (fs = 44.1 kHz), it can b e connected directly with
YMF701B, 711 or 715 (OPL3-SA, SA2 or SA3) or with YAC516(DAC16-L).
Operating voltage, 3.3 V, allows this LSI to be controlled with notebook personal computers.
Power management functions (power d own and suspend/resume functions) of OPL4-ML2 contribute to low
power consumption of personal computers into which this product is built-in.
FEATURES
• The Wavetable synthesizer of this LSI is able to generate up to 24 types of sounds simultaneously.
• Has an interface that makes this LSI compatible with MPU-401 UART mode.
• Has an OPL3 (FM synthesizer) for AdLib/Sound Blaster applications.
• Has a 1 Mbyte built-in Wavetable sample ROM.
• Complies with GM system Level 1. (Thus, it is compatible with DOS applications that support MPU-401.)
• MIDI signal can be transmitted either through seria l input or parallel input.
• FM synthesizer and Wavetable synthesizer of this LSI can generate their sound at the same time.
• FM synthesizer is register-compatible with OPL3.
• All registers are readable.
• Power management functions included power down and suspend/resume can be supported.
• Frequency of master clock signal is 33.8688 MHz.
• Pin compatible with YMF704C-S (100 pin SQPF)
• Voltage of power supply can be 5.0 V or 3.3 V.
• Silicone gate CMOS process
• 100-pin SQFP (YMF721-S).
GENERAL MIDI logo is a trademark of Association of Musical Electronics Industry (AMEI), and
indicates GM system level 1 Compliant.
ISA bus interface : 19 pins
Pin name
ADB7-08I/OTTL2mAData bus
A2-03ITTL-Address bus
/MPUCS1ITTL-MPU401 chip select
/OPLCS1ITTL-FM/Wavetable/Command/Control chip select
/IOW1ITTL-Write enable
/IOR1ITTL-Read enable
RST1ITTL-Initial clear input
AIR
ABDIR1OTTL2mASelection of data transfer direction
ARDY1ODTTL12mAI/O channel ready/busy selection ("L" : Bus
MIDI interface : 2 pins
Pin name
RXD1IT TL-MIDI serial data input
FSP1ITTL-Selection of MIDI serial/parallel transmission
Others : 39 pins
Pin name
5V/3V1ICMOS-Selection of power suppl
/RESETSEL1I+TTL-RST signal polarity control pin
/PDOUT1OCMOS2mAPower down control output
XI1ICMOS2mACrystal oscillator connection or master clock input
XO1OCMOS2mACrystal oscillator connection pin
N.C.34---To be open at normal use.
LSI test pins : 21 pins
Pin name
/TESTA1I+TTL-To be open at normal use.
/TESTB1I+TTL-To be open at normal use.
/TEST1I+TTL-To be open at normal use.
/TEST21I+TTL-To be open at normal use.
/TEST31I+TTL-To be open at normal use.
T7-08OCMOS2mATo be open at normal use.
TD7-08I/OCMOS2mATo be open at normal use.
insI/OTypeSizeFunction
(When this pin is at "L", RST is active at "L".)
(33.8688 MHz)
insI/OTypeSizeFunction
Power supply, ground : 11 pins
Pin name
VDD4---Power supply (put on +5.0 V or +3.3V
VSS7---Ground
Total : 100 pins
Note : I+ : Input pin with built-in pull-up resistor, OD : Open drain output pin
insI/OTypeSizeFunction
- 4 -
July 10, 1997
YMF721
,
,
[
]
]
/
BLOCK DIAGRAM
/MPUCS
/RESETSEL
ADB[7-0
A
/OPLCS
/IOW
RXD
2-0
/IOR
RST
FSP
XI
XO
ABDIR
AIRQ
ARDY
5V/3V
ISA BUS
Interface
Decode
Logic
UART
Timing
Generator
Micro Processor
MIDI Interpreter
Command Interpreter
Register
Control
(MPU/Command
/Control)
SRAM
32kbit
Synthesizer
Interface
(arbitration etc.)
ROM
256kbit
TD[7-0]
TEST
Logic
Synthesizer
/TEST
/TEST2
/TEST3
/TESTA
T[7-0
/TESTB
VSS
VDD
Wave ROM
1M byte
Wavetable
DO3
DO1
Synthesizer
DO2
OPL3
FM Synthesizer
Timing Control
MIX(FM+Wave)
DO0
PDOUT
CLKO
BCO
LRO
WCO
- 5 -
July 10, 1997
YMF721
/
/
/
/
/
/
FUNCTIONS
1. 1. Example of system configuration
1-1. System with MPU401 UART
This section describes two examples of systems that have an MPU401 UART in them.
In these examples, YMF701B, 711 or 715 (OPL3-SA, SA2 or SA3) has a built-in MPU401 UART.
(1) ISA BUS Connect System
YMF7xx
(OPL3-SAx)
CLKO
SYNCS
EXTEN
TXD
BCLK_ML
LRCK_ML
SIN_ML
XI
OPLCS
MPUCS
FSP
RXD
BCO
LRO
DO2
ARDY
RST
A2-0
/IOW
/IOR
ADB7-0
YMF721
ABDIR
(OPL4-ML2)
LS245
IOCHRDY
RESETDRV
SA2-0
IOW
IOR
SD7-0
Note :
YMF721 (OPL4-ML2) has MPU401 UART in it. Thus, for the above case, TXD of YMF7xx (OPL3-SAx)
is connected with RXD of YMF721 (OPL4-ML2) and MPU401 port (/MPUCS) of YMF721 (OPL4-ML2)
is disabled so that YMF7xx(OPL3-SAx) sends MIDI data directly to YMF721 (OPL4-ML2).
For the above case, FM synthesizer of YMF7xx (OPL3-SAx) is disabled and the one in YMF721 (OPL4ML2) is made active. (This c ontrol is made through /EXT EN pin of YMF7xx.) For the above system, the
data bus that connects with YMF721(OPL4-ML2) gains access to FM-synthesizer/Command/Control port
of YMF721(OPL4-ML2). (Chip select signal is outputted from /SYNCS pin of YMF7xx.)
For the source of master clock to be inputted to XI pin of YMF721 (OPL4-ML2), it is recommended to use
CLKO pin of YMF7xx (OPL3-SAx). For other methods, a crystal oscillator can be used by attaching it to
XI and XO pins of YMF721 (OPL4-ML), or a clock of 33.8688 MHz supplied from the system can be used.
When serial data outputs of YMF721 (OPL4-ML2), BCO, LRO and DO2 pins, are connected with external
serial data interface (BCLK_ML, LRCK_ML, SIN_ML) of YMF7xx (OPL3-SAx), the serial data is
converted to analog signal in YMF7xx (OPL3-SAx) and outputted as analog signal.
- 6 -
July 10, 1997
YMF721
/
I
/
/
/
(2) No ISA BUS Connect System
X
OPLCS
MPUCS
FSP
RXD
PDOUT
CLKO
BCO
LRO
DO2
YMF721
YMF7xx
(OPL3-SAx)
Note :
TXD
LchAUX2L
RchAUX2R
Gain (+12dB)
PDIN
MCLK
BCLK
LRCK
SDATA
YAC516
XO
ARDY
ADB7-0
ABDIR
(OPL4-ML2)
RST
A2-0
/IOW
/IOR
RESET
YMF721 (OPL4-ML2) has MPU401 UART in it. Thus, for the above case, TXD of YMF7xx (OPL3-SAx)
is connected with RXD of YMF721 (OPL4-ML2) and MPU401 port (/MPUCS) of YMF721 (OPL4-ML2)
is disabled so that YMF7xx(OPL3-SAx) sends MIDI data directly to YMF721 (OPL4-ML2).
The above system does not connect YMF721 (OPL4-ML2) and ISA bus, which is an example of Wavetable
upgrade solution represented b y the Wavetable daughter card . Input pins of the ISA bus interface should be
pulled up externally. At this time, FM synthesizer/Command/Control ports are disabled, but the power
down function is enabled by receiving System Exclusive Message on the MIDI data, except that
Suspend/Resume function is disabled.
As a source of master clock for YMF721 (OPL4-ML2), use a crystal oscillator by connecting it to XI and
XO pins, or use the clock of 33.8688 MHz from the system. Connect BCO, LRO, DO2, /PDOUT and
CLKO directly to YAC516 (DAC16-L) as shown to convert serial data output to analog signal. Then, it is
recommended to input the converted analog signal to AUX2L and AUX2R of YMF7xx (OPL3-SAx) after
amplifying the volume of source of YMF721 through the gain of +12 dB as shown for the purpose of
equalizing the volumes of multiple sources.
- 7 -
July 10, 1997
YMF721
/
/
/
I
/
/
/
1-2. System without MPU401 UART
This section describes an example of a system that does not have MPU401 UART in it.
In this example, MPU401 UART of YMF721 (OPL4-ML2) is used.
FM synthesizer of this LSI is compatible with applications that support AdLib/Sound Blaster, and Wavetable
synthesizer is compatible with applications that support MPU401.
X
SA15-0
AEN
XO
OPLCS
Address
Decoder
PDIN
LchLch out
RchRch out
Gain up
MCLK
BCLK
LRCK
SDATA
YAC516
MPUCS
FSP
RXD
PDOUT
CLKO
BCO
LRO
DO2
ARDY
RESET
A2-0
/IOW
/IOR
ADB7-0
YMF721
ABDIR
(OPL4-ML2)
LS245
IOCHRDY
RESETDRV
SA2-0
IOW
IOR
SD7-0
Note :
For the above case, MPU401 port of YMF721 (OPL4-ML2) must be made active because the system does not
have MPU401 UART in it. Addresses of standard ports through which reading or writing of registers of
YMF721 (OPL4-ML2) is made are as follows.
1) /OPLCS: 388 - 38Fh (8byte)
2) /MPUCS: 330 - 331h (2byte)
As a source of master clock for YMF721 (OPL4-ML2), use a crystal oscillator by connecting it to XI and
XO pins, or use the clock of 33.8688 MHz from the system. Connect BCO, LRO, DO2, /PDOUT and
CLKO directly to YAC516 (DAC16-L) as shown to convert serial data output to analog signal. Then, it is
recommended to amplify the volume of source of YMF721 through the suitable gain as shown for the
purpose of equalizing the volumes of multiple sources.
- 8 -
July 10, 1997
YMF721
2. ISA bus interface
8 bit parallel I/O of YMF721 (OPL4-ML2) can be connected with ISA bus. The ISA bus interface allows
transfer of commands between the each block of YMF721 (OPL4-ML2) and host.
Data Bus & Address Bus
ADB7-0: ISA data bus
A2-0: ISA address bus
/MPUCS: MPU401 chip select
/OPLCS: FM/Wavetable/Command/Control chip select
/IOW: ISA write enable
/IOR: ISA read enable
ABDIR: Data bus direction switching (“L” : YMF721 ® ISA)
ARDY: I/O channel ready (“L” : busy)
Control of the data bus is made with /MPUCS, /OPLCS, /IOW and /IOR signals. The mode of
control of the data bus varies as follows according to the combination of states of the signals.
The direction of data transfer on the data bus is determined by ABDIR. In normal operatio n, the
internal data bus of YMF721 (OPL4-ML2) connects the built-in processor and FM/Wavetable
synthesizer blocks. Every time the ISA bus accesses the register for FM/Wavetable, an internal
arbitration circuit causes the internal bus to connect ISA bus and FM/Wavetable synthesizer
blocks. YMF721 (OPL4-ML2) uses I/O channel ready (ARDY pin) as the internal arbitration
circuit. ARDY becomes "L" (busy) every time data bus accesses the register for FM/Wavetable.
/MPUCS
/OPLCS /IOW/IORA2A1A0MODE
LHHL
LHLH
LHHL
LHLH
HLHLLLLFM-synth. Status read
HLLHLH/LLFM-synth. Address write
HLLHL
HLHLL
HLHLHLLWavetable-synth. Status read
HLLHHLLWavetable-synth. Address write
HLLHHLHWavetable-synth. Data write
HLHLHLHWavetable-synth. Data read
HLHLHHLCommand response read
HLLHHHLCommand write
HLLHHHHControl write
HLHLHHHStatus read
HLHH
HH
´´´´´
´
´
´
´
´´´
LLMPU401 Acknowledge (FEh)
LLMPU401 MIDI Data write
LHMPU401 Status read
LHMPU401 Command write
´
´
HFM-synth. Data write
HFM-synth. Data read
No-active or UART mode
No-active or UART mode
- 9 -
July 10, 1997
YMF721
Notes:
´ : Don’t care
When address has been written into FM block, the time required to wait until writing of address
or data into Wavetable block is started is 0 (zero) nsec. When add ress has been written into
Wavetable block, the time required to wait until writing of address or d ata into FM block is
started is also 0 (zero) nsec. When FM block has been accessed, it is necessary to wait 860 nsec
or more before the FM block can be accessed again.
Interrupt
AIRQ: Interrupt signal ("H" : Interrupt)
YMF721 (OPL4-ML2) is able to provide one interrupt signal. There are two types of sources of
this interrupt signal as follows.
1) Two timer flags that are used for tempo counter of FM synthesizer
2) The flag that occurs when internal processor writes data into the Command response register
The flags described in 2) is disabled as a default.
3. Serial audio interface
YMF721 (OPL4-ML2) can be connected directly with an external DAC such as YAC516 through BCO,
LRO, WCO and DO3-0 pins.
BCO...Outputs bit clock. The frequency of this clock is 48 fs. (fs is the sampling
frequency that is equal to the frequency of clock outputted from LRO.) Typical
duty factor of this signal is 50 %.
LRO...Specifies a channel for serial audio data. When LRO is "H", data is outputted
from left channel, or when "L", from right channel. Frequency of this clock is
44.1 kHz. Typical duty factor of this signal is 50 %.
WCO...Frequency of this clock is 88.2 kHz. Typical duty factor of this signal is 50 %.
DO3-0...These pins output serial audio data as follows.
DO3...Outputs data of Wavetable whose effect send level has been adjusted.
DO2...Outputs data that is the mixture of those of FM and Wavetable.
DO1...Outputs Wavetable data.
DO0...Outputs FM data.
Format of the serial audio interface is as follows.
Format of YMF721 (OPL4-ML2) serial audio interface
- 10 -
24 BCO24 BCO
July 10, 1997
YMF721
4. MIDI Interface
MIDI serial data can be inputted from RXD pin. It is necessary to input MIDI data complied with MIDI
1.0 detailed specification to RXD pin.
The serial data is the rate of 31.25kbit/sec (+/-1%) and the unit of 10 bits. T he first bit is a start bit, the
next 8 bits are data (LSB to MSB), and the 10th bit is a stop bit.
5. Power management functions
YMF721 (OPL4-ML2) has two types of power management functions as follows.
(1) Global power down mode
(2) Suspend/Resume mode
5-1. Global power down mode
Generation of clock signal is disabled (stopped). Total power consumption of YMF721 (OPL4-ML2) is
approximately 20uA (typ.). Writing "FDh" into command register or receiving System Exclusive MIDI
Message makes in this mode. YMF721 (OPL4-ML2) outputs "L" from /PDOUT pin in this mode,
which can be used as power down control signal for peripheral equipment. Set KON bit (FM
synthesizer register) to "0" for all channels before going into this mode. Check that play back of MIDI
data is stopped.
/RESETSEL pin has a built-in pull up resistor. When this pin is at "L" in this mode, the power
consumption is higher by approximately 30uA than the one when this pin is open or at "H".
5-1-1. ISA BUS Connect System
When "FDh" has been written into command register, the internal pr ocesso r goes into the glo bal p ower
down mode after performing the following internal processes.
1) Disabling synthesizer's internal clock
2) Setting GBUSY bit of status register to "0".
YMF721 (OPL4-ML2) requires over 30 msec to complete the above processes before going into the
power down mode.
Since generation of the clock has been disabled, recovery from the power down mode can not be made
by using command. Thus, it is nec essary to use PDY and P DX bits of co ntrol registe r for the re cove ry.
To resume normal ope ra tion thr o ugh the re co ver y sequence , waiting time of 5 0 to 100 msec is required
before the oscillation of crystal stabilizes when internal oscillation is used, or 3 msec or more before
the recovery of cloc k generated in the synthesizer.
For the details of power down command, refer to 6-3. After the power down command, FDh, has been
written, do not write any command before sending a recovery command to the control register to return
to the normal mode.
- 11 -
July 10, 1997
YMF721
<Power Down out><Power Down in>
Comma nd write “FDh”Control write PDY=1, PDX=0
(wait time ~100 msec)
Control write PDY=0, PDX=0
Synthesizer clock enable
Normal Operation
~30msec
Synthesizer clock disabl e
Status read GBUSY=0
all clock (X’tal)disable
Power down sequence when connected with ISA bus
~3msec
5-1-2. No ISA BUS Connect System
When YMF721 (OPL4-ML2) is not connected with ISA bus, power down operation can be controlled
by sending Yamaha's original System Exclusive Message as the MIDI data. The System Exclusive
Message includes the following three byte ID.
YMF721 (OPL4-ML2) supports the following commands and data.
CommandDataFunction
0Eh6DhPower Down Command
0Fh6Bh
Internal Micro-processor Reset Command
- 12 -
July 10, 1997
YMF721
<Power Down Sequence>
(1) Power Down in
When YMF721 (OPL4-ML2) has received the System Exclusive Message shown above, it goes
into the global power down mode after performing the processes as described in "5-1-1. ISA
BUS Connect System".
(2) Power Down out
Since the clock generation has been disabled, YMF721 (OPL4-ML2) is not able to recover from
the global power down mode by using the System Exclusive Message. Thus, the LSI needs to
receive the "3byte MIDI data" as shown below to recover from the global power down mode.
To resume normal oper ation through the recovery sequence , waiting time of 50 to 100 msec is
required before the oscillation of crystal stabilizes when internal oscillation is used, o r 3 msec or
more before the re covery of clock genera ted in the synthesizer.
The internal microprocessor is reset by receiving the above System Exchange Message.
Synthesizer clock disabl e
all clock (X’tal)disable
~3msec
Power down sequence without ISA bus
receiving MIDI E0h
receiving MIDI F8h
Synthesizer clock enable
Normal Operation
5-2. Suspend/Resume mode
The state of internal processor is suspended by writing "E0h" into the co mmand register before turning
off the power. When the power has been turned on, it can be resumed by resetting it, writing "E1h" into
the command register and then writing data that has been read before suspended.
On FM synthesizer block, check setting KON bit to "0" for all channels before reading out all register
and turning off the power. Write register that has been read after turning on and resetting at the
recovery sequence.
For the details of suspend/resume, refer to 6-3.
Note :
The system that includes YMF721 not connected with ISA bus can not support the suspend/resume function.
- 13 -
July 10, 1997
Loading...
+ 28 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.