YAMAHKL~I I N0. 84 - 13 1 YM2203 FM Operator Type-N(OPN) •OUTLINE OPN (FM OPERA TOR TYPE-N) is a new type synthesizer which can produce all sounds required owing to the FM sound source system. It is provided with a built-in register which can store sound information and be connected easily with a microprocessor or microcomputer. It also comprises a square wave sound source different from the sound source according to the FM system and a noise generator. I •FEATURES *The FM system sound source produce three different sounds simultaneously. *One of the above three sounds can be set to the mode by which specific sound effects and composite sine wave sound are synthesized. *Two programmable timers are incorporated. *8 bits general purpose input/output ports of two system are incorporated. *Three square wave sounds and white noise can be produced in addition to the FM system sounds. *Clock divider is built in so that wide operating frequency range is obtained. *Input and output are compatible with TTL. *Nch-Si gate MOS LSI is used . *Single phase power source of 5 V is used . *This is compatible with software ofYM2149 and AY-3-8910 and 8912 produced by GI. YM2203 1J :)I D '/ CATALOG NO.: LSl-2122032 1989 . 11 YM2203 •TERMINAL DIAGRAM GND DI 2 - 40 39 DO r/> S D2 3 38 1,M D3 4 37 AO D4 5 36 RD D5 6 35 WR D6 7 34 cs D7 8 33 1087 IOA7 9 32 1086 IOA6 10 31 1085 IOA5 I I 30 1084 IOA4 12 29 1083 IOA3 13 28 1082 IOA2 14 27 1081 IOAI 15 26 1080 IOAO 16 25 IRQ AGND 17 24 TC ANALOG CHANNEL C 18 23 OP-0 ANALOG CHANNEL 8 19 22 SH ANALOG CHANNEL A 20 21 V oo •BLOCK DIAGRAM AO CS RD WR ¢ M ¢ S SH IRQ ~ " DATA BUS TIMING r-1 CONTROL CONTROL TIMER J J EG OP ACC OP-0 -- ~ ~ SQUARE WAVE '-+- SOUND SOURSE, ANALOG CHANNEL A PG B NOISE GENERA- c \ REGISTER ARRAY I TOR 1 I 1 INPUT / OUTPUT PORT CONTROL ,,_, ....... ,,_, ........ 2 YM2203 • DESCRIPTION OF TERMINAL FUNCTION 1. M This is the master clock of the OPN. The FM sound source and square wave ~und source operate, based on this clock . The maximum input frequency up to 4.2MHz can be input by using a built-in 1/ 6 divider. 2. S ·SH These are the clock (s) and the synchronous signal (SH) . They drive a D/ A converter which converts digital output of the FM sound source into analog output. 3. D0 through D1 These 8-bit bi-directional bus exchange the data and address between the OPN and the micro- processor. 4. CS · RD · WR · A 0 These signals control bi-directional bus of D0 through D 7 • CS RD WR Ao 0 1 0 0 Writes address into the register of the OPN. 0 1 0 1 Writes the resister content into the OPN. 0 0 1 0 Reads the OPN status. 0 0 1 1 Reads the content of the OPN register. 1 x x x D0 through D 7 bus line become high impedance. * Read enable register addresses 00 througe OF (16 bits). 5. IRQ This is an interrupt signal sent from two timers . It can be masked by the program. 6. IC This signal resets the system at low level. All the con tent of register array become "O" . 7. OP-0 This outputs the FM modulated audio signal as 13-bit serial data. Accordingly, an external D/ A converter is necessary. 8. Analog channel A, Band C They are analog square wave audio signals. They can be mixed by setting resistance because of source follower. 9. IOA 0 through IOA 7 , IOB 0 through 108 7 They are two sets of 8-bit input/output ports. Each terminal incorporates pull up resistance . 10.AGND This is analog ground terminal for the D/ A converter which is built in the square wave sound source section . 11. Yoo This is a power terminal of+ 5 V. 12. GND This is a ground terminal. 3 YM2203 • DESCRIPTION OF FUNCTIONS The OPN is controlled based on the data written into the register. Accordingly, a microprocessor is free from the sound control operation except sending the data to the register. The FM sound source determines a sound by the combination (modulation) of four sin waves. All the modulation systems such as feedback FM, simple FM and multiple FM are possible. In respect to the square wave sound source, this is compatible with YM2149 (SSG) and AY-3- 8910 and 8912 (PSG .GI) in the use of the software. Therefore , function of the OPN can be improved by the exchange with the above LSI. Each block of the OPN functions as follows . *Envelope generator (EG): Determines the modulation index of the envelope and modulatioo wave of the FM sound source. *Phase genera tor (PG): Determines the sin wave phase at each time step of the FM sound source. *Operator (OP): Calculates the E sin e value on the basis of the amplitude from the envelope generator and the phase from the phase generator. *Accumulator (ACC): Accumulates and adds operator output of each channel to mix each sound of the FM sound source and matches with the D/ A converter. *Square wave sound source/ noise generator: Generates three different frequency square waves and pseudo- white noise. It can also mix noise and square wave. As for sound volume , it is possible to select either fixed sound volume (program- med value) or 10 pattern envelope producing mode. In this block, one D/ A converter is provided for each sound. *Input/output port control: These are the general-purpose input /output ports to gets interface with external equipment. *Timer: Two types of timers are provided. Register content and address map -tt The OPN register is provided with the internal address as shown in the address map . The content of each register (address) is as follows. (!) $ 00 - $ 05 Generates frequency of the square wave sound source. (2) $ 06 Generates frequency of noise source. (3) $ 07 Controls the input and output of the input and output ports and the output of musical sound and noise. (4) $ 08 - $ OA Controls sound volume. It is possible to select the fixed sound volume system (program - mable) or the variable sound volume system. (5) $O B - $ OC Controls the envelope cycle in the variable sound volume sytem. (6) $ OD Specifies the envelope shape in the variable sound volume system. (7) $OE - $OF 8 bit general-purpose input and output ports. (8) $ 21 Test information, always set to " O". (9) $ 24 - $ 26 Gives the set time of Timers A and B. 4 YM2203 (10) $ 27 Controls the operation of Timers A and B, and sets the third channel mode of the FM sound source. (11) $ 2D - $ 2F Specifies the dividing number of the input clock. The dividing numbers 2 through 6 are for the FM sound source, and the numbers 1 through 4 are for square wave sound source. (12) $ 30 - $ 3E Controls Detune and Multiple. This is used to set tones. This controls the relationship between the fundamental wave and harmonic. (13) $ 40 - $ 4E Gives the total level. This information becomes the modulation index of the sound volume and modulation wave of the modulated wave. (14) $50-$5E Key -Scale controls the rate of change of A • D · Sand R according to the keyboard information. Attack rate gives the rate of change of the envelope at the time of attack . (15) $ 60 - $ 6E Decay Rate shows the rate of change of the envelope at the time of decay. (16) $70-$7E Sustain Rate shows the rate of change of the envelope at the time of sustain. (17) $ 80 - $SE Sustain level shows the level of the shift from decay to sustain. Release rate shows the rate of change of the envelope at the time of release. (18) $ 90 - $ 9E Generates the envelope including the repeat pattern similar to that of square wave sound source. (19) $AO - $ A6 Gives key-code (F-number) of each channel. (20) $ A8 - $ AE Gives the key-code (F-number) of three channels when set to the special mode . (21) $BO - $ 82 Gives the modulation system (connection) of the FM modulation and the modulation factor of the feedback FM (self-feedback). n FM system In the FM system, musical sounds are synthesized by controlling various high harmonic waves by use of the frequency modulation. The basic equation of the FM system is as follows. F =A sin (wCt +I sin wMt) - (1) Where A is output amplitude, I is modulation index, and wC and wM are angular frequencies of carrier and modulator, respectively. This equation can also be expressed as follows. F =A [J 0 (I) sin wCt + J 1 (I) (sin (wC + wM)t - sin (wC - wM)t) + J 2 (I) (sin (wC + 2wM)t - sin (wC - 2wM)t) +. . . . . . ] - (2) Where, Jn (I) is the first class Bessel function of nth. As shown in the above equation, the FM system contains various harmonics and can control them. The OPN provides the multiple FM modulation and feedback FM modulation shown in (3) and (4) in addition to the above FM modulation to produce every possible sound. F =A sin [wCt + 11 sin (wM 1 t + 12 sin wM 2 t)] - (3) F =A sin (wCt + /3F) - (4) 5 YM2203 * WRITE DATA ADDRESS COMMENT 21 TEST LSI TEST DATA -------- I 24 TIMER-A B most significant bits of TIMER-A 2S rIMER 2 least significant bits of TIMER-A -A 26 TIMER-B TIMER-B DATA 27 MODE RESET ENABLE LOAD TIMER-A/B control and 3 channel mode B A BA BA 2B SLOT CH Key-ON/OFF 2D Set pre-scaler. 2E Selection of the dividing numbers of 1/ 3 and 1 /6. 2F Set a divider to the dividing number of 1/ 2. 30 3E 40 I/ DT MULTI Detune / Multiple (Addresses at 33, 37 and 3B are empty.) 4E so I/ TL Total Level (Addresses at 43, 4 7 and 4B are empty.) SE KS ~ AR Key Scale / Attack Rate (Addresses at 53, S7 and SB are empty.) 60 Decay Rate DR (Addresses at 63, 67 and 68 are empty.) 6E 70 Sustain Rate SR (Addresses at 73, 77 and 7B are empty.) 7E BO Sustain Level / Release Rate SL RR (Addresses at B3, B7 and BB are empty.) BE 0 90 SSG-Type Envelop Control SSG-EG (Addresses at 93, 97 and 9B are empty.) 9E AO Al F-Num. 1 A2 F-Numbers / BLOCK L A4 AS BLOCK F-Num. 2 A6 AB A9 3CH * F-Num . 1 AA 3CH-3slot AC AD AE Vl 3CH * BLOCK 3CH * F-Num. 2 F-Numbers / BLOCK L BO Bl FB CONNECT Self-Feedback / Connection B2 6 YM2203 *READ I WRITE DATA ADDRESS COMMENT 00 Fine Tune Channel-A Tone Period 01 Coarse Tune 02 03 --------- Fine Tune Coarse Tune Channel-B Tone Period 04 05 ------- f'ine Tune Cha nnel-C Tone Deriod ------- Coarse Tune 06 Period Control Noise Period 07 IN/OUT !OB IOA 1 /Noise /To ne /ENABLE ~ 08 M Level Channel-A Amplitude 09 M Level Channel-B Amplitude OA M Level Channel-C Amplitude OB f'ine Tune Envelop Period oc Coarse Tune OD ~ c ATT ALT THLD T Envelop Shape/Cycle OE 1/0 Port-A 1/ 0 Port Date OF 1/0 Port-B *READ DATA ADDRESS COMMENT xx Status 7 YM2203 • ELECTRICAL CHARACTERISTICS l. Absolute Maximum Rating ITEM RATING UNIT Terminal voltage - 0.3 - 7.0 v Ambient operating temperature 0-70 oc Storage temperature - 50 - 125 "c 2. Recommended Operation Conditions ITEM SYMBOL MIN. STD. MAX. UNIT VDD 4.75 5.0 5 .25 v Supply voltage Vss 0 0 0 v 3. DC Characteristics ITEM SYMBOL CONDITIONS MIN. STD. MAX. UNIT Input high level voltage Total input VIH 2 .0 VDD v Input low level voltage Total input VIL - 0.3 0.8 v Input leakage current M, WR, RD, Ao IL Vin= 0- 5V - 10 10 µA Three-State (off) input Do - D1 I TSL Vin = 0- 5V - 10 10 µA current Output higl level voltage VOH1 IOH1 = 0.4mA 2.4 v Output except IRQ VOH2 IOM 2 = 40µA 3.3 v Output low level voltage Total output VOL IOL = 2mA 0.4 v - Output leakage current (off) IRQ IOL VOH = 0- 5V - 10 10 µA ANALOG-CHA, Max. Sound volume , Analog output voltage VOA 0 .95 1.35 Vpp B, C no mixing Power current IDD 120 mA IOA 0 - IOA 7 , Pull-up resistance IOB 0 - IOB1 , RPU 60 600 kn IC , CS Input capacitance Total input C1 10 pF f = lMHz Output capacitance Total output Co 10 pF • AC CHARACTERISTICS 4. AC Characteristics ITEM SYMBOL CONDITIONS MIN . STD. MAX. UNIT Pre-scaler fun ction Input clock frequency M TR (Fig. A-1) 50 ns Input clock breaking time M TF (Fig. A-1) 50 ns 8 YM2203 Access to FM sound source ITEM SYMBOL CONDITIONS MIN. STD. MAX. UNIT Address set-up time Ao TAS (Figs. A-2 and A-3) 10 ns Address hold time Ao TAH (Figs. A-2 and A-3) 10 ns Chip select write width cs Tcsw (Fig. A-2) 200 ns Chip select read width cs TCSR (Fig. A-3) 250 ns Write pulse write width WR Tww (Fig. A-2) 200 ns Write data set-up time D 0 - D1 Twos (Fig. A-2 ) 100 ns Write data hold time Do -D1 TWDH (Fig. A-3 ) 20 ns Read pulse width RD TRW (Fig. A-3) 250 ns CL= lOOpF Read data access time Do - D1 TACC 250 ns (Fig. A-3) Read data hold time Do - D1 TRDH (Fig. A-3) 10 ns CL = lOOpF s TOR1 200 ns (Fig. A-4) Output rise time CL = 100 pF OP- 0, SH TOR2 300 ns (Fig. A-5) CL= lOOpF s TOF 1 200 ns (Fig. A-4) Output rise time CL = lOOpF OP- 0 , SH TOF2 300 ns (Fig. A-5) Access to SSG sound sourse ITEM SYMBOL CONDITIONS MIN. STD. MAX. UNIT Address set-up time Ao TSAS (Figs. A-7 and A-8) 10 ns Address hold time Ao TSAH (Figs. A-7 and A-8) 10 ns Chip select writh width cs TSCSW (Fig. A-7) 250 ns Chip select read width cs TSCSR (Fig. A-8) 400 ns Write pulse write width WR TSWW (Fig. A-7) 250 ns Write data set-up time Do - D1 TSWDS (Fig. A-7) 0 ns Write data hold time Do - D1 TSWDH (Fig. A-7) 20 ns Read pulse width RD TSRW (Fig. A-8) 400 ns CL= lOOpF Read data access time Do -D 1 TSACC 400 ns (Fig. A-8) Read data hold time D 0 -D1 TSRDH (Fig. A-8) 10 ns ITEM SYMBOL CONDITIONS MIN . STD. MAX. UNIT Reset pulse width l IC TICW (Fig. A-9 ) 72* cycle * Depends on the dividing number of prescaler. Pulse width= (dividing number ) x 12 9 YM2203 • TIMING DIAGRAM (Timing is set on the basis of the values: Vrn = 2.0V and VIL = 0.8V.) Fig. A-1 Clock timing AO ~-T-A_s __ ~ ..,...---------T-cs-w-:_-:_-:_-:_-:_-:-T-A-" Note. Tcsw , Tww and TWDH are WR determined based on the time when either Do ~ o 7---------"""<. CS or WR goes to the high level. Fig. A-2 FM section write timing Note. T AAC is determined based cs on the time when either - - CS or RD goes to the low level. T CSR' and TRW TRDH are determined based on the time when either CS or RD goes to the 0 0~ 07-----------; high level. Fig. A-3 FM section read timing 10 YM2203 ¢M ¢ s_ ____.7 Fig. A-4-a ¢Mand ¢ s Fig. A-4-b ¢Mand ¢S (dividing numbers: 2 and 3) (dividing number: 6) SH OP - 0 Fig. A-5 ¢Mand SH · OP-0 ¢M Dividing number 6 ¢s OP -0 I \ I \ I ( SH ) ¢s Dividing number 3 Dividing number 2 Fig. A-6 Timing of ¢s and OP-0/CH at each dividing number 11 YM2203 ~-T-s.-s-i.-,. -_-_-_-_-T_scs_w- -_-_-_- ~--T-,."~ Note. Ao --1- TSWDS is determined based on the time when either CS or WR goes to the low level. Tscw , Tsww and T swoH w are determined based on the time when either CS --={Tswos Do ~ D7 - - or WR goes to the High level. ----------~ Fig. 6-7 SSG section write timing Ao Note. TSACC is determined based on the time when either CS or RD goes to the low level. TSCSR ' TSRW and TSRDH are determined based on the time when Do ~ D7-------------- either CS or RD goes to the High level. Fig. A-8 SSG section read timing M n ;;;o; (Dividing number) x 12 Fig. A-9 Reset pulse 12 YM2203 •OUTER DIMENSION DRAWING 0<2MAX • rh Q ~ o~~ I 47 MAX J 1~~ .. 0 5 48 26 ~~ .. 2 54 TYP Ill l.O C'J 0361 .. I 5 24 I8 2 I .. I 13 The specifications of this product are subject to improvement changes without prior notice. -YAMAHA CORPORATION- --------AGENCY-------- - YAMAHA CORPORATION- - Address inquiries to: Semi-conductor Sales Department • Head Office 203, Matsunokijima, Toyooka-mura, Iwata-gun, Shizuoka-ken, 438-01 Electronic Equipment business section Tel. 0539-62-4918 Fax. 0539-62-5054 • Tokyo Office 2-17-11. Takanawa, Minato-ku , Tokyo, 108 Tel. 03-5488-5431 Fax. 03-5 488 -5088 • 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. 100 Century Center Court , San Jose, CA95 l I 2 Tel. 408-467-2300 Fax. 408-437-8791 14 Copying prohibited © 1987 YAMAHA CORPORATION 0.3K-ll 02 C Printed in Japan 85 .11