I am developing a "smart" alarm clock. I need to determine how to I will generate the alarm sounds. The main requirement is the ability to generate loud sounds and to vary the sound volume. One option is to use a PIC18Fxx processor (already part of the circuit) to generate the alarm tones and then feed them through an audio amplifier IC and small speaker. I could use a digital potentiometer to vary sound volume, however if I could get the same effect by using the PIC's 10-bit PWM peripherals it would be ideal. Does anyone have code examples or strategies for creating such sound effects using a PIC processor? Thanks
- posted
18 years ago