A place users can post their projects. If you have a small project and would like your own dedicated place to post and have others chat about it then this is your spot.

User avatar
By eriksl
#21082
pvvx wrote:
eriksl wrote:I'm impressed, the sound quality is actually very acceptable!

At what frequency does the pwm run then?
Not classic PWM -> http://www.beis.de/Elektronik/DeltaSigm ... Sigma.html
Output: 2xInegrator: https://github.com/pvvx/mp3_decode/blob ... main.c#L75
Log sample: Rate 48000 x 32 bits.


Thx. I guess you you mean you compensate the lack of duty cycle resolution with more oversampling?
User avatar
By eriksl
#21083
tytower wrote:
pvvx wrote:
eriksl wrote:I'd expect rather poor sound quality though, as the pwm duty has only 8 bits resolution?

PWM_HACK = PWM 5 bits :)

Its reported elsewhere that it is 10 bit resolution?

Yes, from SDK 1.1.1 PWM seems to be "upgraded" to 10 bits resolution.

That's a lot better, but my simple atmega328p still beats it at large with 16 bits PWM!
User avatar
By alonewolfx2
#21084 @sprite_tm or @pvvx i am getting this and i am hearing just noise not music, any help?i defined pwm_hack
Code: Select allConnecting to server 188.40.123.50...
Reading into SPI RAM FIFO...
MAD: Decoder start.
dec err 0x0101 (lost synchronization)
Rate 22050
Buffer fill 21908, DMA underrun ct 0, buff underrun ct 0
Buffer fill 21893, DMA underrun ct 0, buff underrun ct 0
User avatar
By hdrut
#21115
alonewolfx2 wrote:@sprite_tm or @pvvx i am getting this and i am hearing just noise not music, any help?i defined pwm_hack
Code: Select allConnecting to server 188.40.123.50...
Reading into SPI RAM FIFO...
MAD: Decoder start.
dec err 0x0101 (lost synchronization)
Rate 22050
Buffer fill 21908, DMA underrun ct 0, buff underrun ct 0
Buffer fill 21893, DMA underrun ct 0, buff underrun ct 0



I had a similar problem. What output pin are you using? GPIO3 (RXD) is the correct one.
Rgds

Horacio