Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

PWM for regenerating Sound

Status
Not open for further replies.

3wais

Member level 4
Joined
Sep 12, 2011
Messages
70
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,288
Location
Alexandria,Egypt
Activity points
1,787
How can i use the PWM of timer 1 to regenerate sounds ?

I am using Atmega16
sound samples captured from 10 bit ADC at 125 KHz
 

Do you know how to use the PWM module in the AVR? If not, you should learn that first.

You can do it this way:
Set the period for 125kHz and "scale" the ADC values so that the maximum value lies within the value of the period register. Then, supply the scaled values of the ADC to the PWM module as the duty cycle. At the PWM output, use an audio amplifier.

alexxx and moottii have posted useful links. You should go through them.

Hope this helps.
Tahmid.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top