35
WORKBENCH Sound Tester für BALLY SQUAWK & TALK AS-2518-61 und MIDWAY CHEAP SQUEAK A082-91603-B000 a coinop.mally.eu development

WORKBENCH Sound Tester - coinop.mally.eu · WORKBENCH Sound Tester für BALLY SQUAWK & TALK AS-2518-61 und MIDWAY CHEAP SQUEAK A082-91603-B000 a coinop.mally.eu development

  • Upload
    others

  • View
    15

  • Download
    0

Embed Size (px)

Citation preview

WORKBENCH Sound Tester

für

BALLY SQUAWK & TALK

AS-2518-61 und

MIDWAY CHEAP SQUEAK A082-91603-B000

a coinop.mally.eu development

Der MALLY Sound Selector wird mit einem 12 VDC/500 mA Steckernetzteil in

Betrieb genommen. Die Bereitschaft wird mit einem Piepston quittiert. Die

grüne LED leuchtet.

Das Netzteil liefert auch die 11 VDC über den Anschluss J1 an die zu prüfende

Platine. Die S&T benötigt jedoch zusätzlich eine negative 5 VDC Spannung.

Hierzu kann ein zweites Steckernetzteil mit ca. 5 VDC mit mindestens 50 mA

verwendet werden. Schließen Sie hierzu die -5VDC (GND) des Netzteils an TP4

an und +5 VDC an GND. Unlogisch? Nö, wir benötigen doch eine NEGATIVE

Versorgungsspannung!

Der Lautsprecher wird an J2 Pin1 und 2 angeschlossen.

Verbinden Sie nun noch mit einem Kroko-Kabel die Minuspole der

Elektrolytkondensatoren C14 und C15.

Wenn die Brücken N und DD auf der S&T gesetzt sind, kann die Lautstärke für

Töne und Sprache getrennt an den zwei Potis auf der Platine eingestellt

werden.

Das Testgerät startet unmittelbar nachdem das Netzteil eingesteckt wird. Die

S&T durchläuft Ihren Selbsttest und sollte 5 x blinken. S&T Platinen ohne AY-3-

8912 Sound Chip (alle 5 EE Brücken sind gesetzt und U12 fehlt) blinken nur 4 x.

Wir wollen nun einen bestimmten Sound abspielen. Als Beispiel wird eine S&T

mit "EIGHT BALL DELUXE" Roms angenommen. Der gewünschte Sound ist die

Sprachausgabe des Satzes "GET THE BANK SHOT" mit dem hexadezimalen

Code 4B.

Das höherwertige Nibble (MSN) ist hier 4. Also stellen wir diesen Code binär

am Tester ein. Die Schalter von links nach rechts !!! haben die Werte 8, 4, 2 und

1. Wir schalten also den 2. Schalter von links an (binär 0100 / dezimal 4). Die

entsprechende LED leuchtet. Durch Drücken der gelben Taste wird der Wert

des MSN gespeichert.

Nun stellen wir das niederwertige Nibble (LSN) ein. Hier ist der hexadezimale

Wert 0B (binär 1011 / dezimal 11). Wir schalten alle Schalter an.

Drücken Sie nun die gelbe Taste wird das Sprachsample abgespielt - voraus-

gesetzt Ihre Platine ist in Ordnung.

Der Vorgang in Kürze: Das erste 4 Bit Nibble einstellen und mit gelber Taste

speichern. Dann das zweite 4 Bit Nibble eingeben und Soundausgabe mit

erneutem Druck der gelben Taste starten.

Die Codes für einige S&T Platinen finden Sie in alphabetischer Reihenfolge im

Anhang.

Codes for CENTAUR

Be aware that the S&T boards sometime replace a phrase with another

00 08 Loop sound (faster)

01 09 Loop sound (faster)

02 0A Loop sound (faster)

03 0B Loop sound (faster)

04 0C Loop sound (faster)

05 0D Sound

06 Sound Loop 0E Sound (lower)

