background image

9.

The Yamaha YM2149

This is a copy from “

http://www.atari-forum.com/wiki/

 “. 

Software-Controlled Sound Generator (SSG)
-----------------------------------------

Overview

The SSG (Software-Controlled Sound Generator) is an NMOS-LSI device designed
to be capable of music generation. It only requires the microprocessor or

microcomputer (CPU) to initialize its register array, thus reducing the load
on the CPU. Music generation is carried out by the three sequence square wave

generator, noise generator, and envelope generator according to the set
parameters. This allows for the generation of music, special effects,

warnings, and various other types of sounds.

Features

5V single power supply

Easy connection to 8 bit or 16 bit CPU
Simple connection to external system through 2 sequence 8 bit I/O port

Wide voicing range of 8 octaves
Smooth attenuation by 5 bit envelope generator

Built-in 5 bit D/A convertor
Input of double frequency clock can be handled by built-in clock frequency

 divider
TTL compatible level

Low power consumption (typical 125mW)
40 pin plastic DIL package

Pin compatible with AY-3-8910 manufactured by GI

Pin Layout

        Vss(GND) 1          40 Vcc(+5V)

             N.C 2          39 Test1
Analog Channel B 3          38 Analog Channel C

Analog Channel A 4          37 DA0
             N.C 5          36 DA1

            IOB7 6          35 DA2
            IOB6 7          34 DA3

            IOB5 8          33 DA4
            IOB4 9          32 DA5

           IOB3 10          31 DA6
           IOB2 11          30 DA7

           IOB1 12          29 BC1
           IOB0 13          28 BC2

           IOA7 14          27 BDIR
           IOA6 15          26 SEL

           IOA5 16          25 A8
           IOA4 17          24 A9

           IOA3 18          23 RESET
           IOA2 19          22 CLOCK

           IOA1 20          21 IOA0

Version: v005

18

Date: 22.05.2012

Содержание MrX

Страница 1: ...MrX Sound Board for the ZX81 from Sinclair Manual for users and programmers www eightbits de Version v005 1 Date 22 05 2012...

Страница 2: ...2 MrX Sound Card 5 3 MrX Expansion Bus K3 6 4 Optional 3 5mm jacks and ZX96 bus diodes 7 5 Connection 8 6 Software 11 7 Six Channel Sound Turbo Sound Turbo AY 12 8 Programming 15 9 The Yamaha YM2149 1...

Страница 3: ...rchantability or fitness of use for a particular purpose Neither the author nor the publisher shall be held liable or responsible to any person or entity with respect to any loss or incidental or cons...

Страница 4: ...1 System Requirements Computer ZX81 Manufacturer Sinclair UK Amplifier active amplifier PC amplifier with 3 5mm jack Recommended 16k Ram Version v005 4 Date 22 05 2012...

Страница 5: ...2 MrX Sound Card A 3 5mm jack Connect the amplifier here B Port connector C 30 pin expansion bus K3 see next chapter D Through port connector Version v005 5 Date 22 05 2012...

Страница 6: ...A5 Port A from YM2149 12 IOA4 Port A from YM2149 13 IOA3 Port A from YM2149 14 IOA2 Port A from YM2149 15 IOA1 Port A from YM2149 16 CHL Left channel of 3 5mm jack behind capacitor 17 CHR Right channe...

Страница 7: ...www fischerkai de zxteam treib_e htm a diode DX1 for the BUSCS signal has to be soldered and the port connector has to be exchanged by a VG64 connector The VG64 connector uses all pins of K2 Note The...

Страница 8: ...amage may occur to the computer and the sound card The ZX81 computer is connected to the sound card via the ZX expansion port on the back of the computer Make sure that the pins of the ZX81 PCB are ex...

Страница 9: ...The PC speaker with integrated amplifier has to be connected with the 3 5mm stereo jack Version v005 9 Date 22 05 2012...

Страница 10: ...equipment NOTE Make sure that the pins of the MrX PCB are exactly aligned with the connector of the equipment Otherwise severe damage may occur to the computer the equipment and the sound card Versio...

Страница 11: ...e ZON X Manual Demon Demo Dancing Demon Demo Games 2 Games from Brasilian TK85 PT3 Player Player plays PT3 files Pink Panther Music demo ZON X Manual HTML document original zonx manual Concerning the...

Страница 12: ...s not ZON X compatible any more ATTENTION The following instructions describe how to exchange the orignal GAL chip with the Turbo Sound GAL Follow the instructions carefully and exactly If you are not...

Страница 13: ...igned exactly with the socket Watch the pit of the GAL it must be exactly placed like shown on the picture Press down the chip slowly until it snaps into the socket While pressing make sure that none...

Страница 14: ...he MrX according to chapter 5 Connection The following combinations are tested and working Modified MrX ZXpand Zxpand AY ZX81 Modified MrX Original MrX ZX81 Connect two PC speakers with the two sound...

Страница 15: ...CF 0x0F from ZON X user manual 0xDF 0x1F additional combination See chapter 9 The Yamaha YM2149 for further explanation about Latch register address latch and Data write mode Examples in assembler Sim...

Страница 16: ...looop LD A 14 out LATCH A LD A 00 out DTAX A set port A to 0 LD HL DFILE INC HL LD HL _O INC HL LD HL _F INC HL LD HL _F LD BC 100 CALL 0F35 LD A 14 out LATCH A LD A FF out DTAX A set all bits of por...

Страница 17: ...LATCH equ DF xxx LD A 7 out LATCH A LD A 00 set port A B to Input out DTAX A looop LD A 14 out LATCH A in a LATCH Port A register No 14 is read and a 3F LD HL DFILE INC HL LD HL A Print the port conte...

Страница 18: ...supply Easy connection to 8 bit or 16 bit CPU Simple connection to external system through 2 sequence 8 bit I O port Wide voicing range of 8 octaves Smooth attenuation by 5 bit envelope generator Bui...

Страница 19: ...lup resistance while A9 has pulldown resistance When the voltage level at A8 while the level at A9 and DA7 DA4 is low the address mode is selected allowing for the fetching of a register address Conne...

Страница 20: ...rite mode DA7 DA0 set to input mode and data is written to register currently being addressed Read mode DA7 DA0 set to output mode and contents of register currently being addressed are output 7 ANALO...

Страница 21: ...internal registers register array The upper addresses are used for chip selection A9 and A8 is programmed to 01 while DA7 through DA4 are set to 0000 When the upper addresses match this program in th...

Страница 22: ...d from the register value NP decimal in the following manner fN fMaster fMaster if the frequency of the master clock 16NP Noise frequency register R6 B7 B6 B5 B4 B3 B2 B1 B0 Not used NP4 NP3 NP2 NP1 N...

Страница 23: ...lope setting period value EP decimal fE fMaster fMaster if the frequency of the master clock 256EP Envelope rough adjustment register RC Envelope fine adjustment register RB B7 B6 B5 B4 B3 B2 B1 B0 B7...

Страница 24: ...binations of the CONT ATT ALT and HOLD signals B3 B2 B1 B0 CONT ATT ALT HOLD 0 0 x x 0 1 x x 1 0 0 0 1 0 0 1 1 0 1 0 1 0 1 1 1 1 0 0 1 1 0 1 1 1 1 0 1 1 1 1 NOTE The writing to register RD will reset...

Отзывы: