|
( *** Team members must each choose a different song *** ) Modify the program scales1.asm to play the tune "Brother John", you'll find it at this link. I personally like Brother John... The music for jingle bells, is shown below: Alternately, you can choose a different song to play, as long as it is approximently the same length and you provide me with a copy of the music - here in Twinkle Jiggle Bells, done in 4/4 time 1 2 3 4
1 2 3 4 1
2 3 4 1 2 3
4 1 2 3 4
1 2 3 4
1 2 3 4 1
2 3 4
1 2 3 4
1 2 3 4
1 2 3 4 1
2 3 4 1 2 3 4
1 2 3 4
1 2 3 4
1 2 3 4
1.Underlines "_" are to be played as a "null" sound, see the
"scale1.asm" example.
The "play tune" and "sounding" functions, used in the "scale1.asm",
can be used to play other songs or make useful sounds on your experimenter's
board.
Wire the output from portc, bit7 to one input of your speaker
connector and the other connector to +5 volts.This will be demonstrated
in class. The wiring of your speaker is as shown here:
*** more effort in this lab is worth more points, an "A" is for exception effort. Helps:
|