07 Loop sound (faster) 0F Sound (lower)

10 Sound 18 Sound (echo)

11 Piu, piu, piu 19 Tweet, tweet

12 Drang 1A Sound

13 Sound 1B Sound

14 Sound 1C Explosion

15 Sound (asc.) 1D Sound

16 Sound 1E Organ

17 Sound 1F Sound

20 Blip 28 Sound

21 Blip (lower) 29

22 Blip (lower) 2A Sound

23 Blip (lower) 2B

24 Blip (lower) 2C Sound (desc.)

25 Blip (lowest) 2D

26 Sound 2E

27 2F

30 Two X completed 38 Energized power orb

31 Three X completed 39 Activate power orb

32 Four X completed 3A Power orb

33 Five X completed 3B Guardian releases power orb

34 completed 3C Released power orbs

35 Power orbs 3D Energized

36 Begin orbian attack 3E Bad move, human!

37 Energize me! 3F Slow, aren't you?

40 Sequence activates 48 Challenge me!

41 Release target activated 49 Orb feature

42 Sequence 4A Sequence feature

43 Only single value 4B Chamber feature

44 Side awards double 4C Guardian feature

45 Try 4D Bonus feature

46 Double queens chamber 4E Destroy Centaur

47 No class, human! 4F Human

50 Centaur 58

51 Power lane 59

52 Hahaha 5A

53 Activated 5B

54 Max. orbian strength achieved 5C

55 5D

56 5E

57 5F

Codes for EIGHT BALL CHAMP

Be aware that the S&T boards sometime replace a phrase with another

(for example the phrase "SINK THE" is alternating with "GO FOR" or "SINK THE" or "MAKE THE").

00 Toot! 08 Sound

01 Sound 09 Sound

02 Sound 0A Sound

03 Sound 0B Sound

04 Sound 0C Sound

05 Sound 0D Sound

06 Sound 0E Sound

07 Sound 0F Blip

10 Sound 18 Sound

11 Sound (Loop) 19 Sound

12 1A Sound

13 1B Sound

14 1C Sound

15 1D Sound

16 Sound 1E Sound

17 Sound 1F Sound

20 Blump 28 Sound

21 Sound 29 Sound

22 Sound 2A Sound

23 Sound 2B Sound

24 Sound 2C Sound

25 Sound 2D Sound

26 Sound 2E Sound

27 Sound 2F Sound

30 Sound 38 Sound

31 Sound 39

32 Sound 3A

33 Sound 3B

34 Sound 3C

35 Sound 3D

36 Sound 3E

37 Sound 3F

40 48 Get the eight ball

41 Make the one ball 49 Make the nine ball

42 Sink the two ball 4A Sink the ten ball

43 Shoot for three ball 4B Shoot for eleven ball

44 Get the four ball 4C Get the twelve ball

45 Make the five ball 4D Make the thirteen ball

46 Sink the six ball 4E Sink the fourteen ball

47 Shoot for seven ball 4F Shoot for fifteen ball

50 Quit talking and start chalking! 58 Eight ball

51 One ball 59 Nine ball

52 Two ball 5A Ten ball

53 Three ball 5B Eleven ball

54 Four ball 5C Twelve ball

55 Five ball 5D Thirteen ball

56 Six ball 5E Fourteen ball

57 Seven ball 5F Fifteen ball

60 Rack 'em up 68 Eight ball, two ball

61 You've got the solids 69 Eight ball, three ball

62 Shooting stripes 6A Eight ball, four ball

63 Whoops, too much English 6B Eight ball, five ball

64 Chalk up 6C Sink the eight ball

65 Too bad, you scratched 6D

66 Nice shot 6E Well done!

67 Eight ball, one ball 6F Super!

Codes for EIGHT BALL DELUXE

Be aware that the S&T boards sometime replace a phrase with another

(for example the phrase "SINK THE" is alternating with "GO FOR" or "SINK THE" or "MAKE THE").

00 08 Ding ('C')

