Ymf262 199110
Ymf262 199110
Ymf262 199110
---··-----------'
YAMAH~i.Si
YMF262
FM 0perator Type L3 (OPL3)
1
•OVERVIEW
The YMF262 (0PL3) was developed as a sound source LSI for computer and game equipment.
The YMF262 contains an FM sound source which may be controlled by software. In addition, five
different rhythm sounds (bass drum, snare drum, tom tom, top cymbal and hi hat cymbal) are avail·
able. The YMF262 is register compatible with the YM3812 (0PL2), with twice the number of signal
sources, four new operator modes, selectable waveform and stereo output.
•FEATURES
• Registers are compatible with YM3812 (0PL2) FM sound source.
• Up to six sounds can b1a used as four-operator melody sounds for variety.
• 18 simultaneous melody sounds, or 15 melody sounds with five rhythm sounds (with two oper·
a tors).
• Six four-operator melody sounds and six two-operator melody sounds, or six four-operator
melody sounds, three two-operator melody S()unds and five rhythm sounds (with four operators).
• Eight selectable waveforms.
• In addition to L and R channels, two auxiliary channels are provided. Interface with YAC512
(stereo DAC).
• LFO for vibrato a11d trE!molo effects.
• Two programmable tim1ars.
• Shorter register access time compared with YM3812.
• 5V single supply sHicon gate CMOS process.
• 24 Pin SOP Package.
'YAlVlAHA CORPORATION--;::::::==vM=F2=52=c=Ar=A==Lo=G====,
CATALOG No. : LSl-4MF2622
1991. 10
YMF262
• BLOCK DIAGRAM
Data Bus
Contr~
----
J Contr~
· Timm J Timer
MO
Envelope Accumulator
Operator
Genera.tor (OP)
(EG) Accumulator EX TOUT
Phase Vibrato,
DO - D7 Register } Generator Amplitude
Array
(PG)
----- Modulation
------
• PIN OUT DIAGRAM of 'YM:F262-M
24 ¢M
I
2
0 23 ¢SY
3 22 EXT OUT
4 21 MO
5 zo SMPL
6 19 SMPR
7 18 D7
8 17 D6
9 16 05
10 15 D4
II 14 03
12 13 DZ
2
YMF262
• PIN CONFIGURATION
No. 1/0 Pin Name Function
1 - VDD .t-5V supply
2 OD /IRQ 1rim er interrupt request
3 I+ /IC ] nitilal clear
-
4 I AO cPl1 interface - Address select input
5 I Al cPlT interface Address select input
6 I /WR cPlr interface Write enable input
7 I /RD cPlT interface Read enable input
8 I+ !CS cPl'f interface Chip select input
-
9 0 TEST L SI test pin (normally NC)
10 110 DO cPU· interface Data bus (LSB)
11 110 DI cPU' interface Data bus
12 Vss Ci round
13 1/0 D2 cPU interface Data bus
14 I!O D3 cPU interface - Data bus
15 l/O D4 c PU interface Data bus
16 1/0 D5 cPU interface Data bus
17 1/0 D6 cPU interface -
Data bus
18 1/0 D7 c PU interface Data bus (MSB)
19 0 SMPR D AC' interface R channel sample/hold
-
20 0 SMPL D AC'interface L channel sample/hold
21 0 MO r •AC'interface ( ~A!.N vii) Sound source serial data output
22 0 EX TOUT D AC: interface ( AV l\ vH) EXT serial data output
23 0 ¢SY D AC' interface oLK Data latch signal
24 I <t>M 1\.fas ter clock input (14.32 MHz)
3
YMF262
•FUNCTIONS
1. Master Clock ¢M
All operations in the LSI are controlled by the 14.32 MHz master clock signal applied to the ¢M pin.
X: Don't care
Note: Operation in states other than those listed above is not guaranteed.
4
YMF262
3. DAC Interface MO, EXTOUT, ¢SY, SMPL, SMPR
The generated digital sound data is output from MO serially, LSB first. Connect this signal to
YAC512 to convert to analog output. The signals ¢M, ¢SY, SMPL and SMPR generate interface
timing signals. Data can be output to EXTOUT for future expansion .
•.. . .. ·
__,-·
:~
¢ s ,. JlJU1JUlJlJlJlJ{U
MO II
(LSBl
I II I !·1b::=~~~~::~~-~~~-~~~~-----
Leh
.· 11.]JP!t
YMF262 YACS 12
¢SY CLK
MO SMP2 CH2
·- v EXTOUT-0
SMPL J SMR'I CHI
SMPR Ji EXTOUT-1
YACS 12
CLK
DIN
SMP2 CHZ
'\.) Reh
SMPI CHI
Leh
Note: The same signal is output at the MO terminal and the EXTOUT terminal.
5
VMF262
• REGISTER MAP
D~3~~
<HEX)
D7 D6 D5 Dl DO D3 D2 Dl DO
$ 0 2 TIMER 1
$ 0 3 TIMER 2
$ 0 5
-- --
$ 0 8 lLj NTS
---
!
$ 2 0
$ 3 5
AM VIB EGTKS[ MULT AM VIB EGT KSR MULT
$ 4 0
I
+----+---~------------------~
KSL TL KSL TL
$ 5 5
I l J_
r T
$ 6 0
AR DR AR DR
$ 7 5
s80
l
r
J_
I
J_
r +-f,---,--t--------+-----t
SL RR SL RR
$ 9 5
+-f~----------------~---+----
l J_ J_
l I I
$AO
F NUMBER ( L) F NUMBER(L)
$AB
l
+-+----'
~
$ B 0
KON BLO< FNUM(H) KON BLOCK FNUM(H)
$BB
$CO
I EXl EXO STL STR. FB CNT EXl EXO STL STR FB CNT
$ c8
~
$EO
$F5
6
VMF262
• FM SIGNAL SOURCE OUGANIZATION
Channel signal 1 3 4 5 6 7 8 9
(twcroperator) RYT RYT RYT
Channel signal 1 2 3 I ~ .,/'17
r--(f_ou_r_~_p_e_ra_t_or_)______--+--·..---+-·--.·--+---.---1---..-l_ --~2--1--...,..-3-+IL__J---.--~~'--...--~~f---,-~-1J
Slot l signal 1 2 3 7 8 9 13 14 15
Slot 2 signal 4 5 6 10 11 12 16 17 18
Register settings for 20 21 22 28 29 2A 30 31 32
the slot (Al= L ') 23 24 25 2B 2C 2D 33 34 3S
40 41 42 48 49 4A 50 51 S2
43 44 4S 4B 4C 4D 53 54 5S
60 61 62 68 69 6A 70 71 72
I ISEOO :: 81 :: 82 :: 88 :: 89 :: 8A : : 90 :: 91 :: 92 ::
1
El £2 EB E9 EA FO Fl F2
j
I
i Register settings for
/ channel (two-operator,
/ A1 ='L ')
I Au
E3
B0
C0
E4 ES EB
AJ
Bl.
Cl
EC ED
A2
B2
C2
F3 F4
A3
B3
C3
FS
A4
B4
C4
AS
BS
cs
A6
B6
C6
A7
B7
C7
AB
BS
CB
,___~~--------------- ----+-------+-----+-----+-----+------.J.------'------...1
i Register settings for AO Al A2 C3 C4
1
CS !~
channel (four-operator, B0 B1 B2 J
I A 1 = 'L') c0 c1 c2
~~------~------..___ _ _ j _ __,__..______.I_____ ~_____._____..::._______________.;
I
l Channel signal
i (two-operator)
J, 1 ;T
~
11 12 I 13 14 lS 16 17 18
~I_C_h_ann_;._el-s-ign~al~--------,-4- I -S---+-·-6----+------1------+-----+[//7----+[//7----~~-----.1
1---(f_ou_r_·o_p_er_a_to_r_)_______._J__ .--+- 4 5 6
I Slot I signal !I 9 ! J 2~ 2I 25 26 27 3I 32 33
i Slot 2 signal J 22 ~3 24 28 29 30 34 35 36
f Register settings ! 2 OJ 2 1 --i-2-2+--+-2-8-+---+-2-9+--+-2-A-1--+3-0-1---1-3-1-+---1-3-2-4---1
1
for the slot (Al='H') 23 24 2S 28 2C 2D 33 34 35
40 41 42 48 49 4A 50 51 52
43 44 45 4B 4C 4D 53 54 55
60 61 62 68 69 6A 70 71 72
63 64 65 6B 6C 6D 73 74 75
80 81 82 88 89 SA 90 91 92
83 84 85 SB SC SD 93 94 95
EO El E2 EB E9 EA FO Fl F2
E3 E4· E5 EB EC ED F3 F4 F5
Register settings for AO Al A2 A3 A4 A5 A6 A7 AB
channel (two-operator, BO Bl B2 B3 B4 BS B6 B7 BB
Al='H1 co Cl C2 C3 C4 C5 C6 C7 CB
Register settings for
channel (four-operator,
AO
BO
c()
Al
Bl
A2
B2
C3 C4
cs~
I Al='H') Cl C2
7
VMF262
----------~---------------,------------------------------------------------~
•REGISTERS
(1) Description
Timer 1 is an 8 bit preset counter. This counter is every BOµS, and /IRQ is generated when the
counter overflows. TIMER 1 is the preset value. When overflow occurs, this value is auto-
matically re-loaded into th1~ c<>unter. The time until /IRQ is generated (tov) is calculated as
follows:
tov[ms]=(255-Nl)*0.08
Nl=D7*27+])6*~i+])5•2s+D4*24+D3*23+D2•22+n1•2+DO
8
YMF262
When NTS=O
BLOCK Data 0 1 2 3 4 5 6 7
F·NUMBER MSB • • • • • • • •
F·NUMBER 2nd 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
Key scale No. 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
When NTS=l
BLOCK Data 0 1 2 3 4 5 6 7
F·NUMBER MSB 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
F·NUMBER 2nd
Key scale No. 0
±
• • • • • • • • • • • • • • • •
1 2 3 4 5 6 7 8 9 10 11 12 13 14
*: Don't care
15
EGT= 'l' selects susta.i.11ed sound, and maintains the SUSTAIN LEVEL while KON is 1.
EGT= 'O, selects decay, m1d the RELEASE RA TE takes effect even if KON is maintained at 1.
SL
I
'
___K_E_Y_O_N_________ _J
I
9
VMF262
KSR (KEY SCALE RATE): Select key scale RATE
With normal musical instrw:nen.ts, the attack/decay rate becomes faster as the pitch increases.
The key scale RA TE contrCJ~ls isimulation of this effect. An offset is added to the individual
ATTACK, DECAY and RE.LEASE rates as follows:
Actual rate=Rate value*4+ Rof
If rate value=O, actual rate =O.
Rof is set as follows depending on the KSR setting:
MULT 0 1 2 3 6 7 8 9 A B c D E F
Multiplier 112 1 2 3 : I: I 6
I 7
I 8 9 10 10 12 12 15 15
~-t-s~_n_u_a-tio-n--l--~--h5d:l_loc_t
1 3
,.... __.__s_dB_ 1_oc_t_-.
___ f 1_oc_t_,
6d_B_
10
YMF262
SL (SUSTAIN LEVEL): Sustained level setting
Sustain level=24•D7+12*D6+6*D5+3•D4
When D7=:D6=D5=D4=1, level=93dB
BD (BASS DRUM), SD (SNARE DRUM), TOM (TOM TOM), TC (TOP CYMBAL), HH (HI-HAT):
ON/OFF
Sound output on/off switc=h for each sound. When any of these is set to l, the corresponding
sound is generated.
lHI-HA T 14
I
11
VMF262
FB (FEED BACK): Modulatfon depth for slot 1 FM feed back
__
~1~-B-od_u-la-t-io-n-------1~ ~~~,---I :_1s~~-l~~w_:______~_~_2_____:______2_:_____4_:___
NEW: OPL3/0PL2 Operation selection
If NEW= 'l ', OPL3 operation is selected and data is written when Al= 'H '.To use OPL3 func-
tions, write NEW= 'l' during initialization.
OPI
0 P I
:J-our p 2
0 p 2
.,._ OUT
In four-operator mode, both CNT bits are used to specify the connection:
12
YMF262
CI\T(Cn) = '0'. CNT(Cn:+3) = 'O'
OPI
{~ 0 p 3 OP4 OUT
__j P31
,._OUT
p 3
0 p 3
p 2
0 p 2 OP4 OUT
~~.__O_P l_ _ P-----
p 2
0 p 2 1- { OP3 .
_P
4-· I 0 p 4 ~..____,
13
YMF262
WS (WA VE SELECT): Select waveform
Select the waveform 1tlsed for carrier and modulation.
WS=O
'- WS=4
4:; I
WS=l L • WS=5
{\{\ I
I
!
WS=2 L WS=6
I J
\\'S = 3 L I WS=7
~
C..t-t:l.. 1- ctt1.. p... 0#2 L C\i}:f ~
STL (STEREO L), STR (STEREO R), EXl (EXTOUT 1), EXO (EXTOUT 0): Select output
When any of these bits is siet to l, data is output to the corresponding channel. STL and STR
are output from the MO pJln, and EXl and EXO are output from the EXTOUT pin.
CONNECTION SEL D5 D4 D3 D2 Dl DO
Four-operator channel 6 5 4 3 2 1
Two-operator channels used 12, 15 11, 14 10, 13 3, 6 2, 5 1,4
-
14
VMF262
(2) Status
~ -----t-D_7
B_i_t
~tatus
--------------------
~6 D5 D4} D3 l p2 IDl IDO I
,_...__,________
IRQ FTl FT2
16
YMF262
• YMF262 ELECTRICAL CHARACTERISTICS
1. Absolute Maximum RatingH
Item Symbol Rating Unit
Power supply voltage VDD -0.3-7.0 v
Input voltage VI -0.3-VDD+0.5 v
Operating temperature Top 0-70 oc
Storage temperature Tstg -50-125 oc
16
VMF262
4. AC Characteristics (Conditions; Ta=O- 70°C, Voo=5.0 ± 0.25V)
5. Timing Diagram
¢M
D+
lfMI
I
l"ig A·l
/IC
Fig A·2
17
YMF262
(3) Address/Data \\Tite timing
AO
Tcsv.
/CS
Fig A·3
AO
~
/CS--------1-----~----------..-i Note: TACC is based on
T11v. whichever of CS or
RD goes to the low
level last.
18
YMF262
• DIMENSIONS
• YMF262-M
......----------·-----------------.
l-4f---- I 6.()TVP
Q. IO
-- JLl
j B BB B -
II 12
l
---H--0.4 TVP
DIMENSIONS IN MM
L_
19
VMF262
The specifications of this product are subject to improvement changes without prior notice.
----------------------
-----AGENCY------- --YAMAHA CORPORATION-
Address inquiries to:
Semi·conductor Sales Department
• Head Office ~03. Matsunokijima, Toyooka·mura,
Iwata·gun, Shizuoka·ken. 438-01
Electronic Equipment business section
Tel. 0539-62·4918 Fax. 0539-62-5054
•Tokyo Office 3·4. Surugadai Kanda. Chiyoda·ku,
Tokyo, 101
Ryumeikan Bldg. 4F
Tel. 03·3255-4481 Fax. 03·3255·4488
•Osaka Office 3·12·9. Minami Senba, Chuo-ku.
Osaka City. Osaka, 542
Shinsaibashi Plaza Bldg. 4F
Tel. 06·252-7980 Fax. 06·252·5615
•U.S.A. Office YAMAHA Systems Technology.
---------------------- 981 Ridder Park Drive San Jose, CA95131
Tel. 408·437·3133 Fax. 408·437-8791