Ch8_Solutions_WAM2.2

Ch8_Solutions_WAM2.2 - What's a Microcontroller Chapter 8...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
What’s a Microcontroller? – Chapter 8 Homework Solutions Chapter 8 Questions 1. What are the three main elements of sound effects? The three main elements of sound effects are Pause, Duration, and Frequency. 2. Can you put one FOR…NEXT loop inside another? How does that work? Yes. It is called a nested loop. It will go through each loop as many times as is specified. 3. How can you use the FREQOUT command to send musical notes? If you know all the frequencies of the keys for a specific instrument such as the piano, then you can simply program the basic stamp to make the speaker play at that frequency. 4. Where does the data in a DATA directive get stored? It gets stored in the Basic Stamp’s EEPROM. 5. How much memory does it take to store a character? A character is stored in a byte. 6. How much memory is a word? A word takes up two bytes. 7. Trick question: How long does a quarter note last? That depends on what you set the whole note to be equal to, but in general, for one beat. 8. What commands can you use to translate note letters (characters) in a DATA directive into their corresponding frequencies? LOOKUP and LOKDOWN commands can be used to match up letters to their corresponding frequencies. 9. What’s tempo? How do you figure out the value of a quarter note from the tempo? How do you figure out the value of a whole note? The length of time that each note lasts is related to the tempo. You can change the tempo by adjusting the Whole Note constant length. 10. What does the DCD operator do? What’s DCD 3 ? What’s DCD 4 ? What’s DCD 5 ? The DCD operator raises 2 to the power of the number indicated.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 07/25/2008 for the course ME 456 taught by Professor Radcliffe during the Fall '07 term at Michigan State University.

Page1 / 6

Ch8_Solutions_WAM2.2 - What's a Microcontroller Chapter 8...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online