Objective: Use interrupts and timers
Setup and test the tone generation hardware
Feasibility study on the notes and frequencies that can be computed in real time
by the 8051
8051 Assembly language (everything will be 'C' after this)
Instructions
Note: This lab requires more thinking than coding, which is appropriate since we
are doing assembly language!
Turn in
interrupt routine: set flag
main: while(1) {
if (flag)
do time sensitive operations;
clear flag;
}
In some cases, this is a fine idea, and it makes for a very short interrupt routine but in this case, it doesn't guarantee that your time sensitive operations happen on time.