The Engineering Staff of TEXAS INSTRUMENTS ; SN 76489 AN Semiconductor Group DUAL-IN-LINE PACKAGE (TOP VIEW) FEATURES - p21 aad 16 Veo © 3 Programmable Tone Generators br 2 p15 93 ® Programmable White Noise Generator iaabe p 14 crock . READY 4 13 D4 @ Programmable Attenuation Wes h 12 os @ Simultaneous Sounds dE 6 p11 06 @ TTL Compatible AUDIO OUT 7 10 07 @ Up to 4MHz Clock Input* GND 8 Do nc. DESCRIPTION The SN76489AN digital complex sound generator is an |? L/Bipolar IC designed to provide tow cost tone/ noise generation capability in microprocessor systems. The SN76489AN is a data bus based 1/O peripheral. RECOMMENDED OPERATING CONDITIONS PARAMETER MIN TYP MAX UNITS Supply Voltage, Vcc 45 5.0 5.5 Vv High Level Output Voltage, VOH (pin 4) 5.5 Vv Low Level Output Current, |OL (pin 4) 2 mA Operating Free-Air Temperature, TA ie} 70 °C *Part SN76494N is identical to the SN76489A except that the maximum clock input frequency is 500kHz. A “‘divide-by-eight” stage is deleted from the input circuitry and only 4 clock pulses are required to load the data, compared to 32 pulses for the SN76489AN. ‘cannot asume any tesponsibiey or any eres shown represent tna ty are lee warm patent nngemen TEXAS INSTRUMENTS RESERVES THE RIGHT TO MAKE CHANGES AT ANY TIME IN ORDER TO IMPROVE DESIGN ANO TO SUPRLY THE BEST PRODUCT PossieLe OPERATION 1, TONE GENERATORS Each tane generator consists af a frequency synthesis section and an attenuation section. The frequency synthesis section requires 10 bits of information {FO-F9) to define half the period of the desired frequency (n). FO is the most significant bit and F9 is the least significant bit. This information is loaded into a 10 stage tone counter, which is decremented at a N/16 rate where N is the input clock frequency. When the tone counter decrements to zero, a borrow signal is produced. This borrow signal toggles the frequency flip-flop and also reloads the tone counter. Thus, the period of the desired frequency is twice the value of the period register. The frequency can be calculated by the following: t= 32n where N = ref clock in Hz n = 10 bit binary number The output of the frequency flip-flop feeds into a four stage attenuator. The attenuator values. along with their bit position in the data word, are shown in Table 1. Multiple attenuation control bits may be true simultaneously. Thus, the maximum attenuation is 28 db. Table 1: ATTENUATION CONTROL BIT POSITION AO Al A2 A3 WEIGHT 0 0 0 1 2 db 0 0 1 0 4db 0 1 0 0 8db 1 ° ° ° 16 db 1 1 1 1 OFF NOISE GENERATOR The Noise Generator consists of a noise source and an attenuator. The noise source is a shift register with an exclusive OR feedback network. The feeback network has provisions to protect the shift register from being locked in the zero state. Table 2: NOISE FEEDBACK CONTROL Fe CONFIGURATION 0 “Periodic” Noise 1 “White"’ Noise Whenever the noise control register is changed, the shift register is cleared. The shift register will shift at one of four rates as determined by the two NF bits. The fixed shift rates are derived from the input clock. Table 3: NOISE GENERATOR FREQUENCY CONTROL BITS NFO NFI SHIFT RATE 0 10) N/512 0 i?) N/1024 1 0 N/2048 1 1 Tene Generator #3 Output The output of the noise source is connected to a programmable attenuator as shown in Figure 4. 3. OUTPUT BUFFER/AMPLIFIER The output buffer is a conventional operational amplifier summing circuit. It sums the three tone generator outputs, and the noise generator output. The output buffer will generate up to 10mA. 4. CPU to SN76489AN INTERFACE Ihe microprocessor interfaces with die GN7G4B9AN by means of the 8 data lines and 3 control lines (WE, CE and READY}. Each tone generator requires 10 bits of information to select the frequency and 4 bits of information to select the attenuation. A frequency update requires a double byte transfer, while an attenuator update requires a single byte transfer. If no other control registers on the chip are accessed, a tone generator may be rapidly updated by initially sending both bytes of frequency and register data, followed by just the second byte of data for succeeding values. The register address is latched on the chip, so the data will continue going into the same register. This allows the 6 most significant bits to be quickly modified for frequency sweeps. 5. CONTROL REGISTERS The SN76489AN has 8 internal registers which are used to control the 3 tone generators and the noise source. During all data transfers to the SN76489AN, the first byte contains a three bit field which determines the destination control register. The register address codes are shown in Table 4. Table 4: REGISTER ADDRESS FIELD RO R1 R2 DESTINATION CONTROL REGISTER 0 Q 0 Tone 1 Frequency oO i] ie} Tone 1 Attenuation (¢) 1 0 Tone 2 Frequency 10) 1 1 Tone 2 Attenuation 1 0 0 Tone 3 Frequency 1 0 1 Tone 3 Attenuation 1 1 ie) Noise Control 1 1 1 Noise Attenuation DATA FORMATS The formats required to transfer data are shown below. REG ADDR DATA DATA 1] RO{ RI] R2] Fe] F7 | FS FO} [Olx | FOY FI | F2 | FS 4 F4 | FS BITO FIRST BYTE BIT7 BIT O SECOND BYTE BIT 7 UPDATE NOISE SOURCE (SINGLE BYTE TRANSFER) REG ADDR SHIFT 1| RO | Rt] R2{ x | FB] NFO] NFI BIT O BIT7 UPDATE ATTENUATOR (SINGLE BYTE TRANSFER) REG ADDR DATA 1| RO | RI] RZ] AO] AT] AZ] AB BITO BIT7 The microprocessor selects the SN76489AN by placing CE into the true state (low voltage). Unless CE ts true, no data can occur. When CE is true, the WE signal strobes the contents of the data bus to the appropriate control register. The data bus contents must be valid at this time. The SN76489AN requires approximately 32 clock cycles to load the data into the control register. The open collector READY output is used to synchronize the microprocessor to this transfer and is pulled to the false state (low voltage) immediately following the leading edge of CE. It is released to go to the true state (external pullup) when the data transfer is completed. The data transfer timing is shown below. Figure 1. DATA TRANSFER TIMING ' 0-07 x FIRST ovTC SECOND BYTE Table 5: FUNCTION TABLE* “This table is valid when the device is: (1) not being clocked, and {Inputs Output CE WE READY L L L L H L H L H H H H (2) is initialized by pulling WE and TE high. 8. PIN ASSIGNMENT The table below defines the SN76489AN pin assignment and describes the function of cach pin. SIGNATURE PIN 1/0. DESCRIPTION CE 6 IN Chip Enable ~ when active (low) date may be transferred from CPU to the SN76489AN. DO(MSB) 3 IN DO through D7 — Input data bus through which the control data is input. D1 2 IN 02 1 IN 03 15 IN D4 13 IN DS 12 IN 06 1 IN D7 10 IN VCC 16 IN Supply Voltage (5V nom) GND 8 OUT | Ground Reference CLOCK 14 IN Input Clock WE 5 IN Write Enable — when active (low), WE indicates that data is available from the CPU to the SN76489AN. READY 4 OUT | When active (high), READY indicates that the data has been read. When READY is low, the microprocessor should enter a wait state until READY is high. N.C. 9 No external connection should be made in this pin. AOUT 7 OUT | Audio Drive Out ELECTRICAL CHARACTERISTICS OVER RECOMMENDED OPERATING CONDITIONS (UNLESS OTHERWISE NOTED) PARAMETER TEST CONDITIONS MIN | TYP| MAX | _UNITS in Input Current Vin = GND to Vcc | CE -25 | -175 vA DO-D7, WE, CLK -10 | -10 uA VoL Low Level Output Voltage {OUT = 2mA READY 25 A Volts icc Supply Current Outputs Open 30 bU mA on Input Capacitance 15 pF 1OH — High Level Veco < 5.0V 20 Output Current READY 5.0V < Veco <5.5V 300 LA ViH High Level a Input Voltage DO-D7, WE, CE, CLK 2 Volts ViL Low Level oe Input Voltage DO, D7, WE, CE, CLK 8 Volts 2dB Attenuation 1 2 3 dB 4dB Attenuation 3 4 5 dB 8dB Attenuation 7 8 9 dB 16dB_ Attenuation 15] 16 17 dB Figure 2, EXTERNAL AUDIO INPUT INTERFACE Internally Generated = ‘SOuNa Signal ©) -160 HA £ liyt £0 17K Q CIN Court ** Pin7 -—1— AMPLIFIER 1 | +15 Lyymicall 1 | SN76489A/494N Internal Circuitry | * "These capacitance values are determined by the frequency response desired and the audio amplifier used. SWITCHING CHARACTERISTICS, Vcc = 5V, Ta = 25°C PARAMETER TEST CONDITIONS MIN | TYP |MAX | UNITS *CE to READY CL = 225pF tPLL, 50% to 50% Rt = 2K to VCC 90} 150 | ns felock, Input Clock Transition Time Clock Frequency (10% to 90%) 10uS Dc {3.579 4 | MHz Setup Time, tsu DATA W.R.T. WE 0 ns (see Figure 1) CE W.R.T. WE 0 ns Hold Time, th (see Figure 1) DATAW.R.T. READY 0 ns *CE Pulse: 0-3V, trise = 7S, tfalj = 7nS Figure 3. tore TEST CIRCUIT 17 O16 22 2 [15 3 2 14 READY ai 3 SCOPE 4 g L 8 fe se OR 2250F sy gg 12 = x co] 2 f& 7 & [10 PULSE qe | GENER- 8 ry ATOR © + — BLOCK DIAGRAM TT 0 | Tone Generator * | | | | 10 oe — — WwW Analog Sununer 06 Tone Generator "2 12 05 0 13 os 4 —| ey Attenuation Audio 15 03 Output Peri j Audio Amp 1 02 0 Jonerat +e} —{=z}-—_ L=2 | Tore by Generator "3 | l | READY O44 ‘| +16 --——>] 2/48 bonito, Pod = L —_ eee Aurenvation _| 16 Lh, BLOCK DIAGRAM DESCRIPTION This device consists of three programmable tone generators, a programmable noise generator, a clock scaler, individual generator attenuators and an audio summer output buffer. The SN76489AN has a parallel 8 bit interface through which the microprocessor transfers the data which controls the audio output DECODER — NOISE TONE TONE TONE GENERATOR — GENERATOR 2 GENERATOR? GENERATOR 1 ¥ hi ka a + 16 +N =N +N = 2 +2 = SELECT ik; SHIFT RATE —] NOISE GeNcRATOR os eh } iT ATTENUATOR ATTENUATOR ATTENUATOR AITENUATOR IL —______] a vec GND AUDIO OUTPUT SN76489A / SN76494 SCHELOGIC "(72 ON 5N76494N) Figure 4,