YAMAHA pu Gv) Y8s950 APPLICATION MANUAL (msxcAUDIO) YAMAHA 7 Scanned by Albert Beevendorp, 2001 Converted to PDF by HansO, 2001 TABLE OF CONTENTS 1. INTRODUCTION Pee ew 1-1. Outline of MSX AUDIO 1-2. Features 1-3. Outline of FM Sound Generation 1-4. Outline of ADPCM Voice Analysis/Synthesis OUTLINE OF MSX-AUDIO FEATURES 2-1. Major Features HNH 2 2. Pin Layout 2-3. Description of Terminal Funct ions 2-4. Data bus Control oe 2-5. Channels and Siots Whom 2-6. Block Diagram 2-7. Address Map D ESCRIPTION OF FUNCTIONS 3° 1. Registers 14 3-- 2. Phase Generator 29 3- 3. Envelope Generator 29 3- 4. Operator and Accumulator 29 3- 5. ADPCM Voice Analysis/Synthesis 3- 6. AD/DA Conversion 33 3 - 7. External -Memory Contro} 33 3- 8. Keyboard IN/OUTL 35 wo~9. Status Data and Interrupt Requests 35 INTERFACE 36 4-1. Audio Output Juterface 37 4-2. -Exlernal-Memory [tnterface 38 4 3. Keyboard Interitace 39 4-4. Microcomputer Interface 39 GENERATION OF INSTRUMENTAL SOUNDS $-1. Basic [deas for Sound Generation 5-2. Basic Ways of Sound Generation 5-3. Example of Sound Generation 8-4. Generation of Khythmic Sounds ELECTRICAI. CHARACTERISTICS 44 6-1. Absolute Maximum Rating 44 6-2. Recommended Operating Congitions 44 6.3. DC Characteristics 44 6-4. AC Characteristics 45 TIMING CHART 46 PACKAGE DIMENSIONS $0 I. INTRODUCTION I-1 Outline of MSX-AUDIO The MSX-AUDIO is a sound generator LSI developed as optional sound source for the MSX2 personal computer. To create realistic, exciting sounds, the MSX-AUDIO incorporates an FM sound generator, similar to that previously used in Yamaha Electones and the DX-7 synthesizer. This product also has ADPCM voice analysis/synthesis functions in addition to the composite sinusoidal modeling function of conventional FM sound generators. This new function allows simplified sound data processing. Either of the AD/DA converters built in the analysis/synthesis circuit can be used independently to process even analog data. The MSX-AUDIO is equipped with input/output ports for a keyboard interface, as well as general-purpose input/output ports. Consequently, one MSX-AUDIO unit allows you to perform a variety of data processing for sound production. I-2. Features * Realistic sound due to FM sound generator. The FM sound generator is compatible with the YM3526. * Selection of two sound-generation modes: simultaneous sounding of nine tones or six melodies and five rhythms (compatible with the Character and Pattern Telephone Access Information Network system and Teletex) * The vibrato and AM oscillators are built in. * 4-bit ADPCM voice analysis/synthesis circuits are built-in. * ADIDA converters are built in. * External 256-Kbytes memory (ROM or RAM) can be connected (as ADPCM data storage or auxi- liary CPU storage) * 8-bit input/output ports are built in for keyboard scanning. * Built-in general-purpose 4-bit input/output ports * Two built-in general-purpose timers * TTL compatible input/output * Si-gate CMOS LSI * 5V single power supply I-3. Outline of FM Sound Generator The FM (frequency modulation) sound generation uses higher harmonics, produced during signal modula- tion, to compose sounds. This sound generation method only requires a relatively simple circuit, although can generate waveforms with higher harmonics, including non-harmonic components. And because the modulation indexes correspond much more naturally to the spectrum distribution of higher harmonics, the FM sound generator can be used to generate a variety of sounds -- from acoustic instrument sounds to electronic instrument sounds. The frequency modulation can be expressed by using four parameters as follows: F =Asin (wet +I sin wmt) (1) Here, “A” indicates the output amplitude, “I” indicates the modulation index, and ‘“we" and “wm” indicate the circular frequencies of the carrier wave and modulator, respectively. This expression (1) can be transformed to: F=A(Jo(I)sin act +Ji(1) | sin(wc+wm)t—sin(we-wm)t | +J2(1){sin(we+2am)t+sin(we—2wm)t+--+) (2) In expression (2), “Jn (I)" indicates the first Bessel function of the nth degree. As shown by the expression, each harmonic amplitude is given by the Bessel function for corresponding amplitude index. Therefore, note that the frequency modulation with expression (1) is extremely useful to generate specific instru- ment sound and effect notes. However, this type of frequency modulation does not create a uniform distribution of higher harmonics, and is not suitable for generating string instrument sound. A new frequency modulation method “feedback FM" has been developed to overcome this drawback. This is indicated by the expression below. F = Asin(wet+ @F) (3) “RB” indicates the feedback rate. This feedback FM generates a saw-tooth wave for a higher harmonic spectrum so that it is also suited for string sounds. The above-mentioned FM sound generation requires the following three functional blocks: a. Phase generator (PG) to generate wt b. IEnvelope generator (EG) to obtain amplitude A and modulation index [ as time functions c. Sine table (sin) The FM sound generation can be diagramed as in Fig. I-1 by combining the above three-block components in one unit. When this unit (operator cell:OP) design is used, FM sound generation can be performed by specifying the frequency and EG parameters in each unit and creating data for the combined. Nm I-4. Outline of ADPCM Voice Analysis/Synthesis The MSX-AUDIO has two different voice data processing functions: adaptive differential pulse code modulation (ADPCM), which specifies voice analysis/synthesis and synthesizes realistic sound, and composite sinusoidal modeling, which requires complicated processing (using a computer) for data analysis, but less memory capacity for synthesis. ADPCM voice analysis/ synthesis, which is the major feature of the MSX-AUDIO along with the FM sound generator, is outlined as follows: ADPCM is a voice analysis/synthesis method in which the difference between actual data and expected data is encoded using a quantization width (adaptive quantization width) that changes according to waveform variation. This method prevents the synthesized voice from deterioration and reduces the number of required data bits. The encoding and decoding processes are described as follows: (a) Voice analysis The MSX-AUDIO converts 8-bit PCM data into 4-bit ADPCM data. (1) Voice data of every sampling rate (1.8 KHz-16 KHz) is converted into 8-bit PCM data (X1.n). (2) The resulting PCM data (X1,n) is multiplied by 256 for conversion into 16-bit data, (Xn), and is then compared with the expected data (Xn) to obtain a difference (dn). (3) When the difference is a positive value. ADPCM data MSBI(L4) is specified as “0”. when negative, as “1 At the same time, the absolute value (dnl) of the difference is caluculated. (4) Then, the remaining three bits are determined by the relationship between the absolute value (|dni) and quantization width (4 n) as shown in Table I-1. Table I-1 ADPCM codes 1. Condition La La L2 L, & 1 dn2 0 | dn< 0 0 0 0 dat ! { i ¥343N8 0/) AYOd LAdLNO 440d LAANI UGA 2-6. Block Diagram (Fig) 1 j L ‘ol~ 901 £1NO~ °1NO *NI~ ONT 2-7. Address Map 1. Address D: Ds Ds Os Ds Dz Di Do 2. Address 0: Ds Ds De Ds Or Di Do 00 00 01 TEST — CONTROL—~ 02 TIMER | 03 TIMER 2 04 [ie] dex nde ES |a8S | /|staisr 05 Key Board iN VIB EG—TYD MULT! AM KSR 06 Key Board OUT 07 [Sith rec acmineer or ast 08 cSM Nort sam Oa | eax | ROM 09 START ADO (L) KSL TL OA START ADD (4) 08 STOP ADD (L) oc STOP ADD (H) oo PRESCALE (L) AR DR OF PRESCALE (H) OF ADPCM -— DATA 10 DELTA—N CL) i DELTA—N (H) t2 EG-- CTRL AO F -Number( t) A8 15 DAC DATA CH) BO Biock re Pam KON BB mu ii: wT og T am | VIB SD | TOM TC | HH 18 10--CTRL BD DEP|DEP 8 om) 19 17 -DATA FB c C8 1A PCM ~ DATA — STATUS— 3. * Accessible register [int | 11 | re | eos) Bar | ESM 3. DESCRIPTION OF FUNCTIONS The MSX-AUDIO is controlled by the data written in the register array. In other words, the register array contents specify the MSX-AUDIO functions, including instrumental sound (e.g.. piano and violin) generation, voice analysis/synthesis, and external-memory control. In this manual, the register functions are explained in detail using simple descriptions of other functional blocks. The FM sound generation. however, is described in Part 5, GENERATION OF INSTRUMENTAL SOUND. 3-1. Registers As shown by the address map, registers have a capacity of about 1K bits. These 1k bits area are divided. according to function, into bytes to which addresses are assigned. When data is to be stored in the MSX-AUDIO, the address must be specified before the data is entered. If the same address is successively repeated, there will be no need to the repeat address setting for subsequent data entry. Note that the following register addresses marked with “*" indicate that the register is set to “O" at initialization (initial clear: IC = ‘0°). 3-1-1 TEST: ADDRESS [$01] This address is used only for factory LSI testing. It is normally set to “0° 3-1-2. TIMER There are two timers: timer-1 with 80 us resolution and timer-2 with 320 us resolution. Both timers can perform start, stop, and flag operations. If a flag is set, terminal TRQ will become low and a timer interrupt will be posted to the processor. (1) TIMER-1: ADDRESS [$02] * Timer-1 is an 8-bit presettable counter. When the counter overflows, the timer-1 flag is set and preset values are loaded. Timer-] can also control composite sinusoidal modeling. When a counter overflow occurs. all slots are set to Key-ON (sounding) and, soon after that, are reset to Key-OFF. This operation simplifies composite sinusoidal modeling. $02 (0, O. 0, 0. 0; 0, 0, 0. Tov (ms) = (256—N,) # 0.08 @oM =3.6MHz Ni =D, @2'+D,® 2h 400 +0,#2+D, (2) TIMER-2: ADDRESS [$03] * Similar to timer-1, timer-2 is an 8-bit presettable counter, but has a resolution of 320 us (timer-1, 80 us). $03 iz D., Ds De Dy Dr D Do | Tov (ms) = (256—-N,) #0.32 @#M=3.6MHz N2=D, #2740, 82> te: +0. #2+0, 3-1-3. FLAG CONTROL: ADDRESS [$04] This register is used to control start. stop, and flag operations for timers-1/2 and to set/reset flags for ADPCM and external memory control. At initialization, bits D3 and D4 are set to “1” and other bits are set to $04 | 0; De Ds Ds D2 | D2| Di Do| ~QO || | te L | a } ‘Go _ a = w» bh 8 ad 3!oO : xo =n | i2# ; « A xHn exnn x | | ed < < < < |e = S = = DO (ST1): This bit controls the start/stop operations of timer-1. When set to ‘1: timer-1 is loaded with the preset data and starts counting. When set to ‘O", timer-1 is ineffective. D1 (ST2): This bit controls timer-2 as DO (ST1) controls timer-1. D3 (MASKBUFRDY): When this bit is set to “1") data write/read requests are masked during data transfer between the processor and ADPCM or external storage. D4(MASKEDS): This bit is used to mask the flag indicating the end of read/write of ADPCM or external storage, or the end of AD conversion. D5 (MASKT2): When this bit is set to 1") timer-2 flag is set to 0" regardless of the timer-2 state. D6 (MASKT1): This bit masks timer-i flag. D7 (IRQESET): Each flag in the MSX-AUDIO is set to “1” when a corresponding event occurrs, and TRQ then becomes “0” This bit is used to reset the above flag/IRQ status. When this bit is set to “1”, all flags are reset to “0” If only specified flags need to be reset, set the corresponding MASK bit to “1”: Note: A D7 bit setting of “1” is reset to “0” after all flags have been reset. When D7 is set to ‘1’, the DO--D6 settings are ignored. 3-1-4. KEYBOARD IN: ADDRESS [$05] This is the read-only address for input ports INO--IN7. INO-IN7 correspond to data bus lines D0--D7, respectively. $05 D> De Os OD: Os De Dr Do, IN IN: IN INi IN INz Na INo 3-1-5. KEYBOARD OUT: ADDRESS [$06] * This is the address for output ports OUTO-OUT7. When set to “l") the output is low level. (@ sink current = 2mA, output level < 0.4 V). the current (voltage 0.4 V or less). OUTO-OUT7 correspond to data bus lines D0--D7, respectively. $06 0: ODO. DOs Di O: De Di Do - — e Ee - ~ i= Ee => > > > > > 2 > oO o o OQ o ) D o — 15 ~- 3-1-6. STARTYREC/MEM DATA/REPEATISP-OFF RESET: ADDRESS [$07] * This address is used to control the start of ADPCM voice analysis/synthesis and the setting for external memory access. $07 Dr Ds Ds Di Da} De Diy] Do > & S. § Ps ty '£— g&€ Be SO && @ & 2nd DO (RESET): When this bit is set to “1" during ADPCM voice synthesis using external memory as a data source, the ADPCM synthesis circuit and externalmemory controller are reset to the initial status. In this case, the REPEAT bit must be set to “0°! The RESET bit can be used when the ADPCM circuit or external-memory controller are no longer controlled. D3 (SP-OFF): This bit is connected to terminal SP-OFF. When D3 is set to “1"\ SP-OFF is set to “1” This bit is used to protect the speaker during ADPCM analysis or AD conversion. D4 (REPEAT): During ADPCM voice synthesis using external memory, this bitis set to “1” to enable repeated data synthesis in the same area (from start address to stop address). D5 (MEMORY DATA): This bit is set to “]" when external memory should be accessed. D6 (REC): This bit is set to “1" for ADPCM voice analysis or data entry from the processor to external memory. D7 (START): This bit is set to “1” for ADPCM voice analysis/synthesis. The start timing differs accord- ing to the data storage location (processor or external memory). If the data is stored in the processor, ADPCM processing will start with the reading/writing of address $OF. On the other hand, if the data is in external memory, the processing will start when the START bit is set to 1"! Consequently, when the data is in external memory, it is necessary to arrange all other conditions before setting the START bit to ‘1": To reset START bit to 0", set SART bit to ‘O" first and reset all other bits. 3-1-7. CSM/KEYBOARD : SPLITISAMPLE/DA « AD/64K/ROM: ADDRESS [$08] * This address is used to specify the composite sinusoidal modeling mode, AD/DA conversion, and type of external memory. | | | | | | | SEL NOTE » DO (ROM): This bit is used to specify the type of external memory (“0" = RAM and “1” = ROM). D1 (64K): This bit is used to specify the type of external memory ("0" = 256-Kbits DRAM and “1” = 64-Kbits DRAM). When this bit is set to ‘‘1') the output from address A8 is ignored. For ROM, this bit is set to 0" D2 (DA/AD): This bit is used in combination with SAMPLE below. When this bit is set to “1°. MO output sends the data specified with $15--$17. This bit is set to "0" for AD conversion (with SAMPLE set to “1") or for MUSIC output (with SAMPLE set to “0'). D3 (SAMPLE): This bit is used to enable the timer for AD/DA conversion. AD conversion is started by setting this bit to “1" D6 (NOTESEL): This bit is used to specify the separating points for keyboard splits in one octave. When this bit is set to “0". the separating points are specified by the second bits from F- Number MSB; when this bit is set to “0"! the separating points are specified by the F-Number MSB. Tables below show the setting conditions. (Also refer to “F-Number/BLOCK") D.="0" 0 bof oz 1 3 4 4 | 8 / 6 | 7 | Octave 0 2 2 5 4 | 8 8 7 | Block data Poy / 7 | | F-Num-MSB 0 ee ee ee ee ee 0, 1 | 0 | 1 | F-Num-2nd 0 1.2 3.4 5) 6) 71 ela win 2 | 13 | 14] 15 Keyboard split No. D=*1’ 9 2 3 4; 5 | 6 7 | Octave 0 2 3 0, # | § | 6 7 || Blockdata oot ot ot ot tots ost 0} 4 jo} 1 | F-Num-Mse * ee ee ee ells * * | F-Num-2nd 0 Doz ala sigit a simon ia \4 | 15 | Keyboard split No. * DON'T CARE D7 (CSM): This bit is set to "1" for the composite sinusoidal modeling mode. For the setting, all channels must be set to Key-OFF. 3-1-8 START ADDRESS L/H: ADDRESS [809. $0A] These addresses specify the start address of external memory to be accessed (by ADPCM or CPU) with 16-bit data: L ($09) and H ($0A). The specification differs a little according to memory type (ROM or RAM). $09 0: D. oO DD DD: DD SOA (D: De Ds Di Da Dz Dr Du| I 4 START ADDRESS (L) | START ADDRESS (H) * For RAM (a) 64 K DRAM CAS ADDRESS RAS ADDRESS Ax Ar A » As Ar A: Az Ay Au As Ar Aw Av Ar A: Ae Ar An a ae ee ' | —~$0A- / -$09— D; Du D: * D: Dz Di Dv Dr DO. Di Di * D: D Dw’0 0 0 0 O * D4 of $0A and D3 of $09 must be ‘0" (b) 256 K DRAM BANK CAS ADDRESS ti” RAS ADDRESS 222) 2" Ak Ar Ay As Ay Ay Ay Al An Ae Ar As As Ay Ae Ay Ay Aa8 —$0A- ~ | =$09- an Oo D: De Di Di D: Db DO De | D: D. D: Di D: Dr DY Dei0 0 0 0 0 * For ROM BANK CAS ADDRESS RAS ADDRESS tS op 2) | 2") Ax Ar As As AeAS ALM AL Re An AeA Au Ar AsA. RR are ary ASA: ArAe AvAY Ae.A ~$0A— | -$09- [e o# & DF D:D: D Dv 0: D. Ds Di D: D: DY Dwi 0 0 0 0 0 * D5--D7 of $0A must be equivalent to those of $0C. 3-1-9. STOP ADDRESS L/H: ADDRESS [$0B, $0C] These addresses specify the stop address of external memory to be accessed (by ADPCM or CPU) with 16-bit data: L ($0B) and ($0C). The specification differs a little according to memory type (ROM or RAM). $B id: D. OD: D: De Dz STOP ADDRESS (L) | STOP ADDRESS (H) * For RAM (a) 64 K DRAM BANK CAS ADDRESS | RAS ADDRESS 2") Ay As An Ax At At At Ar Ao; Aw Ar As As An Ay As Ar Ao D2 2h -0C- . -$0B- Prot a D: Ds D: * Dr Dz 91 Do| Dr Ds Ds Di * De Di De| * D4 of $0C and D3 of $0B must be “0”: (b) 256 K DRAM BANK CAS ADDRESS RAS ADDRESS Ay As An As At Av Az At Au) Ax Ar As AS AS Ax Az Ar Av- (22 2! 2%) "= $0C- | -$0B- Pod bE D: De Ds Di Dr Dz Di Ov, Dr De Ds Di Ds Dz Di Do) * For ROM 7 1 BANK CAS ADDRESS | RAS ADDRESS t At Az Ar Ao 220 21 2") Aw Ar Aw As At Ax Az Ar Ant Ax Az Aw As As _=$0C- | -$0B- | Porototo x * »* OD: Dar Dz D: DoD: Ds Ds Di Dr D2 Di Do i * D5-D7 of $OC must be equivalent to those of $0A. 3-1-10. PRESCALE L/H: ADDRESS [80D, $0E} analysis) and These addresses are used to specify the sampling rate for AD conversion (including ADPCM The maximum rate is 16 KHz; the DA conversion. The sampling rate is given by the expression below. minimum, 1.8 KHz. fsample = 3.6 MHz/NPRE (@ om = 3.6 MHz) NPRE: prescale value 1 || Dz D: Di, | D2 Di Do: $0D 0: Dx D: Di: Dx De D Dn! $0E De Ds | PRESCALE | PRESCALE (L) | (H) | 1 — 3.1-11. ADPCM-DATA: ADDRESS [SOF} This register is used to transmit data for ADPCM analysis/synthesis with the processor. It is also used as a buffer when external memory is accessed by the processor. SOF | D: De Os Ds Ds De Di Do ADPCM-DATA (Note) Data structure for ADPCM analysis/synthesis OD: Ds Di D:/O: Db Dd py | AS shown by the table to the left, one byte contains two ADPCM data items. If the four high-order bits are the nth nth data n+ith data data items, the four low-order bits will be the n+1th data item. tr ba Le Li} bls ba be by 3-1-12. DELTA-N L/H: ADDRESS {$10, $11] These addresses are used to specify the factor used for linear interpolation at 50 kHz of the sampling intervals during ADPCM voice synthesis. This factor is also used as the sampling rate for synthesis; therefore, no prescale data is used for synthesis. ON=k#2!'6, = — k= Gaeta) {3.6MHz / 3.6MHz f sample ) (@ om _= 3.6 MHz) VOICE». ; = VOICE. + (Noffn + in *k) * (VOICE.: 1 ~ VOICE.) OSNoff,+in*¥k<1 Noffa 2% 2' 2? Ln - When D4--D7 are all set to “1" the sustain level is 93 dB. - Decay time setting of the release rate is same the decay time. Table 3-6 Attack and decay time according to RATE The RATE data in the table shows the RATE after key scale The RATE data is divided into four high- order bits (RM} and two loworder bits (RL), and is expressed as “RM-RL'. RATE = RM*4 + RL eee EG ATTACK TIME vow wee EG DECAY TIME «x0 *** EG ATTACK TIME ea wee EG DECAY TIME «8 RATE ms RATE ms RATE ins RATE me ce 10% - 30x) (@ OaB ~ 96aB >) is: 6.00 is = o.51 1S 0.00 15 3 2.40 15 2 Oo. 190 15 2 o.S4 15 2 9. 00 15 2 2. 40 1 O.a0 151 0.81 isl 0. OO 131 2.40 £0 0.90 iS 0 o.St 15 0 a. OO 15.0 2.40 14 3 O.1t 14 3 0.58 14 2 o, 20 16 3 2.74 14 2 a.1t 14 2 0.69 1a 2 0. 24 14 2 3.2 lal 6. 14 lad 0B: 144 o. 20 14 1 3.84 140 0.13 140 1.0% 140 0. 28 14 0 4,80 13 3 Oo. 22 13 3 1.15 aed 0.42 1s 3 5.48 132 Oo. 26 iz 2 1.25 1s 2 O. 46 13 2 6.40 131 Ott 131 1.62 11 Oo. 56 1Z 1 7.68 120 0.27 120 2.02 iF o 0.70 13.0 9.60 12 3 0, 43 12 3 2.52 =5 0. 80 12 5 10, 96 122 0.43 22 2.68 12 2 0.32 12 2 12.80 Io t O61 33 25 121 1.12 124 15.36 129 O.73 20 4.02 1 0 1.40 12 6 19, 20 Litt 3 oO. as 11 3 6.62 113 1, 56 11 3 21.92 O37 1 > sca 11 2 1.84 112 25. 56 tit 1.17 114 &.42 ot 2-2 bod 30. £8 11.0 1.45 110 8.02 1g 2. 76 110 38. 36 in 3 1.70 10 3 3.24 10S Sie 10 5 45.84 19 2 1.34 10 2 10. 76 mee =. 68 10-2 1 10 St. ie 6t.z 10 4 2.26 10 1 12. 84 101 4.40 ma 2.30 10 0 16.04 roo =. Se 10.90 76.72 32 3.23 37 18.48 3 &. <4 35 87.68 3 = 87 3 Mee 92 7.76 32 102. 246 31 4.51 31 25.68 3} 8.60 91 122.72 300 5.73 20 =. 08 30 11.04 a0 153. 44 at 6.78 as 76.36 8 5 12,48 B83 175.36 ei 7.74 a2 45.04 & =< 14.72 a: 204. 44 48 Bt a.02 at 51.76 81 17.60 ai 245. a0 11.58 go 64.16 89 ==. 08 ao 306. 88 77 12.57 73 72,82 73 a4. 3€ 73 350.72 72 18.49 72 a6. 08 72 23.46 72 408. 96 71 18.05 71 102.72 71 5. 20 71 430, 88 740 at. 17 70 128.72 70 44.16 790 613.76 5 27.14 6 147.84 & = 43.32 63 701, 44 —& 2 zo. 98 & 2 172.16 & - $8.68 62 817. 92 6 t 36.10 61 205. 44 an 70, 40 61 981.76 Bo 46. 74 60 256.64 g° 88. 32 & 0 1227.52 5 54.27 55 235.68 == 33. 88 53 1402.88 52 61.35 52 144.32 2 = 117.76 52 1635.84 51 72.13 5 a10. 88 2} 140. 80 Si 1963. 52 50 32.67 so £17.28 50 176.64 so 2455.04 at i 108. oe 3054 a3 A £31.76 waa ce 43 a2 193.6852 2IS. 43 2805.76 a2 3271.68 an 1446.78 ad 821.76 41 281.60 a1 3927.04 ag 165. 74 60 1078.56 4° ~S2. =8 40 4910.08 3 217.09 23 1182.72 53 393.56 33 5611.52 to 247.81 2: 1277.28 > 71.04 2 2 6543. 56 =21 288. 70.6377 zoan 1642.52 moe 12 3} 30 $6. 706. 20 56 3 30 7854.0816 9820. 23 474.18 23 2765. 44 23 798. 72 23 11223.06 > > 695.62 2 ~7s6. 56 ze 342. 08 22 13086. 72 >} 577.54 24 7287, 04 21 1126.40 24 15708. 16 z0 741.78 20 4106, 24 zo 1413.12 20 19640. 32 12 868. 25 17 4770, 8B 1 3 1537.44 13 22646. 08 1 391.27 12 5503.12 1 2 1984, 16 12 26173. 44 toa 1155.07 $3 574.08 tot z252. 80 14 31416.32 1a 14982. 75 1g 8212.48 19 2B26. 2 10 39260. 64 (Note) There is no change in the envelope when the RATE is “0° 3-1-2). BLOCK/F-NUMBER: ADDRESS [$A0-~-$B8] * pitch and scale. An F-Number is specified by both $A* and SB*. These addresses are used to specify S$A0~SA8 D> & OD, OO, ODO, De F-Number 25 24 2? 2? 2' 2° $B0~$88 Dp, O,; 0 o oO. D;, D,{} 0, 0B, BLOCK F-Num zo-: Octave data F’ : Increment for one octave MUL : Multiplier 98 Similar to expressions (1) and (2), the increment (F) is specified by using 10-bit data. The F-Number and Block are expressed as follows: F =(fmus* 2"“fsam) 7 2°! @MUL= 1 F : F-Number data b : Block data Table 3-7-1 F-Number (1) Frequency $Be: SA* Scale (4oet) F-Number [> p. D: Ds Ds D. DD, D, OD:z ce 277.2 363 01.01 121021011 D 293.7 385 0 1:1 0000001 Ds 311.1 408 0 1.1 0 0 1 1 0 0 0 E 329.6 432 0 1:1 01 1 00 0 0 F 349.2 458 01:1 100 21 01 0 Fs 370.0 485 0 1°1 1 10 0 1 0 121 G 392.0 514 10.0 00 0001 0 GF 415.3 544 10:0 01 00 0 0 0 A 440.0 577 100 100000 1 Af 466.2 611 1 0°'0 110001 1 B 493.9 647 1 0°1 00003111 i Cc 523.3 686 1 0 1 01 01 1 1 «0 Table 3-7-2 F-Number (2) Frequen $Be: SA* Scale la soct) F-Number TDD, D: D. D, D, D, D: DD, G 392.0 514 10.0 00 00 0 1 0 Gs 415.3 544 1 0:0 0 1 00 0 0 0 A 440.0 577 1 0:0 10 000 0 1 As 466.2 él! 1 0°'0 110001 1 B 493.9 647 1 0'1 0 0 0 0 1 21 21 Cc 523.3 686 1 0:1 01 021 21 1 0 cs 554.4 727 10/1 10210321211 D 587.3 770 11:0 0000010 Dt 622.2 816 1 1:0 0 1 1 00 0 0 E 659.3 864 11°01 1 0 00 0 0 F 698.5 916 1 1/1 0 0 1 0 1 0 0 Fe | 740.0 970 1 1-1 1 0 0 1 0 1 «0 3-1-22. FEEDBACK/CONNECTION: ADDRESS [$C0--8C8] * These addresses are used to specify the degree of self-feedback frequency modulation. $CO~$C8 [p, Dd, Ds Ds]Ds Dy Ds || Do} Feed back | 27. 2) 2°| Rk n of the two slots. This bit is set to “0” po (CONNECTION): This bit is used to specify the connectio for the FM mode, but set to “1” to connect the slots in parallel for composite sinusoidal modeling. "0% P, “1% D1--D3 (FEEDBACK): These bits are used to specify the degree of Feedback frequency modulation. Table IJI-8 Degree of modulation 0 I 2 3 4 5 6 7 Modulation) Cra 2 x 2x Ax de 0 x tig | x 78 Ry x 3-1-23 AMVIB-DEPTH/RHYTHM:ADDRESS [SBD] * This address is used to specify the depth of amplitude modulation (AM) and vibrato (VIB), rhythm, and ON/OFF of rhythmic sounds. $BD [5,]0.] Ds. 0. Ds Dr D, De A|Y Mj} R > o|1F®iyiea i § z E D 7:2 © & a FPR | HS H H : ° DO~D5 (RHYTHM): When D5 = “1": the MSX-AUDIO is set for the rhythmic sound mode by using channels 7-9 (see page 9) for rhythmic sounds. Consequently, the sounding of melodies is limited to six tones. Bits DO-D4 are used to specify rhythmic sound ON/OFF. As a result, to the rhythmic Key-ON registers $B6-$B8 must be set to “0”. The slots 13-18 correspond sounds (shown in Table 3-9). It is necessary to input other data items, including RATE data, to correspond to each rhythmic sound. Table I1I-9 Rhythm slots Instrument Slot 8D 13.16 $d 17 TOM 15 TOP*CYM 18 HH 14 D6 (VIB-DEPTH): This bit is used to select one of the two vibrato depths: 14 cents (D6 = “1") and 7 cents (D6 = ‘0’). D7 (AM-DEPTH): This bit is used to select one of the two amplitude-modulation depths: 4.8 dB (D7 = “1') and 1 dB (D7 = “0’). 3-2. Phase Generator (PG) The phase generator (PG) provides phase data by accumulating the increment for the desired frequency in units of time. The increment is calculated using the frequency data (F-N umber, Block, and Multiplier) sent from the corresponding registers. The PG also includes a vibrato oscillator to produce a vibrato effect by using the oscillation and frequency data. 3-3. Envelope Generator (EG) The envelope generator (EG) is controlled by attack, decay, and release rates, and the sustain and total levels, to set the shifting of tone color and sound volume. It provides a dynamic range of 96 dB (at a resolution of 0.1875 dB). EG data is expressed by logarithmic values for the amount of decay. Figure 3-2 shows a typical waveform characterized by the exponential shifting at attack time and the linear shifting of other portions. The waveform shows the shifting from attack to decay when the level reaches ‘ dB. and the shifting from decay to sustain when the level decays to the sustain level. The release starts at Key-OFF. Sound effects are produced by adding the specified data for total level, level key scale. and amplitude modulation to EG data, which can be used to change the envelope waveform. SUSTAIN LEVEL RELEASE 96dB DECAY | SUSTAIN | Fig. 3-2 Envelope waveform 3-4. Operator (OP) and Accumulator (ACC) The operator circuit performs FM operations. It calculates sine values from phase data sent from the phase generator, and multiplies the calculation result by using envelope generator output. The operation result is returned to the operator input (when the data is a modulated wave) or the operation result is sent to the accumulator (when the data is for instrumental sounds). This data transfer is controlled by feedback/connection data. The accumulator collects operator output for each channel and converts the accumulated result into offset binary data with a 10-bit virtual part (including sine bits) and a 3-bit exponent part. Finally. the accumulator outputs the data from the LSB as shown in 29 -- SH | L__ DON'T $ DON'T MO aar D, D: D, De Dy Oy Or OD gS $2 $3 CARE N CARE Fig. 3-3 Output timing Internal OPL data MO output data Sign 15 1413 12 11:10 $ 8 76 5 43 21 S, S$: SSgn 9 8 765 43 21 (foxx xx xxx xf] rot tlilx x x x x x x x proj) x x x x x x x xf] — [1 1 oli jx x x x x x x x x| [jo oli xxxxxxx xp i} —~ [1 o tjiixxx xxx x x] (Too oj) xxxxxxxxp os] — (0 ofiix x xxx x x x x} Too oof; xxxxxxxxPsj] > (oritiixxxx xxx! [Jo oo 0 oj; xxxxxxxxNjV > [ot ofiixx xxx xxx x] [loo xxi} x > [oo o0000;xxxxxx x x xx ijij x x x x] fol: 1 0tyxxxxx«x xxx xi} — jo 0 ijolx x x x x x x x] fol.) 11 tjoxxxx xxx xj —- [01 olojx xxx xx x x] it xii 1joxxxxxx = fo 1 tjolx x x x x x x x] [0 (4 oj) ijoxxxxxxx xp] > | 0 O;0 |xxX xX xX xX| x x x fol; ijoxxxx xxx xf] 7 | 0 xX x xX xX xX xX x X| 1/0| folrloxxxxx xx xp oo] = 1 1 0|0 x x x x x x| x x|x [oloxxxxxxxxl | > [rt iiojixx xx xx x x! Fig. 3-4 Internal and output data 3-5. ADPCM Voice Analysis/Synthesis The protocols used in ADPCM voice analysis/synthesis between the register is as follows. (1) Voice analysis (AUDIO—CPU) | Address| Data RW Comment ‘ Initialization | $04 $00 Ww Each flag is enabled. $04 $80 Ww Each flag is reset. $07 $Ca w ADPCM analysis is enabled and the speaker is OFF. | $08 $00 w $0D $C2 Ww Sampling rate is set to 8 kHz (NPRE = 450). | SOE $01 Ww | ~ Analysis starts. | SOF R Start with dummy read | * Analysis | $oF R When BUF.RDY flag is “1" $OF is read, the analysis data is | ($04 $80 WwW) stored, and the flag is reset. When BUFD.RDY flag is “0 wait., > Analysis ends. $07 $48 Ww ADPCM analysis is completed. $07 $00 Ww Address $ 07 is reset. (2) Voice synthesis (CPU —»AUDIO) Address; Data RW Comment Initialization $04 $00 Ww Each flag is enabled. $04 $80 w Each flag is reset. $07 $80 Ww ADPCM synthesis is enabled. $08 $00 Ww $10 $F6 w Sampling rate is set to 8 kHz (A N = 10486). $11 $28 Ww $12 a Ww Output level is specified. | Synthesis starts. SOF $x x Ww Start by writing ADPCM data to SOF '’ Synthesis SOF SAA Ww When BUF RDY flag is “1": synthesis data is written to $0F ($04 $80 Ww) and the flag is reset. When flag is “0": wait. Synthesis ends. $07 $00 Ww ADPCM synthesis is completed. (3) Voice analysis (AUDIO—EXT.MEMORY) ‘Address; Data RW Comment “Initialization $04 $08 Ww Only BUF. RDY flag is masked. $04 $80 WwW Each flag is reset. $07 $68 WwW ADPCM analysis is enabled. $08 $02 '$00 Ww RAM type is specified. $09 $x x Ww Start address in memory SOA $x x Ww $0B $2.4 WwW Stop address in memory $0C $4.4. Ww $0D $E} Ww Sampling rate is set to 16 kHz (NPRE = 225). $0E $00 Ww * Analysis starts. $07 $E8 Ww Start when D7 ($07) becomes “1”: “ Analysis $07 waits till end of synthesis is posted (i.e. till EOS flag becomes ‘1’). © Analysis ends. $07 $68 Ww ADPC® analysis is completed. $07 $00 Ww Address $07 is reset. _ (4) Voice synthesis (EXT.MEMORY — AUDIO) |Address| Data R'W Comment _ “Initialization $04 $08 Ww Only BUF-RDY flag is masked. $04 $80 w Each flag is reset. $07. =|: $20'$30 Ww ADPCM synthesis is enabled. $08 $00. $01,$02 Ww Memory type is specified. $09 $x x Ww Start address in memory SOA $x x W $0B Tare Ww Stop address in memory $0C $rA WwW $10 $EC WwW Sampling rate is set to 16 kHz (A N = 20972). $11 $51 Ww $12 $ Ww Output level is set. “ Synthesis starts. $07 $A0 ‘$B0 Ww Start when D7 ($07) becomes “1” Synthesis $07 waits till end of synthesis is posted (ie. till EOS flag becomes ‘')"). $07 $A0 Ww Repeat mode is released. $07 $Al Ww Synthesis is forcibly interrupted. Synthesis ends. | $07 $20 Ww ADPCM synthesis is completed. | $07 $00 W | Address $07 is reset. _ 32 3-6. AD/DA Conversion The built-in AD/DA converter can be used for FM sounding and ADPCM voice analysis/synthesis, 4S well as for AD or DA conversion. Conversion rates range from a maximum sampling rate of 16kHz to a minimum sampling rate of 1.8 kHz. (1) AD conversion The MSX-AUDIO uses the DA converter in the sound generator for AD conversion. The DA converter performs conversion in a voltage range within Vec/2 + Vcc/4. The maximum voltage is 3 Vec/4 (127). the mid point is Vcc/2 (0), and the minimum voltage is Vcc/4 (-128). Converted data is expressed as 8-bit two's complement data. (Successive approximation type conversion) Auxilliary equipment, including the music output equipment, must be disconnected from the DA converter during AD conversion. If not, problems may result - eg.. excessively loud sound output. (2) DA conversion The same DA converter is used for DA conversion (output voltage within Vec/2 + Vcc/4). Converted data is expressed as 13-bit data with a 3-bit exponent part and a 10-bit virtual part. However, if necassary to process the data expressed in 8 bits (in relation to AD conversion), only vary the data of address $15 and fix $16 and $17 data to enable processing in units of bytes. 3-7. External-Memory Control Up to 256K-bytes (RAM or ROM) of external memory can be accessed as a data file for ADPCM voice analysis/synthesis. The MSX-AUDIO’s external-memory controller controls the external memories and provides an interface. (1) RAM Up to eight DRAMs (either 64K DRAM or 256K DRAM) can be connected. The MSX-AUDIO sequentially accesses the memories from the Ist to the 8th DRAM. Each RAM is sequentially read/written (as shown in the figure below) - from address (0,0) through address (511,0), and from (0,1) through (511,511). Consequently, RAM data processing is performed in units of single bits, while address-specification is performed in units of 32 bits (4 bytes). The contents of RAMs are refreshed by the MSX-AUDIO’s counter, and addresses are automatically generated. RAS RAM) RAM2 RAM3 RAM4 RAMS RAM6 RAM7 RAM8 GO Of, cence ene ~~ { 2 ' 2 3 4 5 6 7 8 510 Sil CASO 1 2- 55 | { Access sequence Unlike the addresses in RAMs which are connected with MSX-AUDIO’s DM output, the addresses are input in ROMs via latches. ROMs are accessed in byte unit and addresses are specified for every 32 bytes. (3) Memory access During ADPCM, the memories are automatically accessed by the MSX-AUDIO. For data transfer between the processor and the memories, the following programming is required. (a) RAM-WRITE ‘Address: Data R’W Comment ~ Initialization ! $04 $00 WwW Each flag is enabled. | $04 $80 Ww Each flag is reset. | $07 $60 WwW Memory write mode is set. | $08 $00 $02 Ww Memory type is specified. $09 $x x Ww Start address is specified. | $0A $x x Ww | $0B SAN Ww Stop address is specified. | $0C 824 Ww | - Memory write | $0F $7 W Data is written. | $80 Ww When BUF.RDY flag is ‘1, data write; when “0°; wait. | When EOS flag is “1"; data write ends. ~ Reset | $07 $00 Ww Address $07 is reset. (b) RAM/ROM-READ Address! Data |R’W Comment | 7 Initialization $04 $00 WwW Each flag is enabled. $04 $80 WwW Each flag is reset. $07 $20 Ww Memory read mode is set. $08 | $00, $01, $02 WwW Memory type is specified. $09 $x x WwW Start address is specified. $0A $x x Ww . $0B $44 Ww Stop address is specified. $0C $AL WwW - Memory read | $0F R Start after dummy reading two times SOF R (Necessary to check flag) SOF $1 R Data is read. $04 $80 Ww When BUF.RDY flag is “1; data is read; when "0". wait. When EOS is set to “1'; data read ends. ~ Reset $07 $00 W Address $07 is reset. - 34 — 3-8. Keyboard IN/OUT For easy keyboard connection, the keyboard input/output ports have an input termina! with pull-up resistors and an open-drain type output terminal. The 8-bits inputioutput ports enable the connection of the keyboard with up to 49 keys. The drive capacity affords a load of up to 500 pF with a scanning rate of 20 us. General-purpose input/output ports can also be connected. 3-9. Status Data and Interrupt Requests The MSX-AUDIO’s status data includes the flags set by two timers and two flags (BUF.RDY, EOS) used during ADPCM voice analysis/synthesis and access to external memories. Each flag is set to “1" when the corresponding event occurs. Unnecessary flags can be masked. An interrupt request (IRQ) is output (set to low level) when any one of the flags is set to “1":! Because the IRQ is output from the open-drain type ports, it can be transmitted to other equipment through the wired logic. Status Qo Oo 2 9 Du oO 2s D2 Di Oo3 TIMER-| TIMER-2 BUF + RDY PCM: BSY IRQ £0S DO (PCM.BSyY): During ADPCM voice analysis/synthesis, this bit is set to “1 when bit D7 (SDTART) of address $07 becomes “1°! No IRQ is generated by this setting. D3(BUF.RDY): This bit is set to “1” in the following cases: - ADPCM voice analysis: at the end of analysis (@ ADD. $07, D5 = 0) - ADPCM voice synthesis: at the end of synthesis (@ ADD. $07, D5 = 0) - External memory write: at the end of writing - External memory read: at the end of reading D4(EOS): This bit is set to “1 when analysis and synthesis are completed during ADPCM voice analysis/synthesis, or when the sampling time elapses during AD/DA conversion. D5(TIMER-2): This bit specifies the flag signal sent from timer-2 and is set to “1” when the time set for timer-2 elapses. D6(TIMER-1): This bit is used by the timer-1 as D5 is for timer-2. D7(IRQ): This bit is set to “1 when any of D3--D6 is “1". 4 INTERFACE The MSX-AUDIO is controlled by a microcomputer, and audio signals are converted into analog signals through the DA converter of the MSX-AUDIO, The MSX-AUDIO can controls external memories (ROM/RAM), keyboards, and other external devices. The interface between the MSX-AUDIO and peripheral equipment is described as follows. Control > Address ROM Micro computer RAM 2 a z Output xk Key port | 2 DAC Amplifier -—{] | board | | Input ) port LPF Cp Amp. OTHER Microphone SYSTEM Fig. IV-1 System block diagram 4-1. Audio Output Interface The MSX-AUDIO outputs digital sound signals, and it requires an external DA converter. such as the Yamaha YM3014. The YM3014 is a floating DA converter that uses thin-film resistors with a resolution of 16 bits, and can be used with the MSX-AUDIO to drive the audio amplifier. Because the output line transmits different types of signals. including FM sound generator output, ADPCM voice synthesis data, and PCM sounding data, a low pass filter that matches the sampling frequency of the signals must be inserted between the DA converter and amplifier. The filter is controlled by the input/output ports. Also required are a speaker-protection circuit (for AD conversion) and a circuit to eliminate click noises. 0 0sy Control 47uF 1 ako ee Data styrene Ri 2SA1015 Microphone Fig. 4-2 Audio output interface 4-2. External-Memory Interfaces Up to 256K-bytes of ROM and DRAM capacity can be connected externally to the MSX-AUDIO. Because all signals used to control the memories are provided by the MSX-AUDIO, the DRAM interface requires a tri-state buffer, and the ROM interface requires the circuits to latch addresses with RAS / CAS clock signals. No external circuits are required for connecting one DRAM. Tr-STATE BUFFER = < in a xoO wa NS / Fig. 4-3 Memory interface 4-3. Keyboard Interface The MSX-AUDIO has the input/output ports (8 bits each) for connecting a keyboaré equipped with up to 49 keys. Fig. 4-4 shows the keyboard interface. C22 ~F22,C: G@ ~C: Cis -Fis Gi ~Cr Cis~Fis Gi ~C. C.S ~F.s G. -G. Fig. IV-4 Keyboard interface 4-4 Microcomputer Interface The MSX-AUDIO is connected with a microcomputer via data bus lines (DO-D7) and a control-signal (AO, WR, RD. CS, IRQ) line. The data bus is used to write addresses and data to the MSX-AUDIO, and the control signals are used to specify the direction of data transfer on the data bus and type of data (address, data, or status) to be sent. V-1 Bases for sound Generation Item Related parameters MIN tone change--MAX Carrier output level TOTAL LEVEL Low, output __, high output Each A, D, S, R data -level____leve] ___ Modulator output level key scale data (Round <— bright tone Modulator feedback level FB Normal tone-—-sharP to ne Carrier frequency MULTI Low pitch high pitch Modulator frequency - (BLOCK/F-Number) Neighborin haren eon s__ distant | harmonics 5-3. Example of Sound Generation (1) Electric piano (a) Connection Set the Connection to “0": Almost all kinds of sound can be generated with Connection = “0": In this example, operator 1 is used to generate an accent in attack and rich harmonics. (b) Operator frequency Set the multiplier of the two operators to “1” to generate all harmonics of the integrally multiplied frequencies. (c) Operator output level Vary the modulation output to control the tone color. Set the operator 1 level for low tones with rich harmonics. Then, adjust operator 1 by level scaling for tone shifting toward higher tones. High tones require enough level scaling to nearly generate sine waves. (d) EG setting Specify the output level and tone-color envelope. Set operator 2 for sharp attack and a fairly sustained envelope. Operator 1 (modulator) must be set for rich harmonics at attack time and stable harmonics after the attack time Key scaling is done for operator 2 to adjust the output level. It is recommended to scale the RATE for sharp high tones. (e) Readjustment of data The tone colors become slightly different from the original tone because of the EG settings. Consequently, readjustment must be done for operator output and feedback levels. For instance, if an excessive metallic tone exists, decrease the level of operator 1. 41 - (f) Addition of effects Use the LFO to add a tremolo effect, which is a characteristic of electric piano sound. The tremolo effect can also be added by using the built-in amplitude modulator or by setting the software to shift total level value at 2--6 Hz cycle by using traiangular waves. (2) Trumpet {a} Connection Set the Connection to “0” also for brass sounds. By controlling the feedback level of operator 1, bright. loud brass sounds can be generated. (b} Operator output The total level of “modulation” operator 1 must be set low at around $10~-$28. but the feedback level must be set to the maximum ‘7" for brighter tone color. (c) Operator frequency Normally, set the multiplier to “1” for both operators. (d) EG setting Set both operators for slow attack. For brass sounds, modulator attack must be set slower than the carrier waves to generate the typical attack (“‘Bwan’) of brass sounds. fe) Key scaling Because the attack has been set slow, high tones have less clarity. To maintain natural brass tone colors even during fast melodies, scale the RATE to some extent as necessary. (f) LFO Even a talented brass player cannot precisely maintain a pitch of a long tone. To add such slight pitch shifting to the sound generated, set the vibrato effect. - 42 - V-4. Generation of Rhythmic Sounds The MSX-AUDIO uses three channels (7, 8, and 9) with six slots to generate a total of five rhythmic sounds. Only the bass drum sound is generated by two slots with the FM sounding. Therefore, the procedures (v-1)--(v-3) can be basically used to generate bass drum sounds. Here, the setting procedure for the remainning four rhythmic sounds (high-hat cymbals, top cymbal, tom-tom, and snare drum) are described. The OPL has a noise oscillator to provide white noise and several kinds of frequencies for generating rhythmic sounds. The oscillator combines the frequency data (BLOCK/F-Number/Multi) of channels 8 and 9 with white noise to generate phase output corresponding to rhythmic instruments and sends the outut to the operator. In other words, four different phase data items for four instruments are generated from two frequency data items. It is empirically known that an optimum ratio of two set frequencies should be 3:1 (f7CH = 3*f{8CH). Consequently, add the envelope information to the obtained phase data. For the envelope setting. one slot is used per instrument. Set the required parameters for generating specific features of each instrument in the registers. (See 3-1-23} Rhythmic sounds are generated according to the above procedure. 6. ELECTRIC CHARACTERISTICS 6-1. Absolute Maximum Rating Item | Rated value | Unit . Terminal voltage | -0.3-7.0 v | Operating ambient temperature | 0~70 c Storage temperature | —50- 125 c 6-2. Recommended Operating Conditions i Item Symbol | Minimum | Standard Maximum | Unit Power voltage Vee 4.75 5.0 5.25 Vv Vss 0 0 0 Vv 6-3. DC Characteristics | Item Symbol Condition | Mini- Stan. | Maxi Unit | | Inut high-level voltage Input except for | Vii: 2.0 vo INO--7 Vi 3.5 Vv | Input low-level voltage Input except for; Vii 0.8 v INO-7 Viz 1s) v | Input leak current Av, WR.RD.DTO | In Viv=0-5V 10 10] uA Three-state (offset-state) | D»- D:,DM»- DMz | Irs: Viv=0 5V —10 10) uA input current 10» IO: Output high-level voltage Output except Vow | Ton =0.4mA 2.4 V for IRQ, OUTO--7/ v.00 | haw =40uA 3.3 y Output low-level voltage | All output Von Io.=2mA 0.4) V Output leak current, IRQ. OUT:.: In | Vo=0 5 -10 10) uA Analog input voltage AD.DA Vv Vec'4 Wed | V Pull-up resistor IC. IRQ Rv 60 600 | KN INo..7 Riz 5 10; KO Input capacity All input Civ f=1MHz 10 oF Output capacity All output C. f= 1MHz 10 DF Power supply current I | _ 70| mA| 6-4. AC Characteristics Maximum Symbol Minimum Standard Item - Condition | "Input clock frequency oM fe A-l 3 3.58| 4 |MHz | Input clock duty oM 40 | 50 , 60 | %, | Input clock rise time oM Tot: A-} 50 | ns Input clock fall time oM Ter A-1 50 ins ' Address setup time Aw Ti. A-2,A-3 10 ns “Address hold time As Tw | A-2,A-3 10 rns | Chip select write width |S Tien | Aed 380 [ne Chip select read width cs Trev | A-3 380 ns Write pulse write width | WR Tun | A-2 380 ns Write data setup time | Da Tus | A-2 10 ns Write data hold time Du Turn | A-2 30 ns Read pulse width RD Tren | A-3 380 ns ‘Read data access time Do Ds Tw | A-3 380 | ns | Read data hold time De D: Tem | A-3 10 ns Output port fall time OUT: Tore | Cr = 500pF (Note) 20 us : Memory data set time DM:.;, DT» Tus | A-6 70 ns | Memory data hold time | DM.-;. DT. Tun | A-6 10 ns , Output rise time DMo-:,RAS.CAS. [Tu | A-d 100 | ns | ROM-CS. os SH. MO Tor A-4 150 | ns (Output fall time DM; RAS. CAS. Ts A-4 100 | ns -CS. os: ! SH. MO Ta A-4 150 | ns | Reset pulse width IC Nu A-5 80 cycle| (Note) A time period from when the output request was issued through the output ports until the output port voltage becomes 1.0 V. 7. TIMING CHART (Timing setting using reference values VH = 2.0V and VL = 0.8V) [— Lf, —entnen Fig. A-1 Clock timing Tan Tits pap ——nm T 1 1) —— feagpeeeme N Ir te of TMI Du OD; Fig. A-2 Write timing (Note) TWDS is based on whether CS or WR is subsequently set to a low level. TCSW, TWW, and TWDH are based on whether CS or WR is set to a high level. =L Fig. A-3 Read timing (Note) TACC is based on whether CS or RD is subsequently set to a low level. TCSR. TRW, and TRDH are based on whether CS or RD is set to a high level. ty Fig. A-4 Output timing fAMES oM ct Fig. A-5 Reset pulse width ty Fig. A-4 Output timing fAMES oM ct Fig. A-5 Reset pulse width RAS mas | f° \ 4 . a 8 DR = te! ee [MOH reo—oe wwe June MDEN | ‘ 1 ROM CS (Note} Only ADDIL) and ADD(H) are specified for A8, only MD is specified for DTO. only ADD(L), ADD(H). and WD are specified for DMO. Fig. A-6-a External-memory write cycle - UU “1 ae CAS \ — <2 DCs oO T 1 betpe— b TMDOH MDEN -——--+4 I i ROM-CS \ f | oo 1 WE (Note) Only ADD(L) and ADD(H) are specified for A8, only MD is specified for DTO, and only ADD (L) and ADD(H) are specified for DMO. For MDEN and ROM-CS, the solid line indicates the RAM read cycle. The dotted line (with points and short lines) indicates the ROM read cycle. Fig. A-6-b External-memory read cycle 8. PACKAGE DIMENSIONS yY83s50 | 1. 64-pin shrink DIL DOAADADAAAAAAAAAAAAAANAAAAA AAA INDEX O O (7.0 rO VUVUUUUUUOUUUUUDUUUUUU UU UU UU Tr? | wi 0.28 °9)) | Pre. o~ 18" ¢ 205+148 ~ 6 “i (Note) Specifications of this product are subject to change for purpose of improvement without prior notice. — EN __