/var/www/restricted/ssh/stm32/www/stm32circle/ STM CircleOS forum / Distortion on audio output

Username:     
Password:     
             

Forum

# 1   2009-03-02 19:01:09 Distortion on audio output

repzak
Member
Registered: 2008-03-05
Posts: 170

Distortion on audio output

Hello,

Anyone tried to run audio out at 44.1Khz?

I have en small example running, but there are some distortion, i can't figure out if it is hardware or software related...

Anyone have perfect sound out?

Kasper

Offline

 

# 2   2009-03-02 19:29:39 Distortion on audio output

repzak
Member
Registered: 2008-03-05
Posts: 170

Re: Distortion on audio output

Btw.. Could be issues with IRQ functions...

I think i have seen SPI3 has the highest priority, am i correct on that?

Kasper

Offline

 

# 3   2009-03-02 20:09:11 Distortion on audio output

Francis
Administrator
From: France-Grenoble
Registered: 2007-07-09
Posts: 890

Re: Distortion on audio output

The highest priority is for Timer2, that calls the management of the SPI (for the MEMS) and the I2C. The problem with I2C+audio is that it freezes when it is interrupted... Thus, we had to keep the highest priority for this.

Offline

 

# 4   2009-03-02 21:09:49 Distortion on audio output

repzak
Member
Registered: 2008-03-05
Posts: 170

Re: Distortion on audio output

Hello,

This is what i get from the Source:

SPI3
PreemptionPriority = 0
SubPriority = 0

TIM2
PreemptionPriority = 1
SubPriority = 1

Systick
PreemptionPriority = 3
SubPriority = 3

So, for me it seems the highst irq are SPI3 and it can interupt the other interupts...??

or do i understand it uncorrectly?

Kasper

Offline

 

# 5   2009-03-03 21:38:47 Distortion on audio output

Francis
Administrator
From: France-Grenoble
Registered: 2007-07-09
Posts: 890

Re: Distortion on audio output

It seems that you are right... sorry.

Offline

 

Board footer