Lab 7 - Introduction In this lab, we create a digital piano...

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

View Full Document Right Arrow Icon
Introduction In this lab, we create a digital piano program that synthesizes an appropriate 1-bit note when a key is pressed on the terminal’s computer’s keyboard. The program also will play a pre- composed song if the “s” button is pressed. Equipment • 68HC12 evaluation board • MiniIDE and its respective requirements Procedure 1. Create a delay subroutine and calculate exactly how long it takes to execute with a given variable 2. Create a subroutine for each frequency that you want to use. Use the delay subroutine and calculate its parameter to create the correct frequency. The Subroutine should create only one period of the waveform times the parameter it’s given. 3. Create a music subroutine that calls appropriate frequency subroutines and calculate the duration and pass that as a parameter. 4. Start in with the main program by setting the direction of Port T and the origin of the Stack Pointer. 5.
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.

Page1 / 3

Lab 7 - Introduction In this lab, we create a digital piano...

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