CISC3361  Lab# 5  ( Robot Songs )(due: 3/04)


( *** 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
E  E  E  _       E   E  E  _      E  G  C  D    E  _  _  _    F  F  F  F

1   2   3   4      1   2   3   4     1   2   3   4 
F  E   E  EE    E  D  D  E     D  _   G  _

1   2   3  4      1   2   3   4      1   2   3   4    1   2  3  4   1   2  3  4
E  E  E  _       E  E  E  _       E   G  C  D   E  _  _  _    F  F  F  F

1   2  3   4      1   2   3  4       1  2  3  4 
F  E  E  EE    G  G  F  D      C  _  _  _

1.Underlines "_" are to be played as a "null" sound, see the "scale1.asm" example. 
2.The double "EE" require special code to handle the quicker sounding events, 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:
 
 
 
  Be prepared to demonstrate your song program in class. 
Have your programs correct behavior verified by the lab instructor,
  CHK______

*** more effort in this lab is worth more points, an "A" is for exception effort.


 

Helps:
1. Here is a neat tutorial on sound and musical notes.
2. As always, you are allowed to help each other, to the extent that you can answer each others 
questions - Do not do the lab for another student. It will not help them when I do the individual tests...