AIM: Tone generation with Different delay.
THEORY:
Tone generation using
digital I/O is simply creating a square wave of appropriate frequency. For this
we can use the previous program of LED flashing as the base program. When we
flash an LED, we use large delay for LED flashing to be visible. However, the
tone frequencies are typically large. So the only modification required is to
create separate delay routines with various delay values, typically in the
range of 100uSec to 50mSec.