Sei sulla pagina 1di 2

SOUNDFX is a general purpose sound effect generator which I have

use on 6502 processors for several years. This is a


demonstration program which I translated to the 6800 (68HC11) in
order to become familar with the mnemonic and architecture of
this system. This program uses BUFFALO subroutines for I/O and
is intended to be used on the MC68HC11 EVB.

As explained above this was done as a test and probably is not


too sophisticated (programming wise) for you experienced 6800
people. I will probably rework it as I become more familiar with
the 68HC11. If I have time I'll do some better documentation
than this.

USE:

HARDWARE:

This is a one bit output (bit7 of PORTC, pin 16 of P1). The


easiest way of getting an amplified output is to buy a Radio
Shack "Mini Amplifier-Speaker" which is a small grey box with a
LM368 and a speaker and everything else needed for around $10
(277-1008). To use this amp, hook up pin 16 of P1 to the tip of
a 1/8" phone jack and pin 1 (GND) to the ring of the jack. This
unit uses a 9v battery and has an on/off switch which I keep
forgetting to turn off when not in use (it will drain the
batteries overnight). I hooked the V+ of the amp (the bigger of
the two on the battery clip) to pin 26 (Vdd) so that it went on
and off with the EVB.

Alternative:

Simple transistor amp.


O +5
| /|
|------ / |
> | ____/ | 8 Ohm
< '-| | | Speaker
1K OHM > ,-|__| |
< | \ |
> | \ |
|_____| \|
|
|
3.3K OHM /
|/ 2N3904 or Equal.
PIN 16 >----v^v^v^v^v-----| (NPN)
|\
V
|
-------
-----
---

LOADING PROGRAM:

Program is ORGed for use in RAM and is located at $C000. So


load in the S19 file connect with the BUFFALO monitor and CALL
C000 and menu will appear. You can see in the listing the
parameter for the soundfx generator. Try changing them for
different sounds. One caution, don't put in 00 for the REP
parameter unless you want it to repeat 256 times.

Any comments, corrections or interesting sounds will be


appreciated. Use leave them on this BBS.

-MARK FOWLE-

Potrebbero piacerti anche