PIN FUNCTIONS AY-3-8910 El 16 REGISTER MEMORY MAP FOR AY-3-8910 Signal Functional Description Clock (input) DAO-DA7 (input/ output) CS0-CS2 (input) BC1, BC2, BD1R (input) RESET (input) IOA0-IOA7 (input/output) IOBO-IOB7 (input/output) ANALOG A, B, C (outputs) 2MHz Clock—this input is a refer- ence for timing within the AY-3-8910. Data/Address Bus Bits 0-7 — this 8-bit bus passes all data and address information between the AY-3-8910 and the controller. Chip Select Lines—a three bit code on these lines selects the AY-3-8910 for sound programming or parallel input/output. Bus Control Signals (ref. Fig. 7) — generated by the controller these lines decoded within the AY-3-8910 to control all bus operations. Reset — clears the AY-3-8910 on power up. Parallel Input/Output Ports— each of these ports provide 8 bits of parallel data for use by the external C1 C0 world. These ports are each programmable for either input or output and are TTL compatible. Analog Outputs — each of these REGISTER s7 | a6 | os | 84 | es | 82 | a1 | 80 RO Channel A Period 8-BIT Fine Tune R1 Channel B Period 8-BIT Fine Tune R2 Channel C Period 8-BIT Fine Tune R3 Envelope Period 8-BIT Fine Tune R4 Channel A Period 4-BIT Course Tune R5 Channel B Period 4-BIT Course Tune R6 Channel C Period 4-BIT Course Tune R7 Envelope Period 8-BIT Course Tune R10 | Enable (0B | 10A | Noise | Noise | Noise | Tone | Tone | Tone OUT | OUT | C B A C B A R11 | Noise Gen. Clock 5-BIT Period Control R12 | Envelope Control ‘ CON. | ATT. | ALT. | HOLD R13 | Channel A R14 | Channel B C1 CO D3 02 D1 DO R15 | Channel C R16 | 0A 8-BIT PARALLEL 1/0 on Port A R17 | 10B 8-BIT PARALLEL I/0 on Port B NOTE: For Registers 13, 14, 15 Expected Output (LOG AMPLITUDE) 1 1 E3 | E2 E1 EO (Ref. Figs. 1 and 2) 1 0 0 E3 E2 E1 0 1 0 0 E3 E2 0 0 D3 D2 D1 00 . WHERE: E3 E2 E1 E0 Come From the Envelope Generator outputs are independently program- D3. 02 °D1 DO Are the Lower 4 BITS of R13, R14, R15 mable to produce complex sounds. C1 CO Are the Upper 2 BITS of R13, R14, R15 Channel A, B, C Is Shut off by Zeroing R13, R14, R15 Respectively. TEST For GI test-normally not connected. REGISTER # ADDRESS FUNCTION (octal) (octal) BITS NAME DESCRIPTION RO Base 8 fO Fine tunes frequency on channel A. 8 bits are proportional to period. R1 Base + 1 8 f1 Similar to fO but channel B. R2 Base + 2 8 f2 Similar to f0 but channel C. R3 Base + 3 8 fE Fine tunes envelope period. R4 Base + 4 4 PO Coarse tunes channel A (high four bits). RS Base + 5 4 P1 Coarse tunes channel B (high four bits). R6 Base + 6 4 P2 Coarse tunes channel C (high four bits). R7 Base + 7 8 PE Coarse tunes the envelope period. R10 Base + 10 8 Enable Each Lit controls a unique function (active low): Bit 0: Tone on channel A. Bit 1: Tone on channel B. Bit 2: Tone on channel C. Bit 3: Noise on channel A. Bit 4: Noise on channel B. Bit 5: Noise on channel C. Bit 6: IOA, 0 for input, 1 for ouput. Bit 7: |OB, 0 for input, 1 for output. R11 Base + 11 5 N Clock Varies the frequency of the clock for the noise generator. R12 Base + 12 4 Envelope Each bit controls a function in the envelope generator: Control Bit 0: Hold. Holds the last count of the specified envelope. Bit 1: Alternate. The amplitude of the envelope generator cycles up and then down. Bit 2: Attack. When high, the envelope will attack. When low, the envelope will decay. Bit 3: Continue. When high, the analog output will not shut off after one cycle. When low, the analog output shuts off after one cycle. Each of these registers controls its respective envelope in the ne nase i iy 6 eve ope a following way (also refer to Note in memory map above): R15 Base + 15 ° Envelone C Bit DO - Bit D3 - These bits directly control the amplitude of each . Pp analog output when bits 4 and 5 are low. With the control bits of R10 set for the output mode, data can be R16 Base + 16 8 IOA written to these ports from the CPU, and latched. With the control bits R17 Base + 17 8 1OB set for input, data can be read into the CPU. Each port is independently programmable. 7-101