Basically what I did was to use Output Compare and RTI (both interrupts, RTI to determine length of sound and OC to determine frequency) to generate sound at certain frequencies with a piezo speaker connected to the output of the pin used for OC.
Once sound is produced at certain frequencies then all you need to know is what frequency produces what sound and then reading a music sheet match it to produce a song.
Hey, that's nice. How did you produce the sound?
mzc29 2 years ago
I don't know how to answer, hehe.
I mean I guess it depends on how deep is your knowledge about the 68HC12 or microprocessors in general.
Nmdck 2 years ago
Basically what I did was to use Output Compare and RTI (both interrupts, RTI to determine length of sound and OC to determine frequency) to generate sound at certain frequencies with a piezo speaker connected to the output of the pin used for OC.
Once sound is produced at certain frequencies then all you need to know is what frequency produces what sound and then reading a music sheet match it to produce a song.
Nmdck 2 years ago