Improve audio amplifier with Attiny

crutschow

Joined Mar 14, 2008
34,428
8 or 10 bit resolution on the PWM is pretty poor.
Most quality audio is at least 16-bits (e.g. CD audio).
The easiest to do a quality digital audio amplifier is just to use a Class D (PCM) audio IC.
 

Thread Starter

Motanache

Joined Mar 2, 2015
540
But I want with the microcontroller.
I want to implement digital filters and other things like that.

But in the first phase I just want to see it works like a simple amplifier.
If the AD is 16 bits, does the PWM still have 16 bits?
 

Thread Starter

Motanache

Joined Mar 2, 2015
540
<Not if the PWM generator is only 8-bits.>
PIC30F2020 has PWM fast on 16 bits but is more expensive. I hope to make a good choice.

<Then why did you suggest a PWM Audio IC as an alternate solution? o_O>
I think a 16-bit A / D converter at acceptable speed it's more expensive than an audio PCM.
I hope to find a type of PCM IC audio which can get the serial data into the microcontroller.
It would be good to incorporate an analogue processing of the input signal. Like an audio codec IC but for music(wider bandwidth) not just for voice.

Thank you for the question - because that's how I had the posibility to clarify what I meant.

It's a hobby project - do not be afraid to suggest ideas. If the suggestions will not work because it's a strange idea, no problem.
 
Last edited:

Thread Starter

Motanache

Joined Mar 2, 2015
540
What is the difference between ATMega and ATXMega?
I am very beginner with Atmel.
I read that ATXmega has a 12 bit A / D converter and 16 bits fast PWM.


If it is similar to ATMega it is simpler.
I'm buying Arduino Leonardo.
 

Thread Starter

Motanache

Joined Mar 2, 2015
540
Probably and please verify what I said:
Another way to do A / D conversion is:

The signal is compared with the sawtooth and a PWM is obtained.
Now PWM duty cycle is measured with PWM capture.

The advantage is that an 16 bits A / D conversion can be done on 16-bit microcontrollers.

Correct?
 
Top