01 09 Ding ('D')

02 0A Ding ('E')

03 0B Ding ('F')

04 0C Ding ('G')

05 0D Ding ('B')

06 0E Alarm

07 "whaa whaa" background loop 0F SND + Whoops to much english alternating with

SND + Too bad, you scratched!

10 Sound 18 Sound

11 Sound 19 Desc. sound (Loose)

12 Sound 1A Asc. sound

13 1B Asc. sound

14 Sound 1C Sound

15 Sound 1D Sound

16 Sound 1E Sound

17 Sound 1F Zong

20 Sound 28 One more for deluxe

21 Zong (echo) 29 Chock up

22 Sound 2A Rack them up

23 Sound 2B Quit talking, start chalking

24 Brzzzzz 2C Eight ball deluxe

25 Sound 2D One ball

26 Chuck 2E Two ball

27 Sirene echo 2F Tree ball

30 Four ball 38 Twelve ball

31 Five ball 39 Thirteen ball

32 Six ball 3A Fourteen ball

33 Seven ball 3B Fifteen ball

34 Eight ball 3C Get the one ball (sink/shoot for)

35 Nine ball 3D Get the two ball

36 Ten ball 3E Get the three ball

37 Eleven ball 3F Get the four ball

40 Get the five ball 48 Get the thirteen ball

41 Get the six ball 49 Get the fourteen ball

42 Get the seven ball 4A Get the fifteen ball

43 Get the Eight ball 4B Get the bank shot

44 Get the nine ball 4C Make the 'A'

45 Get the ten ball 4D Get the 'B'

46 Get the eleven ball 4E Go for 'C'

47 Get the twelve ball 4F Go for 'D'

50 Go for deluxe 58 Nice shot

51 Eight ball deluxe two ball 59 Nice shot

52 Eight ball deluxe three ball 5A Sink the eight ball, corner pkt.

53 Eight ball deluxe four ball 5B You've got deluxe. Nice shot.

54 Eight ball deluxe five ball 5C Eight ball deluxe

55 You've got the solids 5D Side pocket

56 You got the stripes 5E

57 Nice bank shot 5F

Codes for ELEKTRA

Be aware that the S&T boards sometime replace a phrase with another

00 08 Sound

01 09 Satellite in orbit

02 Sound (Loop) 0A Satellites in orbit

03

0B You are entering the radiant dimension. Elektra.

04 Sound

0C You have been exposed to Elektra's radiation. Will you return?

05 Sound

0D Prepare for the gamma dimension

06 Satellite alpha in position 0E Sound

07 Satellite beta in position 0F Sound

10 Sound 18 Sound

11 Sound 19 Sound

12 Sound 1A Sound

13 Sound 1B Sound

14 Sound 1C Sound

15 Sound 1D Sound

16 Sound 1E Sound

17 Sound 1F Sound

20 Sound 28 Sound

21 Sound 29 Sound

22 Sound 2A Sound

23 Sound 2B Sound

24 Sound 2C Sound

25 Sound 2D Sound

26 Sound 2E Sound

27 Sound [like 26] 2F Sound

30 Sound 38 Satellite alpha

31 Sound 39 Satellite beta

32 Alarm 3A Satellite

33 You are entering the radiant dimension

3B Satellites

34 Elektra 3C Prepare for the gamma

35 You have woken the light warrior

3D Elektra time have expired

36 You have been exposed to Elektra's radiation

3E You are closing on alpha

37 Will you return? 3F In position

40 In orbit 48

41 Dimension 49

42 Spectrum 4A

43 4B

44 4C

45 4D

46 4E

47 4F

50 58

51 59

52 5A

53 5B

54 5C

55 5D

56 5E

57 5F

Codes for FATHOM

Be aware that the S&T boards sometime replace a phrase with another

00 08

01 09

02 0A Sound (Loop)

03 0B

04 Alarm (Loop) 0C Sound (Loop)

05 0D Sound

06 0E Sound

