TABLE OF CONTENTS Chapter Page $. Outline of Functions and Features...c.cccccccscsccsssesnssesesesersesecectsesnststennennenersersicsnscaetsees M 1.1 Outline of Functions.....cccccccccscsecesccseceesessesesesnseneeesesesecsesusscatesersearercsesereranccateanscaar 4 1.3. Summary of the Pnnciptes of FM-type Sound Generation... sees sree renee 1 2 Construction and Features .........cc ec jseeseeseetaseseneennercsceceeasausnanssesonneaseanees coneaeesnenanaenes 5 DAD RESHSRON ccc cccccccccsesecesesesessseceeeecersecececeeesscseeseneeseesetetsisisecscsstesneaseneneererceccnnenans 3 ZA Envelope Generator .......scecccoeeseeeeseesescsesnnnnarerercssenetnaneneasenteseesncsconsesatecaes R 21S Noise Gemerator..cecccccccccscssesesseeseeceseeeeseeerersecesttentacenrs teteeeessemeceicosemeeeeeees ED 21.6 Low Frequency OSC... sscsseesser ce eseneesnecennensneesenecectstsresnnenneesceeaceateatnee 10 DAB ACCUMMMATON. .cccececoece secs ceseeeececeseeseescseeeceneoeeesecetnnatetastoesesesecetestttccetensenssenes A DD Pi Waring nsec ceceeeeneneeeecsncererceeees ctesenene ces sgeeeess snanenencnaenenen: Oo cocanannanagens or osseseeneyes 22 DDL Pim Functions..cccccccccceccccececectetesnereer ss csseanennesentecs gceeeaeesaneeersrosseee ces teueaaeriey 22 3. Device Specifications... cece. scsseeeeseeeeceesesnceceneersusnnearssctanateensrynesseseacesnsssansemmsroncectesaaenae 24 3.1) Maximum Ratings. ..-.-....ccceo aes cseecsneneercrerenesesesnanenensctcecisesusseacananenannesssconsaanennane 24 3.2 Electrical Characteristics....--..0cccccscesseeeececesstesereeeseennesmcssseaneenneseeneeccuseeneentenserenses 24 BL pte facing ones eee ects cseee ee ceeeseenens ones seseeeceumansnansaserscstecen neaenannrersfoueenancarennseccseceqecmanncana 30 1. QUTLEINE OF FUNCTIONS AND FEATURES 1.1 Outline of Functions The YM2151 is an FM-type sound generator equipped with an 8 bit bus line and capable of producing superb audio quality via a microprocessor program. When this IC is used in tandem with the specially-developed YM3012 D/A converter, you can obtain 8-note, left-right/2-channel audio signals, In addition, this unit is equipped with noise, vibrato, an amplitude modulation circuit, a sound effects circuit, and timer. The package is a 24-pin dual in-line package. 1.2 Features @ Generate up to 8 notes. @ Generate noise. @ Timbre can be altered temporally. ® High harmonic can be de-harmonized from the base frequency. © De-hsrmonize between octaves. © Interval settings of up to 1.6 cents. e Add vibrato and amplitude modulation. ® Generate a variety of sound effects by extreme de- harmonization of the high harmonic from the base frequency and massive vibrato and amplitude modulation. 1.3 Summary of the Principles of FM-type Sound Generation FM-type sound can be expressed via a basic configuration like that depicted in Figure 1.1. If this were to be expressed formally, it would look like this: Fig. 1.1 (NC+DOQmt Modalator __ camer (Nm + Dmypat SIN 2) a 63 Eqy TABLE Bin) Att) E(t) = A(t)*sin[(Ne+ De)*wt + B(t)*sin(Nm + Dm)*wt] A(t): Volume envelope A(t) ; Timbre envelope Nx : 1/2 of the basic pitch or multipie value Dx : 1/2 of the basic piteh (1,6 cents) harmonic valuc For example, when B(t) = 0, you get a sine wave of (Ne + Dc) times with respect to the basic pitch. In this case, if we assume values for Nc and Dc like those given above, we will obtain a 1/2 the basic pitch or a sine wave of multiple value. As long as the value for Dc is not 0, the output will indicate a pitch sine wave slightly offset from 1/2 the basic pttch or multuple value. When B(t) is greater than 0, the output will not be a sine wave but a wave form including a high harmonic component, because B(t) * sin (Nm + Dm) © wtis added onto the (Nc + De) * wt phase information. It therefore follows that a variety of wave forms including a high harmonic component can be obtained by selecting different values for B(t) and (Nm~+ Dm). Also, the timbre can be altered and autput by temporal! adjustment of B(t). Actual output patterns when altering the value of Bit) and (Nm + Dm) and adding it onto the previous pattern are indicated in Fig. 1.2~1.9. Fig. 1.2 Fig. 1.3 (Ne+ De)/(Nm + Dm)= 1, Bit} =0 (Ne+ De}/(Nm + Dm) = 1, Bit)= 0.5 Fig. 1.4 Fig. 1.5 (Ne+ De)/(Nm + Dm)= 1, Bit)= 1.0 (Ne + Dc) {Nm + Dm) = 1, B(=1.5 Fig. 1.6 Fig. 1.7 (Nc+ De)/(Nm+ Dm)=1, B(t)=2.0 (Ne+ De)/(Nm+ Dm) =0.5, B(t) = 0.5 Fig. 1.8 Fig. 1.9 (Ne + De)/(Nm + Dm) =0.5, B(t)=1.0 (Ne+ De)/(Nm + Dm)=0.5, B(t)= 1.5 The YM2151 is equipped to handle 7 different kinds of combinatory connection methods, with two circuits composed of this basic structure assigned to a single note, which can be arranged serially or in parallel, or made to act as only a sine- wave sound source, In addition, with the unit set up as in Figure 1.10, with inclusion of a circuit that takes one’s own output signal and returns it to oneself, virtually any type of wave form can be obtained via proper adjustment. Fig. 1.10 (Ne + Dedwt (Nn + Dent SIN an @) TABLE &) a +) TABLE (x) &r) Aw) An example of the wave form in this case is depicted in Figure 1.11 Fig. 1.11 Example output of a-point waveform. 2. CONSTRUCTION AND FEATURES 2.1 Block Diagram The block diagram is as depicted in Figure 2.1. As explained in the previous section, the YM2151 uses two FM modulation arcuits for a single note. These are time division circuits, with sine table read four lumes. Since it is possible to produce up to 8 sound sources overall, the circuit has been constructed 50 aS to operate on a 32-slot time division basis Figure 2.2 shows the relation between the sound channel number and the slot number, The following is an explanation of the functions of each of the components, along with the content of the data these components handle, 2.1.1 REG: Register This is 256-byte area register for the storage of data which in tur drive and set the individual function circuits to be explained later. The address tap is shown in Figure 2.3. When this register is at iniGal clear (IC terminal ="0"), all is “O” level. © B: WRITE BUSY FLAG (READ MODE) The bit in the diagram below is shown being written in. From the time the write command is received until the write is completed, a period of om 68 bits is required, During this time the flag reads “1”. When continuing data and writing in, it is necessary to confirm that this flag reads “0” before writing in the next datum. lox XXX Td rs © CT: CONTROL OUTPUT Bits Dé and D> correspond to oulput terminals CT! and CT2 and comprise the External control output port. At initial clear (IC terminal = “O"), the CT. and CT: terminals read “0” level. DDE XPDIXT TI —— cT | Ly CcTi cT2 ® KON: KEY ON As shown in the figure below, when entering a key on (off) which corresponds to 2 3-bit channel number and a 4-bit slot, the sound source begins (ends). Writing in “| for the level at SN tums the key on, while writing in “O" turns the key off. For the channel number Please refer to the channel number in Figure 2.2. The SN bits Ds, Du, Ds, and Ds correspond to Mi, Ci, Mz and Cz SS __— SN CH No 2.1.2 PG: Phase Generator The phase information needed to fix the carmer frequency and modulator frequency is generated here by KC, KF, MUL. DTI, DT2, PMS data from the REG. Also, the production of vibrato effects by data from the LFO and sound effects due to frequency modulation, etc is carried out at the PG. ® KC: KEY CODE (OCT, NOTE) The key code uses a datum per note, and a datum is composed of 7 bits as depicted in the figure below. The first 3 bits express the octave (8 octaves), and the last 4 bits express the note. The relation between octaves and notes on the one hand and intervals on the other is depicted in Figure 2.4. A sound frequency of 440.0 Hz can be obtained by setting the device clock frequency at 3.579545 MHz and entering frequency data KC:(OCT =4, NOTE=10), KF=0, MUL=1, DT1=0, DT2=0, PMS=0. .---—*———_ OCT NOTE e KF: KEY FRACTION The key fraction uses a datum per note, and a datum is composed of 6 bits as depicted in the figure below. With these 6 bits of data you can fix the phase information by dividing the note interval (100 cents) into 1.6-cent segments (see Figure 2.4). [D [Ds] D2 D«iD3|D2 XD +> “~ KEY FRACTION e MUL: PHASE MULTIPLY Four data set one note, comprised of 4 bits as indicated in the figure below. With this function you can multiply the KC- and KF-input phase information, as shown in Figure 2.5, [< [Des |D«|Ds{D_]D: Da UU." oY DTi MUL @ DTI: DETUNE (1) Four data set one note, comprised of 3 bits as indicated in the figure above. With this function you can detune the phase information from the frequency vis-a-vis the KC- and KF-input phase infonmation, as shown in Figure 2.6. Also. the phase information from this DTI undergoes scaling via the key code. e DT2: DETUNE (2) Four data set one note, comprised of 2 bits as indicated in the figure below, With this function you can carry out gross detwning of the phase information from the frequency vis-a-vis the KC- and KF-input phase information, as shown in Figure 2.7. This is effective when generating sound effects. pty Til i ——~ DT2 e PMS: PHASE MODULATION SENSITIVITY One datum used to set a note, comprised of 3 bits as indicated in the figure below. You can obtain vibrato and trembling sounds from the LFO (low frequency oscillator) signals that express band width in 8 bits by adding them to the KC and KF. As indicated in Figure 2.8. this sensitivity can be controlled at 8 different levels. The value indicated here obtains when the LFO output is at its maximum value. RposjoxDd | —— PMS 2.1.3 OP: FM Operator Picks up the phase information from the PG and reads out the sine table, The read-out Signal is multiplied by the envelope information from the EG. At end of OP circuit, connection switch is activated, or you can control the volume of feedback the phase information as necessary. Here, the FM-modulated signal is transmitted te ACC. e CON: CONNECTION One datum used to set a note, comprised of 3 bits as indicated in the figure below, With this CON, you can construct a distinct 8-note OP circuit configuration that will allow you to produce all 8 notes with various timbre. Figure 2.9 shows this circuit construction. [ [_[p:j>-[os[p:|0:[Dq YS FL CON = (F*) e FL; SELF FEEDBACK LEVEL One datum used to set a note, comprised of 3 bits as indicated in the figure above. The FL level can be controlled for all notes as shown in Figure 2.10. 2.1.4 EG: Envelope Generator The EG output is multiplied by the signal appearing after the OP reads out the sine table, imparting timbre and volume alterations. When the key on is entered at the EG, the EG changes in the manner indicated in the following figure. nevon KEY OFF When the attenuation volume is cx- ee ee pressed as a logarithm, the attack changes | | exponentially and the decay changes in a 6 : straight linc. alicouapod DIL volume The movement from TA to TDI, as MAX well as from TD1 to TD2, is carried out TA Le when the attenuation volume is 0 dB, as well as at the first decay level (DIL). e AR: ATTACK RATE Four data used to set a note, comprised of 5 bits as indicated in the figure below. When key on is entered at the EG, the attenuation volume diminishes, and after the attack time (TA) the attenuation volume approaches 0 dB. The attack time can be set by means of the AR as in Figure 2.11. Also, the AR is scaled by the key code, so refer to Figure 2.12. || X{p«\ps|p:|p:| De ——_. AR e DIR: FIRST DECAY RATE Four data used to set a note, comprised of 5 bits as indicated in the figure below. When the attenuation volume is 0 dB, the EG automatically moves to first decay, obtaining first decay level, This first decay time (TD!) can be set by means of the D!R as in Figure 2.1}, Also, DIR 15 scaled by the key code, so refer t Figure 2.12. | PXXD«[Ds| 21D: [Da Ve ~ —_Y DIR @ D2R: SECOND DECAY RATE Four data used to set a note, with a datum comprised of § bits as indicated in the figure below, When the first decay level has been passed, the EG automatically moves to second decay and remains in this state until key off. This second decay time (TD2) can be set by means of the D2R as in Figure 2.11, Also, D2R is scaled by the key code, so refer to Figure 2.12. [| [XJ0-\ps/Ds[D:IDe D2R e RR: RELEASE RATE Four data used to set 2 note, with a datum comprised of 4 bits as indicated in the figure below. With key off the EG begins release and attenuation advances toward the maximum attenuation volume (96 dB). The release time (TR) can be set by means of the TR as in Figure 2.11. Also, RR is scaled by the key code, s refer to Figure 2.12. Note that because the RR contains one less bit than either DIR or D2R, resolution will be poor. TTL [psp:| psig a RR e KS: KEY SCALING Four data used to set a note, with a datum comprised of 2 bits as indicated in the figure below. The KS scales the AR, DIR, D2R, and RR rates according to the key code, and this scaling can be controlled via four different levels as indicated in Figure 2.12. plop | Tt tI =e KS The attack, first decay, second decay, and release times are set by cach rate after it bas heen sciied. e® DIL: FIRST DECAY LEVEL Four data used to set 4 note. with a datum comprised of 4 bits as indicated in the figure below, When EG passes this level it automatically moves from first decay to second decay. With 2 3 dB resolution, each bit weighted as indicated in Figure 2.13. —~—+—_ DIL e TL: TOTAL LEVEL Four data used ta set a note, with a dstum compnsed of 7 bits as indicated in the figure below. The EG calculates the total level (expressed 35 attenuation volume) operated by the EG with respect to cach time and outputs this figure to the OP, controlling the timbre (modulation) as well as the volume. Minimum resolution ts 0.75 dB, with the bits weighted as indicated in Figure 2.14. a TL e AMS: AMPLITUDE MODULATION SENSITIVITY One datum used to sct a note, comprised of 2 bits as indicated in the figure below. The EG can carry out amplitude modulation using (8-bit) LFA data from the LFO. Maximum amplitude modulation can be set as indicated in Figure 2.13. Ci kkee) BxxT —+— ——_ ANS See nn sel PMS AMS EN DIR You can decide whether or not to modulate a particular slot by using the AMS-EN switch when carring out amplitude modulation. AMS data is set for every channel. 21.5 NOISE: Noise Generator When the NOISE control is on ENABLE, the 32nd slot is changed to the noise siot. The noise OS is controled by the NOISE GENERATOR clock externally and can be changed. Also. the envelope uses the 32nd slot for the envelope function, but at this point transformations are not logarithmic: the attack undergoes exponential change and the decay undergoes straight-line change. e NE; NOISE ENABLE NE is available if the (D>) bit is set at “1”, making the 32nd bit slot the noise slot. pps [o4ps[ Dp: [D4 ~ —— NE NFRQ e NFRQ: NOISE FREQUENCY The relation between NERQ and noise frequency is om (KHz) s =———— = 3579.545K YM2151 added clock fi f sorse (KHz) 2*(NFRQ) om = 3579.545KHz ( ock frequency) and can be changed throughout a range of from approximately 3.5 kHz to 111.9 KHz. At this point the noise period value is f worse (Hz) and can range from approximately 37.5 sec to 1.17 sec. 2.1.6 LFO: Low Frequency osc The LFO, which can control oscillation waves over 4 wide spectrum (from approximately 53 MHz to 0.008 Hz), selects one wave form from among several available, providing sound source frequency modulation and amplitude modulation. At this point, the output level carr be controlled with the signals used for the frequency modulation and amplitude modulation. e LFRQ: LOW FREQUENCY With the following 8 bits the oscillation frequency can be set as indicated in Figure 2.16. Bpqo[o pips )o4 ee LFRQ e W: WAVE FORM With the following 2 bits 4 different types of frequency (PM) and amplitude (AM) mo- dulation can be output. CT PixixTx [9 —_yn"” w cw) (PM) 1AM) r) a eee > “ST | KZZ 3 je[ — e080 —— { | (NOISE) = o e PMD/AMD: PHASE MODULATION DEPTH/AMPLITUDE MODULATION DEPTH Each datum is composed of 7 bits, with the data assigned to the first bit distinguishing hetween PMD and AMD. The PMD and AMD control the frequency modulation/amplitude modulation signal output level to a resolution of 1/128. As you may have guessed from the previous section on wave forms, the PMD-controlled item ts the 2's complement and the AMD-controlled item is binary. p+ [os[>-[p»[o:[DiIg ——_ | PMD of AMD F F=1..PMD F=0..AMD e TEST* (LFO RESET) The LFO output wave form is reset by entering "1" or “07 int the bits depicted in the diagram below from among the test signals when turning on the unit. The process will restart from the left edge of the previous wave form, providing synchronization once the vanous modulations are activated ¢ NOTE: This isa TEST-use signal; entering level “1” data in a place other than the designated bit will cause the device to into the test mode. [pipe[ps[D.[Ds[p:[p:14 u- \_LFo RESET 2.1.7 Timer The Timer actually consists of two different timers: & pre-set 10-bit Timer A and a pre-set 8-bit Timer B. Both timers can be started and stopped. When there is an overflow, these timers function to insert a flag into the data bus. Also, for Timer A there is a key-on function that is activated when there is an overflow, At this point it is necessary stop the interrupt, and there is a control for this as well e CLKAI/CLKA2 As indicated in the following diagram, these are composed of 2 words of 10 bits. With these, Timer A generates an overflow at the indicated period. fb-[o+[0:[0.[,[p:{.|p4 Ee CLKAI RX P bs MH CLKA2 MSB B NA 64*(1024-NA) Ta (ms) =—_, 4 (ms) Su (KHZ) O mu =3579.545KHz (YM2151 added clock frequency) e CLKB Composed of § bits as indicated in the following diagram. With these, Timer B generates an overflow at the indicated period. pbs» [b-D [D=!o:1Dg + ——__’’, CLKB Ts (ms)= 1024*(256-CLKB) ¢m (KHz) 9M =3879.54SKHz (YM2151 added clock frequency) e LOAD The start/stop action of timers A and Bis controlled with the 2 bits depicted in the following figure. Entering “1” starts the timers, while entering “0” stops them. Cpe TTT fg —— LOAD | Le Timer A start ——~ Timer B start e F RESET These 2 bits reset the flag register contents indicating that the timers mentioned previously have generated an overflow (*1" resets). xjoyot | jt —— F RESET | Le Timer A fag register reset Timer B flag register reset e IRQEN These 2 bits enable you to inhibit the flag register indicating that the Timers mentioned previously have gencrated an overflow. TT [pstost | — IRQ INH | L Timer A IRQ EN Timer B IRQ EN e CSM Entering “1” in this slot enables you to enter a key-on in all sound source slots when Timer A generates an overflow. o> 1 Tt tl CSM L Timer A Key-on can be given to ali slots of the sound generator. e IST: (READ MODE) The 2 bits to be discussed below indicate the status of the flag register. When the IRQ pin terminal reads “0”, one of the 2 flag registers will indicate that the overflow from either Timer A or Timer B and that the level status reads “yn. xX Di Fig. 2.2 Slot Designations Ss + = a | | ___Modaiatori | __‘Medulator? | Carer) | Came? SLGTNo| 1 23 4 S$ 6 7 8 | 9 10H) 12 tS t4 15 16 | 17 18 19 30 21 22 2s 26 | 25 26 27 28 29 30 31-32 PoHNo[t23ese7aliz2sese7e][r23aserairrzsasare When the NOISE control Is set at ENABLE, this slot changes t become the nowe slot Fig. 23 a) Fig. 2.3 b) Address Map (1), WRITE MODE Address Map (2); WRITE MODE Hex MSB LSB Hex M58 LSB —___ do oo baa Refer to o| TEST Fig. 2.3 b) 02 itd 03 te [ RE_[ FB [EONECTI os mh kc os a a 0% ve DX ems [>] e]o [rolssfaziis| salas ( suatipcy fos i [z[sfel sto |r| s| 9 |salsliziis[tafis: Fig 2.6 DETUNE(!) DT1=(D--Ds), OCT =(De-Ds), NOTE =(D:-D:) DTi=O GTielt OFl-2 OTi= | Bti=0 BYig=l OFie=2 OTL=s oct __nore | o-cent tue 0 9 | 0.000 | 0.000 | 5.025 110.036 | 0.000 [0,900 | 0.053 | 0.107 © 1. |0.c0@ | o.000| 4.228! 8.445 | 0,000 | 0.000 | 0.053 | 0.197 © 2 | 0.000] 9.000] 3.859) 7.110 | 9.000 | 0,000 | 0.053 | 0.207 © 3 | 0.000] 0.000] 2.993] 5.980 | 6.000 | 6.000 | 0.053 | 0.167 1 0 -— | o.a00 | 2.815] s.025] 5.028 | 0.000 | 0.083 | 0.107 | 0.107 1 ' 9.000 | 7.215] 4.228] 4.238 0.000 | 0.053 | 0.107 | Oo. Leo t 2 | 09.000 | 1.778] 3.555] 5.330 | 0.000 ] 0.053 | 0.107 | 0.140 t 3 0.000 | 1.496] 2.990| 4.483 0.000 | 0.053 | 0.107 | o.160 2 ° 0.000 | 1.2758] 2.515 | 5.025 0.900 | 0.053 | 0.107 | 0.213 2 1 | 9.000 | 1.057] 3.170] 4.225 | 0.000 | 0.083 | 0.140 | o. 223 2 2 | 0.000] 0.989 | 2.687 | 3.585 | 0.000 | 0.083 | 0.169 | 0-223 2 $3 | 0.000] 0.768] 2.2421 3.735 | 0.000 | 0.053 | 0.160 | 0. 287 3 © |o.000 | 1.258] 2.515] 5.143 | 0-000 | 0.107 | 0.213 | 0.247 3 i 0.000] 1.057] 2.114) 3.170 0,000 | 9.107 | 0.213 | 6.520 3 2 0.000 | 0.889] 1.778 | 2.447 0.006 | 9.107 |G. 213 | 0.320 3 3 |6.000] 0.7428] 1.849] 2.413 | 0.000] 0.107 | 0.267 | 0.373 4 ° 9.000 | 0.429] 1.572 | 2.515 0.000 | 0.107 | 0.267 | 0.427 ‘ : |0.000! 0.793] 5.385 | 2.124 | 0.000 | 0.140 | 0.329 | 0.427 4 2 0.000 | 0.467 | 1.334 | 2.001 0.000 | 0.140 | 0. T20 | 6.480 ‘ s |0.000] o.581 | 1.208] 1.84% | 0.000 | 0.140 | 0.273 | 0.533 5 Q 0.000 | 0.6277 | 1.258 | 1.729 0.000 | 0.213 | 0.427 | oO. S87 5 1 0.000] 0.529] 3.057] 1-586 | 0.000 | 0.213 | 0.427 | 0.640 5s 2 0,009 | 0.445] 1.001 | 1.445 0.000 | 0.213 | o.480 | 0.493 5 3 | 0.000] 0.487 | 0.935] 1.508 | 0.000 | 0.257 | 0.533 | 0. 747 4 ° ©.000 | 6.393 | 0,845 | 1.258 0.000 | 0.247 | 0.587 | 0.853 4 ! 0.000 | 0.397 | 0.793 | 1.123 0.MoO 9.520 | 0.840 0.907 6 2 0.000 | 0.334 | O. 723 | 1.056 0.W@00 | 0.320 | 6.493 | 1.013 & 3. |0.009] 0.327 | 0.654] 0.955 | 0.000 | 0.373 | 0.787 | 1.087 7 © }0.000 | 0.395] o.e29 | 0.885 | 0.000 | 0.427 | o.a83 | 1.173 ? ‘ 0.000 |] 0. 744] 0,542 | 5.645 0.000 | 0.427 | 0.907 | 1.177 7 2 0.060 | 0.250 | 0.523 | 0.665 0.000 | 0,480 | 1.013 [1.1573 ? 3 0.000 | 0.234 | 0.447 | 0.885 0,000 | 0.533 | t.0a7 | 1.273 Fig. 2.7 DETUNE(2) [enews Te Titty (cent) a =7al | +9501 Fig. 2.8 PHASE MODULATION SENSITIVITY weeps [Te t+ tape tets tet | MOD MAX (erat) re Les [2 | sm | = [210] sam | =r Fig 2.9 CONNECTION = (FS) cOoN=8 5 & Ta HO OHM r-@ out P F P CON=1 = bi HE 7 ouT P ia ? con: eae +@-Le ort P A P ; - ; 7 . [M2 + -@ cON=4 = 5a} Ct) $— OUT ? P se }F- r P o) se > P ; Fig. 2.10 SELF FEED BACK LEVEL Tazmpolelij2j:lsisiel?| See branabaed «ls | Fig 2.11 ATTACK, DECAY TIME © In Figure 2.12, the 6 bits of the RATE after they have undergone key scaling are divided in two parts and are thus expressed as the first 4 bits and the last 2 bits. © The “(10% ~90%)” and “(90% ~ 10%)” tables express the amount of time it takes for the level to reach 90% from 10% and from 90% to 10%. a“ " - . ® The “(96 dB~O dB)” and “(0 dB~96 dB)” tables express the amount of time it takes for the level to reach 100% from 0% and from 100% to 0%. * NOTE: = These tables assume $n = 3.6 MHz. oo EG ATTACL TIME oe: woe Oy DELAY TIME mee wee ES ATTACK TIME m+ ene £5 SELAT TIME ooo BATE oSET (108-805) MATE GSES (POT-IOT) MATE GAEL 19RCE-OS8) ARTE SIC 1063-T50R) wa 0.90 iss 1.3 133 0.00 nz 2.73 32 9.27 2 i. wz 9.31 37 73 at 0.3? iat 138 ist on 183 ®.73 wo 0.2? 130 7 13¢ o.sT 1° 73 wt eu as Is ies 0.64 ie 7.8 “ez 7 a2 1.at wer 0.73 m2 ov “4 0.47 wi 2.38 as 0.78 45 40,7 m0 wm so 2.77 we 1.12 we 13.43 i322 0.42 33 1.1 22 1.22 133 3.08 is: 9.93 uz 3.63 13a 1.42 122 13% st oe? 3 is ist 1.71 134 3.33 0 1.09 we 3.48 ie 2.43 ise 23.98 3 1.33 27 7m 23 272 122 10.73 33 1 ir? ca] 2? ca yz 73-20 ira} rs at 2.70 we zat we 43.03 12° 249 120 10.55 120 i. ire st.0 “ut 2.3 us 12.43 ns 449 “ee $1.20 we et "uz 14,33 uz a7 uz 7.73 ine be Ws iret mwa $73 in £2,390 me an ne zi. ue 77 10 | 107,62 43 hw 1a ae ws £0 192 © 4TT.e0 wt 3.81 wo? 20 1? 9.28 2 18t.se we 7.0% wr 24.82 wr 13.4 ior 172.09 oe an wo 12 100 13.57 oe 86 -355.33 : 0 es ove 71 vw v3 748.00 *: it ‘2 SA 7? 3. Te #2 37.00 er 1.9" 1 or.83 1 raed + yaaat *. m4? ve Bric te u.ts vO = 673.38 7 ih eed e2 4? ar 33.60 83 01 a2 33,72 #2 118.03 az au.33 a2 f74.00 a7 iPod a1 119.2. e; av.a3 1 ots. 1° Ta eo 14.08 e000 8 ao (241.05 i) ce] 73 1a. 3 Ter 3 so? 7: 45.25 7? iz.41 7? Sl. 72 «1148,02 1 2 7: wes rs ar 740 LIT7.a2 T° av? y7e MBL TO) | (te 70 17I83 s3 na eo: Tw 13> 12 #2 1%28.03 at 92.29 2 494.28 2 taa.iz? & > Tisb.04 ot 2. ot 537.08 at ives ot psa. eO 6139.73 ec ates? ao) | 38.17 4a 3444.05 330 ois Pe as tad 33 mM. 52 35.00 327 hw 32 «rea 32 «6532.03 32 4s72.07 3:10 22H 38 atau 21 Fae 31 3370.09 30 067. 30 pte so owes 30 sebait 43 31V.e8 3 im 43 wae 83 rarz.2 az oomne 42 (mo Oe ey a2 tee ot ne et m8.7 «1 797,33 en 1072.07 Co etal 40° «Tes. 60 | (Waar @0 L774,71 22 a7. 330 Fest 23 1553.08 33 1s7ea.ce 32 «748 22 Fi" 32 136.7 32 1ecss.78 35 aFS.88 34 fehaes ta saM.78 Da rreas.ve 30 «ihtt.a? 39 3570.38 3O «(1993.57 39 pTS2.48 230 127".51 23 oe 73 2M PP me itt a] 22 14ez%e 22 «req 2: sS.o 2? Blas Pe ee tal iets Ti avi2. ti Tena I 4053.28 3e rs12 2@ stet.22 zo 34.7? 20 St104.03 ¢3 0 psxv.07 3 wien 3 «eu 43 2297.99 12) 285.33 12 seedy 12 ss.70 2 Fara 2 Foet.e8 tt sezs.7e 's ase ty Sae.77 tc “aD 1 TET. 1o 73.03 to rmronn et temirr os emir os emir o> meinity a> termite o2 vermin oI lwiettr Os weynite ot tntimere OL pete eb tertnere @u tercurte oo betnity O° tetmity o° betnirr oo Im initt Fig. 2.12 KEY SCALING (*) RATEs that have undergone key scaling have doubled the input rate (R) and added the values listed in the table below (Rxs). (*#*) AR, DIR, and D2R use the values entered in the register for input rate (R). However, for RR a calculation of double the values entered in the register plus | has been used for the input rate (R). RATE =2*R+ Rxs When calculation results yield a value greater than 63, assume all RATEs = 63. 3 R: Input rates = Rxs: The values listed in the following table, found by using the KEY CODE and KS. C However, the KEY CODE used here refers to the KC’ of the last 2 detached bits of a note, as indicated in the following diagram. xc" . [*s KS KS KS —_—__, xe"|o 41 2 3 >> — thee DX]. 2. 9]. 0,|> ~~] ' | oo oO 4 —_— 7/9 #94 1 2 oct Note 3[@ @ 4 1 Figure 2.13 Bits and weighting of the First slots DECAY LEVEL e}a 1 7 6 DIL tTlo @ 3 ? a #}io 2 4 8 |D-|D./D,/D.. nitro sou 24} 12) € | 3 5 ' ; ‘ 3 * The decay Jevel value of 48 elroy 7 te dB will be added if D> through iyi 3 7 15 or ula a8 0 Ds are ALL “!"=45 dB. w)2 4 8 1 5 3 ‘ : , Figure 2.14 Bits and weighting of TOTAL wlio s w LEVEL wii © ou TL nl2osuo 2 —_--20.> pl2 su yp Bl? soup [b.[o,[o.[5,[,10,[] 313 8 13 28 6/3 |islors m}3 6 1 2 = } ; i 2 Figure 215 AMPLITUDE MODULATION wlso7 48 30 SENSITIVITY ui}? 7 i 3 | AMS | AM MOD (MAX) ¢ HE 474123 4B 95.625 6B Fig 2.16 LOW FREQ. OSC cara FRED. tata FRED. mara FPES. CATA Freep. oan im EI) Ow ET) Ot) (“tn) ve my oxy. tar? wr 3.479 7 80.2087 = 9.0525 fe 31.2008 Mm 3.2004 Te 3.200 x Om ee ee ie ee ed) FC 47.7821 = 2.%7TO 7c s1m7 = ear e 46,0887 = 2.e3 7? 0. 1me 2 0.0013 fa 48,378 = LIT mm” 681TH ~~ GOS re 47. e713 we .earo ye Other 7 «0.0104 re 40.7848 = 63.5003 ts 8 ¢.1800 Mm «(6.0100 ‘? 3y.5578 wP tau 7 «6¢6.15s 7 (OL fe 37.5509 & 1.4? ye 1487 % 8 ¢.00n7 a wae es 2.7403 TS «0.1400 s 0.cees re 34.1572 * 21 4 698.133 4 0.com 72 3.43 BS 2.000 TS «O.nsa? = v.cerr 72 3.773 2 1.7 Tr «4O.1200 32 (Ocrs ft 2V.cree Ly 31s ”» Ons ms 6.0078 ro 27.3000 wm t.%eF mH @.4007 Ww 0.0087 = 6.4302 ~~ 1.1.3 - 205 7 «.0005 fc 3.07 a 4. e002 4€ 9.1000 = 0.wes cD 34, %a¥3 = t.4ee aD (0. u87 ™m 0.0000 it 2.8%, << 1.4935 “x 6.0833 = 0.coe t 71.06 = 64,6407 se 69.0% 7 0.0ct tA 22.17 -~ |. = = 0.0aa7 A OL Cee ef 31.5tSe8 av 8.3333 a?) (0,caaa 7 0.008 t# 30.4873 +. es 0.ca0 a 6.06 cr «t.eme ay ot. Ziae oF 60.07a7 7 ¢.one ts 18.7733 > 2.1733 + 8 ¢,0733 Ze «(6.08 3 i.9s> Ss 1.025 63 «0, c?00 Ts (One CF 17, 06ae a 5.068 o4 0. Cth i” 6.05847 t} 34.3352 al 4.0134 430 «(0.c83) 23 (O.ahee £2 15.52t7) AQ O.4Ht bk ESD Te ti 44.9003 aL (0, f088 41 (4. OGe7 Th 8.0 & tian - 6.58 + «69,0553 2 O.68s3 ow it.2m85 ww o.fe * 037 rd oe 1S.a01S . G.e00) = Oe $E€ 0.0931 ee 1b. srer vO O.7754 2 4.0683 2 6(0L.0bDD cc 4h. temo = @.fee = 0.0087 1¢ 9,0078 oo 4h.32tt ” 0.TOI SF «OO. OD 1») «60,0078 4 11.0848 * o.aFl4 «¢.04m3 1A (6,027 i.eeTe FF Ol eeeyT OF OOP OIF (0.0078 2a 10.2412 a «@ ¢.0400 18 =@.0025 ov vere v= =O.ette = 0m 1%) 60.0074 oo 6. carT ve 0.3087 Se 600.038? 16 0.0025 33 «6.910 TS O.5001 Ss «om is «O.wOR? =“ 68.545 “4 «698.5554 4 66.03 14 0.0021 st «68.407. 1 «(0.5007 S (O.0n7 13 «9.0030 ct? 7.1m v2 (0.4808 a ¢,0%o iz 66.00)" 0 O28? 1 «860.45te Hu «60. 1) 0.0018 sO 8. B74 oO «69.43ar so «¢.el87 10 «cor? F «8h 8etse 6 OST OF Ome x +607 = 08,4000 = 0.0% <= 0.0 co of are = 0.im? 45 9.0E 0 88. nots cc (3.974 - one < 6.055 cc o.0018 ce 3.7007 -e 0.3000 “s 63.0003 oe o.core cA «S.9473 A 0.347 A 8,027 ~ 06,0084 ce 3.5507 wv 3s “6 60.0208 * 6.0013 ce 5.1708 a8 69, 33700 *. t.°m0 @ 9.cmort 7 «or wy aT a7 8 0ITE 97) «9.0017 co 4.407 & o.2714 0.010 0.00 c3 4.4805 = 6.7900 > «69.0178 os a.00 co 4.071 - 6.2687 44 OL OLS oo 6.0018 4.03 © o7 a +t.0198 3 9.0019 3.404 2 (0, 7800 42 0.0150 oF 0.c00F ch «63.0771 S| «O.7mT 41 «@.e142 Oo 68.c00T co ct OH © G.01d OO 0.0008 Fig 2.17 SO, 91, SH1, SH2: TIMING “+ UUL ol — — ee ee CCN CCC CC Ce ed CCC — _.—————————’ Nn $c gene RIGHT LEFT | SHI SH2 2.2 Pin Wiring The YM2151 uses a 24-lead dual in-line package. The terminal signals are indicated in the foliowing diagram. Top View vuGNDi cf} l4p em IRQ Gg? 2D e ita 43 RE Vom + $v) Ao a up so we Os 2B st RD G6 ynzys; 19 SH GS = ied ko oT a ds I7D pe ct: Gg 16 Ds pe =6to ISP Da VawGNDI OI Kb Db) bp gn ib m 2.2.1 Pin Functions e Do~D:: Address/Data Bus (input/output high impedance} A muluplex bus that can be used for both address and data; inputs an 8-bit parallel signal between an external device and the internal register. e AQ: Address/Data Select (Input) When AO=“0Q", the Do~ D: signal is processes as an address signal; when AQ=“1", the De~ D> signal is processed as data. e WR: White (Input) When there is a write signal, the signals in the bus can be entered. e® RD: Read (Input) When there is a read signal, the internal signals can be read out wia the bes e CS: Chip Select (Input) When there is a chip select signal, the AQ, WR, and RD signais become operative and the De~ D> bus data can be entered in the internal register or internal data can be read out on the Do~ D> bus. ¢ IC- Initial clear (Input) Internal registers and circuits are initialized when this terminal reads “0”. ¢ iRQ: Interrupt request (Output: Open drain) If either of the 2 types of timer counters begins a carry out, this signal will read out a “O" level and request an interrupt from the CPU. Then, with the CPU's readout of the data, the unit will determine from which timer the interrupt request has been made and will process the interrupt. e CTi, CT2: Controj 1, Control 2 (Output) This is the terminal that is used to control an external device and should read “0” level when at initial condition. e SO: Senal Output (Output) Takes the tone signal divided between the 2 left and night channels, outputs it as serial data, and sends it to the YM3012 D/A converter specially developed for use with the YM2151. e SHI, SH2: Sample and hold Used to pick up the serial data supplied to the YM3012 D/A converter, and for sampling hoid after analog conversion. © 9M: System clock (Input) Inputs the clock 9M that drives the YM2151, which is intermally broken down to and used at 1/2 the frequency. The 9M is the reference for the tone signal. @ $1: Clock for D/A (Output) This clock drives the D/A and operates at the same frequency as the clock inside the YM2151, Also, when the $1 level shifts from “1” to “0”, the iRQ. CTI, CT2, TO. SHI, SH2. and SO signals all change e Voo: Power Supply (Input) Normally supplies at + SV. e ss: Grand (Input) Conects the system grand. 3. DEVICE SPECIFICATION 3.1 Maximum Ratings 3.2 Electrical Characteristics [MIN] [TYP] [MAX] 1) operating supply voltage (Vss to Voo) 4.75 5.25 v 2) clock [6M] Voltage leve! “9” —0.3 0.8 v Voltage level “y" 2.0 Vop v Rise time (Fig.3-1) Tr 50 ns Fall time (Fig-3-1) Ti 50 ns ON time (Fig.3-1) Tox 100 ns Frequency FoM 3.6 3.58 4.0 MHz Input capacitance CoM 10 pF Fig. 3-1 PPHASE DATA ax om /) “oO AY \ _———: [MIN] [TYP] [MAX] 3) ALL INPUT Voltage level “0” ~0.3 0.8 v Voltage level “1” 2.0 Voo V 4) ALL OUTPUT Voltage leve! “0” —0.3 04 V Voltage level “1” 2.4 Von V 5) [A0, WR, RD, MJ] Input Leak Current (Fig.3-5) {at 25°C Vi=0-Von) -10 10 pA 6) [IC CS) Input Current (Fig.3-6) li¢ (at Voo=5V) 16 60 pA 7) {IRQ*, CT1, CT2, DO-D7, SH1, SH2, SO, o1] Load Current (Fig.3-7) Ip (at Vio=0.4V) 21 mA * OPEN DRAIN 8) WRITE/READ TIMING (Fig.3-2a. Fig.3-2b) Address Set-up Time (Tas) 10 ns Address Haid Time (Tan) 10 ns CS WRITE WIDTH (Tew) 100 ns WR WRITE WIDTH (Twn) 100 ns WRITE DATA Set-up Time (Tos) 50 ns WRITE DATA Hold Time (Tonw) 10 ns READ DATA Access Time (Tacc) 180 ons READ DATA Hold Time (Totin) 10 ns [MIN] [TYP] [MAX] 9) [¢1] Rise time (Fig.3-3) Tn 130s ns Fall time (Fig.3-3) Tih 120 sons Load capacitance CL (Fig-3-7) 100 pF 10) (TRQ, CT1, CT2, SO, SHI, SH2] Rise time (Fig.3-3) Tr 250 sons Fall time (Fig.3-3) Tf 250—sons Load capacitance CL (Fig.3-7) 100 opF 11) POWER Supply current Inn 120 mA 12) POWER Dispation Pp (st Vop=5.25V) 60 mW Fig 3-2a WRITE TIMING Ae Tas TAL fay WR Tww Duta (Da~ Br) T Ti NOTE: Tos and Tous use as a reference either CS or WR, whichever has attained High Level. Fig. -2b READ TIMING Ae t. T: cs RD Tace Tcmne DATA _ < . iDe~ Ds) NOTE: Tace uses as a reference either CS or RD, whichever is the last to attain Low . Level. Tonr uses as a reference either CS or RD, whichever has attained High Level. Fig. 3-3 eM ona — — > oo ov +5 —_—_——— Th Fig. 3-4 “ el osv - OUTPUT (eo SO. SHI. SHE J an Fig. 3-5 Fig. +6 | | vou=$ 3 + INPUT - Ta = he vi ] * Fig. 3-7 | Voo=5V j Re Output 1p 1 vin pit Fig. 4.1 SYSTEM BLOCK DIAGRAM CLOCK GEN croc CLOCK MICRO COMPUTER| A.D But OPM pata _| DAC micro processor['Cowrnors| {¥M?150 cvM3oi2y HOLD ANALOG AUDIO | AMPLIFIER T Fig. 4.2 DAC INTERFACE D-GND +5V voo A-GND voo 2 \ 16 eee ME oats 4 mit Y OPM 50 Pat al 3a DAC 1) (YM2i51) TC] saz | yy stsoi2) | fro aur “Vv SH! ee " uid LnGND| z 9 RS RCH OUTPUT Cy=4 uF -v — ca Cae toe? = PS L CH OUTFUT ee Ci.cz=33000F =| oe | INITIAL CLEAR nis ben OPAMP 4555 « 2 -v ~~ -15V0 “ae) ND O AGND O-—$—— -10~ -18¥ © 4. INTERFACING Figure 4.1 is a block diagram of the basic configuration of the unit, including the micro- processor or microcomputer, DA converter, and speakers, in addition to the YM2151. As it is possible that you may alter the data if you operate this device without synchronizing it with the microprocessor or microcomputer, you can drive the unit by using a separate clock generator to achieve the required sound levels. With the YM2151 and the DAC configurated as shown in Figure 4.2, you can have both teft and right, 2-channel output. O INDEX ~/% - i= O | 1.40 | LL 32.0 MAX . 1824 TP Bik: 0.24 |! ~T » 936 j= 0.5 = it ss 2.03 | 27.94 TYP T¥P ies MAX