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
Page 5
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
Page 6
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
Page 7
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
Page 8
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
Page 9
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
Page 10
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
Page 11
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
Page 12
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
Page 13
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
Page 14
YMF721
6. Registers
6-1. MPU401 compatible register
MPU401 is a generally used interface for controlling MIDI devices on the personal computer. I/O
addresses that are compatible with MPU401 are as follows.
MPU_Base+ 0(W/R)MIDI Data transmit/acknowledge port
MPU_Base + 1(R)Status Register port
MPU_Base + 1(W)Command Register port
MIDI Data Write Port (WO):
port D7D6D5D4D3D2D1D0
MPU_Base + 0
MIDI Data...Port for writing MIDI data (transmitting). Transmission of the
data must be carried out while the transmitter of MIDI data is
watching the state of DRR bit of the status register. An interrupt
occurs in the internal processor when MIDI data has been
written into the register. Since YMF721 (OPL4-ML2) has no
output signal for transmitting MIDI data, the MIDI data written
into this register is used to operate internal Wavetable
synthesizer.
MIDI Data
MPU Acknowledge Port (RO):
port D7D6D5D4D3D2D1D0
MPU_Base + 0
Sends acknowledge for the operation of MPU401.
When operation of the MPU401 is normal, "FEh" is read from this port.
Status Register Port (RO):
port D7D6D5D4D3D2D1D0
MPU_Base + 1
DSR...This bit is "1" when reading the acknowledge from MPU401.
DRR...This bit is "1" while MIDI data is being written into MP U Data
Default : BFh
Command Register Port (WO):
port D7D6D5D4D3D2D1D0
MPU_Base + 1
COMMAND Data...The data written into this register is ignored. DSR bit is set to
“1”“1”“1”“1”“1”“1”“1”“0”
DSRDRR“1”“1”“1”“1”“1”“1”
This bit is "0" when writing commands.
Write port (MPU Base+0 ). This bit is "0" when the MIDI data
can be written into the MPU Data Write port. Do not write
MIDI data when this bit is "1".
COMMAND Data
"0" when data is written into this register.
- 14 -
July 10, 1997
Page 15
YMF721
6-2. Command/Response register
I/O port for power down and suspend/resume register is described here.
Command/Response Port (R/W):
port D7D6D5D4D3D2D1D0
OPL_Base + 6
OPL_Base + 6
Command Write...An interrupt occurs when data has been written into this register.
Response Read...Response to a command is read from this register.
Note :
For the details of Command/Response, refer to 6-3.
6-3. Details of command register
Some of commands supported in the command register are as follows.
Command Write
Response Read
Command Sub Command Command Length Response Length
E0h-1 bytevariableReading suspend information
E1h00hvariable-Resume
FDh-1 byte-Moving into power down mode
FEh-1 byte-Checking operating conditions
FFh-1 byte-Discontinuing command execution
Checksum is determined so that lower eight bits of the sum of values from length L to checksum
becomes "0".
The state of internal processor immediately before execution of this command can be resumed by
writing the data that is read into the internal processor by using resume command described below.
- 15 -
July 10, 1997
Page 16
YMF721
6-3-2. Resume
Command and Response have the following formats.
CommandResponse
E1hCommand byteNone
0x00Sub Command
data_0data
.................
data_nlast data
checksumchecksum
For Resume, data following the sub command are transmitted as seven bit data. Thus, it is necessary
to send the data obtained with suspend command to the internal processor after encoding it.
Checksum is determined so that the result of logical product (AND) of 7Fh and the sum of sub
command byte, encoded data and checksum becomes "0". The internal processor returns to the state
immediately before execution of Command E0h when it confirms that the data has been received
normally.
6-3-3. Others
YMF721(OPL4-ML2) can use the following special commands that do not send response.
1) Command FDh : Power down mode
Refer to 5-1.
When the power down command FDh has been written into the command register, do not write
any command before the return command to the control register has been executed.
2) Command FEh : Checking operating state of internal processor
This command is used to check if the internal processor is operating normally.
The internal processor is deemed operating normally if GBUSY bit of Status register is "0".
3) Command FFh : Discontinuing command execution
This command is used to discontinue the execution of a command. This command can be used
only when another command is being executed.
- 16 -
July 10, 1997
Page 17
YMF721
6-4. Control/Status register
I/O port for Control/Status register is described here.
Control/Status Port (R/W):
port D7D6D5D4D3D2D1D0
OPL_Base + 7(W)
OPL_Base + 7(R)
PDY, PDX...YMF721 recovers from power down mode by using the
MPR...Setting this bit to "0" initializes internal processor. Default
BSEL...This bit shows connection of internal bus of YMF721(OPL4-
RESP...Indicates that a response to a command has been received.
GBUSY...Flag bit that indicates if data can be written into Command write
GDRQ...Flag bit that indicates if data can be read from Response
Default : (00x1 x000)
PDYPDX---MPR“0”“1”
PDYPDX-BSEL-RESPGBUSYGDRQ
following sequence.
PDY=“1”, PDX=“0”
¯ wait time (in case of using crystal oscillation)
PDY=“0”, PDX=“0”
D7 and D6 bits of Status register become "1" during power
down mode. In this state, oscillation of clock can be confirmed
by monitoring the status bit during power down mode in/out
sequence.
value of this bit is "1".
ML2). Default value of this bit is "1".
“1” : Connecting synthesizer and internal processor
“0” : Connecting synthesizer a nd ISA bus
register.
“1” : BUSY
“0” : Data can be written
register.
“1” : READY
“0” : Reading is inhibited
b0
- 17 -
July 10, 1997
Page 18
YMF721
6-5. FM synthesizer registers
6-5-1. Status register
Status Register (RO):
port D7D6D5D4D3D2D1D0
OPL_Base + 0
Note :
Since NEW2 (index 05h of Register array1) = 1 in default state, both LD and BUSY0 bits are valid.
(LD and BUSY0 bits are invalid when NEW2=0.) BUSY0 is a BUSY flag for both FM and
Wavetable registers.
Default :
After initial clear, all the bits of Register Array 1 are cleared to "0" except NEW2 and NEW3 bits of
index 05h, and CHA and CHB bits of index C0-C8h.
For the details of these registers, refer to data sheet for YMF289B(OPL3-L).
Note :
Since NEW2 and 3 (at index 05h of Register array1) = 1 in default state, both LD and BUSY0 bits
are valid. (LD and BUSY0 bits are invalid when NEW2=0.) BUSY0 is a BUSY flag for both FM
and Wavetable registers.
- 19 -
July 10, 1997
Page 20
YMF721
6-6. Wavetable synthesizer register
6-6-1. Status register
Status Register (RO):
port D7D6D5D4D3D2D1D0
OPL_Base + 4
6-6-2. Data register
Data Register (R/W):
IndexD7D6D5D4D3D2D1D0
00 - 01hLSI TEST
02hDEVICE ID (“0” “1” “0”)TONE HEADERMTYPEMODE
03hMemory Address (MA21-16)
04hMemory Address (MA15-8)
05hMemory Address(MA7-0)
06hMemory Data(MD7-0)
08-1FhTONE NUMBER (L)
20-37hF-NUMBER (L)
38-4FhBLOCKPREVF-NUMBER (H)
50-67hTOTAL LEVELLDIR
68-7FhKEYONDAMPLFORSTCHPAN POT
F9h--MIX CONTROL (Wave-R)MIX CONTROL (Wave-L)
FAh-------ATC
FBh--------
------LDBUSY1
TNUM (H)
Default :
After initial clear, index 02h becomes 40h (Device ID) and index F8h becomes 2Dh (-15dB), and all
the other registers are cleared to "0". For the details of these registers, refer to data sheet for
YMF295(OPL4-D).
Note :
BUSY1 is a BUSY flag for Wavetable registers. Wavetable status/Data register is normally accessed
by the internal processor.
- 20 -
July 10, 1997
Page 21
YMF721
7. Hardware
7-1. ISA bus interface
(1) Data Bus Connect System
Data BUS
Since driving current of data bus, ADB7-0 pins, of YMF721(OPL4-ML2) is about 2 mA (at VDD =
5.0 V), it is recommended to use bus buffer such as LS245 as necessary. At this time, connect ABDIR
pin which outputs bus direction signal of YMF721(OPL4-ML2) with DIR (direction) pin of the bus
buffer such as LS245.
RESET
Reset (RST) pin of YMF721(OPL4-ML2) can be made "H" active or "L" active. When using "H"
active reset, /RESETSEL pin should be open or set to "H", or to "L" when using "L" active reset.
/RESETSEL pin has a built-in pull-up resistor. When this pin is set to "L", the power consumption
increases approximately by 30uA from the one obtained when the pin is open or set to "H".
I/O Channel Ready
In normal operation, 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. Connect ARDY pin of YMF721 (OPL4-ML2) and IOCHRDY pin of ISA
bus. Although ARDY pin is an open dr ain output, it is no t necessary to attach p ull up resisto r b ecause
it is usually pulled up at the ISA bus.
(2) No Data Bus Connect System
The input pins ADB7-0, A2-0, /MPUCS, /OPLCS, /IOW and /IOR must be pulled up externally.
Output pins AIRQ, ABDIR and ARDY pins must be open.
7-2. MIDI interface
When using MPU port of YMF721 (OPL4-ML2), RXD and FSP pins must be pulled up. When using
MPU port of the system and receiving MIDI data through RXD pin, FSP pin must be made "L" .
2.1168 MHz), LRO (fs = 44.1 kHz) and WCO (2 fs = 88.2 kHz) as the serial audio interface. It also
outputs four types of data including DO0 (FM external out), DO1 (Wavetable external out), DO2
(MIX out) and DO3 (effect-send out). Normally, it uses the output of DO2. When YMF721 (OPL4ML2) is in power down mode, /PDOUT pin outputs "L" which can be used as the power down control
signal for peripheral systems.
- 21 -
July 10, 1997
Page 22
YMF721
7-4. Others
Power Supply
It is recommended to install a line noise filter in the YMF721 (OPL4-ML2). Be sure to install 0.1uF
ceramic capacitor between each of VDD pins and VSS pins as close to the pins as possible, especially
the pin No. 63 (VDD).
5V/3V
When operating YMF721 (OPL4-ML2) with 5 V, 5V/3V pin must be pulled up. When operating it
with 3.3 V, set the pin to "L".
XI, XO
YMF721 (OPL4-ML2) requires the clock frequency of 33.8688 MHz. This signal can be supplied
from the system or from the self-oscillation circuit connected with crystal oscillator
Yamaha recommends either of the following two types of parallel resonance type oscillator
made by Daishinku Co., Ltd.
(i) 3rd Overtone Type
AT-49, SMD-49 : R=5.6K, c
(ii) Fundamental Type
AT-49, SMD-49 : R=1M, c
Use of the Crystal oscillator with frequency deviation within 100 ppm is recommended. Length of
wiring lead from XI and XO pin to each component (crystal, resistor and capacitor) should be 0.5
inch or less respectively and the circuit pattern should be shielded on its periphery to minimize effect
on the peripheral devices.
1=c2
1=c2
=10pF
=5pF
YMF721(OPL4-ML2)
10099
XOXI
33.8688MHz
R
c
1
Since YMF721 (OPL4-ML2) is able to use power down mode, the power consumption can be
minimized when generation of the clock signal is discontinued during this mode.
c
2
- 22 -
July 10, 1997
Page 23
YMF721
Electrical Characteristics
Absolute Maximum Ratings
ItemSymbolMinimumMaximumUnit
Power Supply Voltage (Analog/Digital)V
Input VoltageV
Output VoltageV
Input CurrentI
Storage TemperatureT
Notes : VDD=DVDD=AVDD, VSS=DVSS=AVSS=0[V]
Recommended Operating Conditions
ItemSymbolMin.Typ.Max.Unit
Operating voltage 1 (5.0V Spec. 5V/3V=“H”)V
Operating voltage 2 (3.3V Spec. 5V/3V=“L”)V
Operating Ambient TemperatureT
Notes : DVSS=AVSS=0[V]
DD
IN
OUT
IN
STG
VSS-0.5VSS+7.0V
VSS-0.5VDD+0.5V
VSS-0.3VDD+0.3V
-2020mA
-50125°C
DD1
DD2
OP
4.755.005.25V
3.003.303.60V
02570°C
DC Characteristics
ItemSymbolConditionMin.Typ.Max.Unit
TTL-Input Pins
High Level Input Voltage 1
Low Level Input Voltage 1
CMOS-Input Pins
High Level Input Voltage 1
Low Level Input Voltage 1
Input Leakage CurrentI
Input CapacitanceC
Pull up RegisterR
High Level Output Voltage 1V
Low Level Output Voltage 1V
High Level Output Voltage 2V
Low Level Output Voltage 2V
Low Level Output Voltage 3V
Low Level Output Voltage 4V
Output CapacitanceC
Notes : VSS=0[V], TOP=0~70°C, VDD=5.0±0.25[V]
*1) Applicable to output pins except XO and /ARDY.
*2) Applicable to /ARDY pin.
V
IH1
V
IL1
V
IH2
V
IL2
L
I
U1
OH1
OL1IOL1
OH2
OL2IOL2
OLIOL1
OLIOL1
O
Except XI and 5V/3V pins2.0V
0.8V
Applicable to XI and 5V/3V 0.7V
VIN=VSS,V
DD
DD
0.2V
DD
-1010mA
10pF
/TEST, /TEST2
/TEST3, /TESTA
/TESTB, /RESETSEL
I
= -80mA (5V/3V=“L”)
OH1
50400kW
2.4V
= 2mA (*1)0.4V
I
= -80mA (5V/3V=“H”)VDD-1.0
OH2
= 2mA (*1)
= 4mA
I
= 2mA (*2)
OL2
= 12mA
I
= 2mA (*2)
OL2
(5V/3V=“L”)
(5V/3V=“H”)
VSS+0.4
0.4V
0.4V
10pF
V
V
V
V
- 23 -
July 10, 1997
Page 24
YMF721
AC Characteristics
1. CPU interface (Refer to Fig. 1, 2, 3)
ItemSymbolMin.Typ.Max.Unit
Address set up to /IOW, /IOR activet
Address hold to /IOW, /IOR inactivet
/IOW Write Pulse Widtht
Write Data set up to /IOW activet
Write Data hold to /IOW inactivet
/IOR Read Pulse Widtht
Read Data access timet
Read Data hold from /IOR inactivet
Chip select setup timet
Chip select hold timet
RESET Pulse Wid tht
The following commands are used to check existence and identification of YMF704C/721(OPL4ML/ML2) by using device dr iver.
Command Sub Command Command Length Response Length
80h00h3byte11byteGet Processor Device ID
80h01h3byte5byteGet Processor Software Version
80h02h3byte6byteGet Processor Software Capacity
81h00h3byte8byteGet OPL4-MLx Information
82h00h3byte31byteGet wave ROM Copyright Data
82h01h3byte5byteGet wave ROM Version
Function
Command 80h
This command is used mainly to obtain version information of the internal processor. T he device
driver is able to know capability of the internal processor before it controls the hardware.
The character string "GMP_OPL4" is read from ID strings. Existence of YMF721 (OPL4-ML2) can
be confirmed with this character string.
- 27 -
July 10, 1997
Page 28
YMF721
Sub Command 01h : Get Processor Software Version
CommandResponse
80hCommand byte84hResponse 1st byte
01hSub Command02hInteger part of version number
7FhCheck sum00h1st decimal place of version number
00h2nd decimal place of version number
7EhCheck sum
Version number of firmware stored in the internal processor is read out as shown below.
YMF704B(OPL4-ML) : Version 1.22
YMF704B(OPL4-ML) : Version 1.23
YMF704C(OPL4-ML) : Version 1.24
YMF721C(OPL4-ML2) : Version 2.00
Sub Command 02h : Get Processor Software Capacity
CommandResponse
80hCommand byte85hResponse 1st byte
02hSub Command00hNo use
7EhCheck sum00hNo use
00hNo use
07hCapacity code
79hCheck sum
The capacity of internal processor can be known through the capacity code.
bit0 = 1 : The synthesizer is able to add effects such as reverb or chorus send level 1.
bit1 = 1 : Suspend/Resume is supported.
bit2 = 1 :Power down is supported.
These commands are used to know information about the internal Wavetable sample ROM.
Sub Command 00h : Get Wave ROM Copyright Data
CommandResponse
82hCommand byte9EhResponse 1st byte
00hSub Command
00hCheck sumstringsCopyright Data
00hStrings Last Code
46hCheck sum
This command is used to know capacity of internal processor. As the strings, character strings of
"copyright yamaha corporation"(28bytes) are returned.
Sub Command 01h : Get Wave ROM Version
CommandResponse
82hCommand byte84hResponse 1st byte
01hSub Command01hInteger part of version number
7FhCheck sum00hFirst decimal place of version number
03hSecond decimal place of version number
7ChCheck sum
This command is used to know version number of internal Wavetabl e sample ROM.
YMF704C(OPL4-ML) : Version 1.02
YMF721C(OPL4-ML2) : Version 1.03
- 29 -
July 10, 1997
Page 30
YMF721
g
g
Supplementary Information 2 (MIDI Data Format)
1. General
1-1. Application
The following MIDI information applies to the YMF721(OPL4-ML2).
1-2. Applicable Standards
MIDI 1.0 Standard
2. Channel Message
2-1. Send
YMF721(OPL4-ML2) has no transmitting function.
2-2. Receive
2-2-1. Note On/Off
This is a message to inform playing information.
Note On : 9nH kkH vvH
Note Off : 9nH kkH 00H or 8nH kkH vvH
Received note range = C-2 ~ G8 (Note On only)
Verocity range = 1 ~ 127
2-2-2. Control Change <BnH> <Control No.> <Data>
a) Bank Select
This is a message to select a bank of the designated receiving channel. However, the channel 10 does
not receive bank select since it is fixed to drum kit.
The normal voice is selected when Bank Select MSB is “0”, and drum kit when “127”.
After Bank Select MSB is received, it is necessary to receive Program Change.
Control No.ParameterData ran
0Bank Select MSB0 or 127
32Bank Select LSBdon’t care
b) Modulation
This is a message to inform the depth of Vibrato.
Control No.ParameterData ran
1Modulation0 to 127
e
e
- 30 -
July 10, 1997
Page 31
YMF721
g
g
g
g
g
g
c) Data Entry
This is a message to set control parameter data designated by RPN (Registered Parameter Number).
Refer i) RPN for the relation between the parameter of RPN and the setting data.
Control No.ParameterData ran
6Data Entry MSB0 to 127
38Data Entry LSB0 to 127
d) Main Volume
This is a message to control the volume of each part (MIDI channel).
Control No.ParameterData ran
7Main Volume0 to 127
e) Pan
This is a message to control the sound position of each part.
Control No.ParameterData ran
10Panpot0 to 127
0 : left, 64 : center, 127 : right
f) Expression
This is a message to control the volume of each part during playing sound.
e
e
e
Control No.ParameterData ran
11Expression0 to 127
g) Hold
This is a message to control the sustain pedal.
When “Hold ON” is received, sound is kept playing even if “Note OFF” is received.
Control No.ParameterData ran
64Hold0 to 127
0 to 63 : OFF, 64 to 127 : ON
h) Sostenuto
This is a message to control the sostenuto pedal.
When “Sostenuto ON” is received during playing sound, sound is kept playing until “OFF” is received.
Control No.ParameterData ran
66Sostenuto0 to 63, 64 to 127
0 to 63 : OFF, 64 to 127 : ON
e
e
e
- 31 -
July 10, 1997
Page 32
YMF721
g
g
i) RPN
This is a message to set Pitch Bend Sensitivity and Tuning of each part.
After the modified parameter is designated by RPN MSB and RPN LSB, set the parameter value at
Data Entry.
Control No.ParameterData ran
100RPN LSB0 to 127
101RPN MSB0 to 127
This is a message to select a tone (voice) used in each part. GM tone (Bank Select MSB 0) or drum kit
(Bank Select MSB 127) is received by combination with a Bank Select.
Data Entry
MSB/LSB
mmH : 00H -18H (0-24 semitone)
------ : don’t care
2 octaves in semitone steps
Set to 2 semitones when powered on
This is a message to inform Pitch Bend information of each part.
Recieving the Pitch Bend message is valid only when GM tone, and invalid when drum kit.
ParameterData ran
Data LSB0 to 127
Data MSB0 to 127
The resolution is 14 bits (-8192 to 8191).
2-2-5. Channel After Touch <DnH> <Data>
This is a message to inform a degree of pressure after playing a keyboard.
When this message is received, all volumes are set.
Data range of ss and tt is 0 to 127 (00H to 7FH). However, the value of tt is only valid, and ss is
ignored.
n : Device No. Don’t care.
When this message is received, pitch of all channel are changed at the same time.
Data range of xm and xl is 0 to 127 (00H to 7FH). However, 8 bits value (0 to 255), that is composed
of m and l, is valid range.
128 (ml=80H) : Center, ±1 : up/down by 1¢
This parameter is ignored at drum kit (channel 10 and bank 127).
And, this parameter is not reset by System Reset, GM System Level 1 ON and XG System ON.
24 C 0Seq Click H
25 C#0
26 D0
27 D#0Brush Slap
28 E0
29 F0
30 F#0CastanetHi QHi Q
31 G0Snare LSD Room L SD Power M Snare MSD Power HBrush Slap L Concert SD
32 G#0Sticks
33 A0Bass Drum LBD Room L Bass Drum M Bass Drum HBass Drum MGran Casa
34 A#0Open Rim Shot
35 B0Bass Drum MBD Room M Bass Drum H BD PowerBD Analog LGran Casa
36 C1Bass Drum HBD Room H BD PowerBD GateBD Analog HGran Casa
37 C#1Side StickAnalog Side Stick
38 D1Snare MSD Room M SD RockSD Power LAnalog Snare LBrush Slap Concert SD
39 D#1Hand Clap
40 E1Snare HSD Room H SD Power Rim SD Power HAnalog Snare HBrush TapConcert SD
41 F1Floor Tom LRoom Tom 1 Power Tom 1 E Tom 1Analog Tom 1Jazz Tom 1 Brush Tom 1 Jazz Tom 1
42 F#1Hi-Hat ClosedAnalog HH Closed 1
43 G1Floor Tom HRoom Tom 2 Power Tom 2 E Tom 2Analog Tom 2Jazz Tom 2 Brush Tom 2 Jazz Tom 2
44 G#1Hi-Hat PedalAnalog HH Closed 2
45 A1Low TomRoom Tom 3 Power Tom 3 E Tom 3Analog Tom 3Jazz Tom 3 Brush Tom 3 Jazz Tom 3
46 A#1Hi-Hat OpenAnalog HH Open
47 B1Mid Tom LRoom Tom 4 Power Tom 4 E Tom 4Analog Tom 4Jazz Tom 4 Brush Tom 4 Jazz Tom 4
48 C2Mid Tom HRoom Tom 5 Power Tom 5 E Tom 5Analog Tom 5Jazz Tom 5 Brush Tom 5 Jazz Tom 5
49 C#2Crash Cymbal 1Hand Cym.Open L
50 D2High TomRoom Tom 6 Power Tom 6 E Tom 6Analog Tom 6Jazz Tom 6 Brush Tom 6 Jazz Tom 6
51 D#2Ride Cymbal 1Hand Cym.Closed L
52 E2Chinese Cymbal
53 F2Ride Cymbal Cup
54 F#2Tambourine
55 G2Spla sh Cymbal
56 G#2Cowbell
57 A2Crash Cymbal 2Hand Cym.Open H
58 A#2Vibraslap
59 B2Ride Cymbal 2Jazz RideHand Cym.Closed H
60 C3Bongo H
61 C#3Bongo L
62 D3Conga H Mute
63 D#3Conga H Open
64 E3Conga L
65 F3Timbale H
66 F#3Timbale L
67 G3Agogo H
68 G#3Agogo L
69 A3Cabasa
70 A#3Maracas
71 B3
72 C4
73 C#4Guiro Short
74 D4Guiro Long
75 D#4Claves
76 E4Wood Block H
77 F4Wood Block L
78 F#4Cuica MuteScratch PushScratch Push
79 G4Cuica OpenScratch PullScratch Pull
80 G#4Triangle Mute
81 A4Tri angle Open
82 A#4Shaker
83 B4Jingle Bell
84 C5Bell Tree
O
Brush Tap
O
Brush Swirl L
O
Brush Swirl HReverse Cymbal Reverse Cymbal
O
Snare Roll
O
Samba Whistle H
O
Samba Whistle L
- 39 -
: Same as Standard kit
July 10, 1997
Page 40
YMF721
EXTERNAL DIMENSIONS OF PACKAGE
16.00 ± 0.40
14.00 ± 0.30
7551
76
100
50
14.00 ± 0.30
16.00 ± 0.40
26
125
0.20 ± 0.10
or 0.18 ± 0.10
P-0.50TYP
1.70MAX.
(Installation height)
1.40 ± 0.20
0MIN.(STAND OFF)
LEAD THICKNESS : 0.125TYP or 0.15TYP
The shape of the molded corner may slightly different from the shape
in this diagram.
The figure in the parenthesis ( ) should be used as a reference.
Plastic body dimensions do not include burr of resin.
UNIT : mm
Note : LSIs to be installed on the surface of the printed circuit board require special care
in storage and soldering. Consult your dealer for the details.
(1.0)
0-10º
0.50 ± 0.20
- 40 -
July 10, 1997
Page 41
YMF721
g
g
IMPORTANT NOTICE
1. Yamaha reserves the right to make changes to its Products and to this document without
notice. The information c ontained in this document has been caref ully checked and is believed
to be reliable. However, Yamaha assumes no respons ibilities for inaccuracies and makes no
commitment to update or to keep current the information contained in this document.
2. These Yamaha Products are desi
ned only for commercial and normal industrial
applications, and are not suitable for other uses, such as medical life support equipment, nuclear
facilities, critical care equipment or any other application the failure of which could lead to death,
personal injury or environmental or property dama
e. Use of the Products in any such
application is at the customer's sole risk and expense.
3. YAMAHA ASSUMES NO LIABILITY FOR INCIDENTAL, CONSEQUENTIAL OR SPECIAL
DAMAGES OR INJURY THAT MAY RESULT FROM MISAPPLICAT ION OR IMPROPER USE
OR OPERATION OF THE PRODUCTS.
4. YAMAHA MAKES NO WARRANTY OR REPRESENT ATION THAT T HE PRODUCTS ARE
SUBJECT TO INTELLECTUAL PROPERTY LICENSE FROM YAMAHA OR ANYTHIRD
PARTY, AND YAMAHA MAKES NO WARRANTY OR REPRESENTATION OF NONINFRINGEMENT WITH RESPECT TO THE PRODUCTS. YAMAHA SPECIFICALLY
EXCLUDES ANY LIABILITY TO THE CUST OMER OR ANY THIRD PARTY ARISING FROM
OR RELATED TO THE PRODUCTS' INFRINGEMENT OF ANY THIRD PARTY'S
INTELLECTUAL PROPERTY RIGHTS, INCLUDING THE PATENT, COPYRIGHT,
TRADEMARK OR TRADE SECRET RIGHTS OF ANY THIRD PARTY.
5. EXAMPLES OF USE DESCRIBED HEREIN ARE MERELY TO INDICATE THE
CHARACTERISTICS AND PERFORMANCE OF YAMAHA PRODUCTS. YAMAHA ASSUMES
NO RESPONSIBILITY FOR ANY INTELLECTUAL PROPERTY CLAIMS OR OTHER
PROBLEMS THAT MAY RESULT FROM APPLICATIONS BASED ON THE EXAMPLES
DESCRIBED HEREIN. YAMAHA MAKES NO WARRANTY WITH RESPECT TO THE
PRODUCTS, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO THE
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR USE AND TITLE.
Note) The specifications of this product are subject to improvement change without prior notice.
AGENCY
Address inquires to :
Semi-conductor Sales Department
- Head Office
- Tokyo Office
- Osaka Office
- U.S.A. Office
YAMAHA CORPORATION
203, MatsunokiJima, Toyooka-mura.
Iwata-gun, Shizuok a-ken, 438-0192
Tel. +81-539-62-4918 Fax. +81-539-62-5054
2-17-11, Takanawa, Minato-ku, Tokyo, 108-8568
Tel. +81-3-5488-5431 Fax. +81-3-5488-5088
1-13-17, Namba Naka, Naniwa-ku,
Osaka City, Osaka, 556-0011
Tel. +81-6-6633-3690 Fax. +81-6-6633-3691
YAMAHA Syst em Technology.
100 Century Center Court, San Jose, CA 95112
Tel. +1-408-467-2300 Fax. +1-408-437-8791
- 41 -
July 10, 1997
Loading...
+ 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.