07 0F Queek!

10 Zoing 18 Sound

11 Sound 19 Sound

12 Sound 1A Sound

13 Sound 1B Sound

14 Sound 1C Sound

15 Sound 1D Sound

16 Sound 1E Brrrt!

17 Sound 1F Brrrz!

20 Sound 28 Blip ('B')

21 Sound 29 Blip ('A')

22 Sound 2A Blip (G')

23 Sound 2B Blip (F')

24 Sound 2C Danger!

25 Sound 2D Captured!

26 Same like 25 2E Trapped!

27 Blip('C1') 2F Attack diver!

30 Released! 38 Fathom

31 Revenge! 39 Def dived

32 Murmaids 3A Muahhahahahaha

33 Now, you've done it! 3B Dive again

34 Attack! 3C Sea nymphs await

35 Ahhhhh! 3D Airtanks refilled

36 Ahh, yessss! 3E Air gone

37 The craft is set 3F Help me!

40 Air supply gone 48 Murmaids captured!

41 Surface, surface 49 Murmaids trapped!

42 Help! 4A Laughing

43 Huhuhohaha 4B Dive again

44 Heeelp meeee! 4C Dev dived, [laughing]

45 Sea nymphs 4D Help, surface, surface, fathom

46 Danger! Murmaids! Danger! 4E Danger! Sea nymphs await. Fathom!

47 Attack Diver 4F Randomly 4D or 4E

50 Danger! Murmaids released! 58

51 Attack diver! 59

52 Ahh, yessss! Airtanks refilled! 5A

53 5B

54 5C

55 5D

56 5E

57 5F

Codes for FIREBALL II

Be aware that the S&T boards sometime replace a phrase with another

00 08

01 09 Loop sound

02 0A Loop sound (faster)

03 0B Loop sound

04 0C Sound

05 0D

06 0E

07 0F

10 Zoing 18

11 Sound 19

12 Sound 1A

13 Sound 1B

14 Sound 1C Explosion

15 Sound 1D Sound

16 1E Sound

17 Sound 1F Sound

20 28 Fireball + SND

21 29 BAMM!

22 Alarm 2A BANG!

23 2B PAOU! or PAFF!

24 Bing ('C') 2C BAMM!

25 BING ('F') 2D PAFF!

26 Bing ('B') 2E Shoot for fire gods

27 Bing('C1') 2F Wotan's captured

30 Odin's trapped 38

31 Wotan unchained 39

32 Ough, waste 3A

33 Fireball awaits you 3B

34 Huhahahahahaha 3C

35 Huhahahahahaha (looped) 3D

36 3E

37 3F

40 48

41 49

42 4A

43 4B

44 4C

45 4D

46 4E

47 4F

50 58

51 59

52 5A

53 5B

54 5C

55 5D

56 5E

57 5F

Codes for FLASH GORDON

Be aware that the S&T boards sometime replace a phrase with another

00 08 Sound

01 09 Sound

02 0A Alarm (Loop)

03 0B

04 Sound 0C Sound (ascend.)

05 Sound 0D Sound (ascend.)

06 Sound 0E

07 Sound 0F

10 Alarm 18 Sound

11 Sound (Tilt) 19 Sound

12 SND + Flashhhh... 1A Sound

13 1B Sound

14 Sound 1C Sound

15 Sound 1D Explosion

16 SND + Flashhhhh... 1E

17 SND + Flashhhhh... 1F

20 Ding ('C') 28 ??? 15 seconds

21 Ding ('F') 29 Hmhmhahhahaha (3x)

22 Ding ('A') 2A Lucky shot, earthling

23 Ding ('C1') 2B Miserable, earthling

24 2C Emperor Ming Awaits!

25 2D Flashhhh...

26 2E Try again, earthling

27 2F 15 seconds

30 Miserable, earthling 38

31 Flashhhh... 39

32 Hmhmhahahaha 3A

33 15 seconds 3B

34 3C

35 3D

36 3E

37 3F

40 48

41 49

42 4A

43 4B

44 4C

45 4D

46 4E

47 4F

50 58

51 59

52 5A

53 5B

54 5C

55 5D

56 5E

57 5F

Codes for Kings Of Steel

Be aware that the S&T boards sometime replace a phrase with another

00 Sound (Bell) 08 Sound

01 Sound 09 Sound

02 Sound 0A Sound

03 Sound 0B Sound

04 Sound 0C Sound

05 Sound 0D Sound

06 Sound 0E Sound

07 Sound 0F Sound (Bell)

10 Gong 18 Sound (ascend.)

11 Sound (Loop) 19 Doing

12 Background Music 1A Wisthle

13 Background Music 1B anxious

14 All Sounds OFF 1C Blip Sound (ascend.)

15 Sound (ascen.) 1D What?

16 Sound (ascen.) 1E Blip (descend.)

17 anxious 1F Snare

20 Hit 28 Sound

21 Zoing 29 Wouwouwou

22 Sound 2A Bubbles

23 Flap Sound 2B Tuba

24 Sound (Echo) 2C Hit

25 Sound 2D Sound

26 Ouwouw 2E Sound

27 Aiaiaia 2F queek

30 Alarm 38

31 Siren (descend.) 39

32 Siren (ascend.) 3A

33 Sound 3B

34 Doioioiong 3C

35 Sound 3D

36 Beep beep beep 3E

37 Tom 3F

40 48

41 49

42 4A

43 4B

44 4C

45 4D

46 4E

47 4F

50 58

51 59

52 5A

53 5B

54 5C

55 5D

56 5E

57 5F

Codes for MEDUSA

Be aware that the S&T boards sometime replace a phrase with another

00 08

01 09

02 0A

03 0B

04 0C

05 0D

06 Sound Loop 0E

07 0F

10 Sound 18 Tweety

11 Sound 19 Sound

12 Zoing, zoing, zoing 1A Asc. sound

13 Sound 1B Asc. sound

14 Desc. Sound 1C Sound

15 Sound 1D Sound

16 Sound 1E Sound

17 Sound 1F Woah, whoa, whoa...

20 Weird sound 28 Sound

21 Weird sound 29

22 Sound 2A Blip

23 Sound 2B Blip (lower)

24 Sound 2C Blip (more low)

25 Sound 2D Blip (more low)

26 Sound 2E Blip (more low)

27 Sound 2F Blip (lowest)

30 Sound 38

31 39

32 Kikeriki 3A

33 3B

34 3C

35 3D

36 3E

37 3F

40 Challenge Medusa 48 Lighting torches doubles Olympus reward

41 Conquer Olympus 49 Olympus reward doubled

42 Prepare for battle 4A Extended play qualified

43 Light Gorgons 4B Olympus conquered

44 Time your shot. Light Gorgans. 4C Olympus

45 Collect Neptun's treasure 4D conquered

46 Enter Neptun's cove 4E Match Zero for extra ball

47 Medusas revenge 4F Match one for extra ball

50 Match two for extra ball 58 Muahahaha

51 Match tree for extra ball 59 For extra ball

52 Match four for extra ball 5A Match

53 Match five for extra ball 5B

54 Match six for extra ball 5C

55 Match seven for extra ball 5D

56 Match eight for extra ball 5E

57 Match nine for extra ball 5F

Layout

Das Layout ist für die Montage auf Lochrasterplatine optimiert. Beachten Sie die

beiden benötigten Drahtbrücken (rot).

Der Spannungsregler VREG1 wird liegend auf der Lötseite der Platine montiert!

An den Anschluss PIEZO kann ein Piezo-Lautsprecher (z. B. Art.-Nr. 100040)

angeschlossen werden. Verbinden Sie hierzu PIEZO mit dem Pluspol des

Lautsprechers und GND mit dem Minuspol.

Die Platine passt in das Gehäuse (Art.-Nr. 100049). Wenn Sie die Bohrschablone 1:1

ausdrucken und passend ausschneiden, dann kann diese ins Gehäuse gelegt und

die Bohrungen gesetzt werden.

Verwenden Sie zur Stromversorgung ein geschlossenes Steckernetzteil (mit Hohlstecker), welches mind. 7,5 VDC bei 0,75A liefern kann. Als Anschluss J1 können Sie Art.-Nr. 102703 verwenden. S5 ist ein Taster (z.B. Art.-Nr.101270). Die anderen Bauteile entnehmen Sie dem Schaltplan. Alle Teile sind bei uns erhältlich. Die HEX-Datei für den ATmega8 kann auf https://coinop.mally.eu heruntergeladen werden. Falls kein Programmiergerät zur Hand, dann kann auch der Controller mit Programm (Art-Nr. 105155) bestellt werden. Konfektionieren Sie ein Kabel zum Anschluss an die Stiftleiste J1 der Soundplatine. Hierzu benötigen Sie ein Housing (104706), 15 Crimpkontakte (100572) und Litzenkabel (dm: 1,0 mm) nach Bedarf. Verbinden Sie Pin10 mit 12V, Pin14/15 mit GND, Pin1 mit A, Pin2 mit B, Pin3 mit C, Pin4 mit D und Pin8 mit INT. Ziehen Sie die Schaltpläne der S&T bzw. CHEAP SQUEAK zu Rate, um Fehler beim Verkabeln zu vermeiden. Bohrschablone

Schematics

Pascal Quellcode

program SndBoardTest; {*************************************************************************** * (c)2017 coinop.mally.eu * * Programm zum Abspielen der Klänge bzw. Sprache auf den * BALLY Sound Boards * SQUAWK & TALK und dem CHEAP SQUEAK (Midway) * Ermöglicht den einfachen Test der Boards ohne Flipper Peripherie. * * MCU: ATMEGA8 oder ATmega48 * Clock: 8 MHz * Fuses: Cal. int. RC Oszillator 8 Mhz, keine weiteren Fuses. * ***************************************************************************} { Declarations section } const bin: Array [0..7] Of Byte = (1, 2, 4, 8, 16, 32, 64, 128); MSN_trans: Array[0..5] Of Byte = (240, 248, 244, 252, 242, 250); LSN_trans: Array[0..15] Of Byte = (0,8,4,12,2,10,6,14,1,9,5,13,3,11,7,15); var i, j :Byte; LSN, MSN :Byte; counter: Byte; label restart; { Procedures & Functions } Procedure Trigger; // Sound triggern Begin PortC.4 := 0; // Sound Interrupt low delay_us(40); // 40us warten PortC.4 := 1; // Sound Interrupt high End; Procedure Send_Data; // zur Übertragung der Daten an S&T J1 Pin1- Pin4 Begin Trigger; // Sound Interrupt low für 40us delay_us(22); // 22us warten PortC := LSN; // 1. Nibble senden delay_us(145); // 145us warten PortC := MSN; // 2. Nibble senden delay_us(78); // 78us warten PortC := 255; // S&T Ports alle high (inaktiv) counter := 0; // Nibble Zähler zurückstellen

End; { Main program } begin //*** Port Configuration **** DDRB := %11111111; // PB1-PB3 = LED2-LED5 (LED1 später) DDRC := %11111111; // PC0-PC3 = A-D; PC4 = Trigger-Out; PC5 = LS DDRD := %00001110; // PD0 = Trigger; PD4-PD7 = Schalter PortB := $FF; // alles Output PortC := $FF; // alles Output PortD := 241; // int. Pullups an {***** Signalzuordnung ***** brn = PC3, J1-1 blu = PC2, J1-2 orn = PC1, J1-3 grn = PC0, J1-4 ************************} {******** Protocol ********* Trigger (S&T Sound Interrupt) low für 40us 20us warten 1st Nibble for 145us (an S&T J1-1 bis J1-4) 2nd Nibble for 78us (an S&T J1-1 bis J1-4) -->Sound wird auf S&T erzeugt *************************} //**** Initialisierung ***** Sound_Init(PortC, 5); // für Piezo Sound_Play(400, 100); // Kammerton A für 100ms restart: // Einsprunglabel While (PinD.0 = 0) Do NOP; // falls Taste, dann warten PortB := 31; // alle LEDs aus PortC := 31; // Ports zur S&T alle high counter := 0; // Nibble Zähler LSN := 255; // least significant nibble MSN := 255; // most significant nibble While true Do // solange Gerät angeschaltet... Begin PortB := 31; // LEDs alle aus If (PIND.7 = 1) Then PortB := PortB - 1 * 2; // Schalter auf LED Port zeigen If (PIND.6 = 1) Then PortB := PortB - 2 * 2;

If (PIND.5 = 1) Then PortB := PortB - 4 * 2; If (PIND.4 = 1) Then PortB := PortB - 8 * 2; Delay_ms(20); // 20ms warten If (PinD.0 = 0) And (counter < 2) Then // Wenn Taste und nicht alle Nibbles Begin Delay_ms(50); // Taste entprellen While (PinD.0 = 0) Do NOP; // Taste entprellen If (PIND.7 = 0) Then // Wenn Schalter 4 gedrückt... Begin // Wenn Nibble Zähler 1, dann // beim 1. Nibble sonst beim 2. Nibble // Bit 4 auf low (0111) if (counter = 1) Then LSN := LSN - 8 Else MSN := MSN - 8; End; If (PIND.6 = 0) Then // Wenn Schalter 3 gedrückt... Begin // Wenn Nibble Zähler 1, dann // beim 1. Nibble, sonst beim 2. Nibble // Bit 3 auf low (1011) if (counter = 1) Then LSN := LSN - 4 Else MSN := MSN - 4; End; If (PIND.5 = 0) Then // wie oben nur für Bit 2 Begin if (counter = 1) Then LSN := LSN - 2 Else MSN := MSN - 2; End; If (PIND.4 = 0) Then // wie oben nur für Bit 1 Begin if (counter = 1) Then LSN := LSN - 1 Else MSN := MSN - 1; End; For i := 0 to counter Do Begin Sound_Play(300,100); // Ton für 100ms auf Piezo ausgeben Delay_ms(100); // 100 ms warten End; inc(counter); // Nibble Zähler erhöhen End; If (counter = 2) Then // 1. und 2. Nibble existent Begin While (PinD.0 = 0) Do NOP; // Taste entprellen If ((MSN = 255) AND (LSN = 255)) Then // alle Sounds hintereinander spielen Begin For i := 0 To 5 Do // alle MSN nacheinander Begin For j := 0 To 15 Do // alle LSN nacheinander Begin MSN := MSN_trans[i]; // Übersetzung für unkonventionellen LSN := LSN_trans[j]; // Anschluss an S&T J1 PortB := j *2; // LSN auf LEDs anzeigen

Send_Data; // Nibbles an S&T senden delay_ms(2700); // 2,7 sek. Zeit für Sound/Sample Sound_Play(400,100); // Kammeton A auf Piezo für 100ms If (PinD.0 = 0) Then Goto restart; //Abbruch End; End; End Else Begin Send_Data; LSN := 255; // LSN zurücksetzen MSN := 255; // MSN zurücksetzen End; End; End; end. // Aus die Maus... Die HEX-Datei für den ATmega8 kann auf https://coinop.mally.eu heruntergeladen werden. Falls kein Programmiergerät zur Hand, dann kann auch der Controller mit Programm bestellt werden. Die Fuses für den ATmega8: Startup: 6CK - Cal. int. RC Oscillator 8 MHz - alle anderen Fuses AUS

MALLY AS-2518-61B Schematics

Diese und die vorhergehende Seite ausschneiden und passgenau zusammenkleben.

Cut this and the previous page and tape together

MALLY AS-2518-61B Layout