cancel
Showing results for 
Search instead for 
Did you mean: 

CODEC with STM32

DYann.1
Senior II

Hello,

I would like to know how to retrieve the acquisition values ​​: INPUT -> ADC -> SAI -> µP like the diagram below :

DYann1_0-1692602441481.png

I have a program that works for this : DMA -> SAI -> DAC But this is not the way I would have wanted to make my CODEC work. Do you have any idea how should i proceed ? Thanks in advance

30 REPLIES 30

Hi,

So I'll try if it works. Thank you. I use this headphone jack for samsung (I'm not sure is the CTIA type) for recording :

DYann1_0-1693552428699.png

I can hear the examples on the evaluation board (art of gard.wave and riding.wave). But when I select rec.wave to listen to what I recorded and I hear nothing. In the evaluation board, a white earphone is provided in the kit, do you know if it is compatible with the card for recording ?

DYann1_1-1693552840429.png

DYann.1
Senior II

Hi,

After trying with the headphones provided in the kit, it does not work either.

DYann1_0-1693565845878.png

I don't know if I need to put a jumper somewhere on the board for this to work ?

The later one, white headphone, should be the CTIA type headphone with microphone - as I remember, white join between points is CTIA type headphone.

I suppose the white headphone provided in the kit should support the board demonstration. You may plug it to your mobile phone to check if it can record voice. 

about jumper setting, you may refer to readme file already shared at github.


@jiangfan wrote: You may plug it to your mobile phone to check if it can record voice.

Now phones no longer have a headphone jack, only with bluetooth. And about the readme file there is nothing special :

DYann1_0-1693647259921.png

In principle this should work but it doesn't. Where is the error ?

 

in case you don't have phone to verify the earphone, you may check earphone signal with oscilloscope when plugging headphone to the audio jack of board.

Did you verify the jumper setting?

@note Jumpers setup on MB1372_L552ZEQ-C02:
   JP1  : OPENED        / JP4  : 1-2 (LEFT)    / JP5  : 1-2 (LEFT)    / JP6  : CLOSED
   JP7  : 1-2 (RIGHT)   / JP8  : 1-2 (LEFT)    / JP9  : 1-2 (DOWN)    / JP10 : CLOSED
   JP11 : 1-2 (LEFT)    / JP12 : 1-2 POT       / JP13 : 2-3 OPAMP     / JP14 : OPENED
   JP15 : 1-2 (VDD)     / JP16 : 5V-STLK       / JP17 : 1-2 (RIGHT)   / JP18 : OPENED
   JP19 : OPENED        / JP20 : OPENED        / JP21 : OPENED        / JP22 : OPENED
   JP23 : OPENED        / CN12 : OPENED        / CN23 : OPENED

 

The earphone is ok and, really and I think there is no problem with headphones + microphone.


@jiangfan wrote:

Did you verify the jumper setting?

@note Jumpers setup on MB1372_L552ZEQ-C02:
   JP1  : OPENED        / JP4  : 1-2 (LEFT)    / JP5  : 1-2 (LEFT)    / JP6  : CLOSED
   JP7  : 1-2 (RIGHT)   / JP8  : 1-2 (LEFT)    / JP9  : 1-2 (DOWN)    / JP10 : CLOSED
   JP11 : 1-2 (LEFT)    / JP12 : 1-2 POT       / JP13 : 2-3 OPAMP     / JP14 : OPENED
   JP15 : 1-2 (VDD)     / JP16 : 5V-STLK       / JP17 : 1-2 (RIGHT)   / JP18 : OPENED
   JP19 : OPENED        / JP20 : OPENED        / JP21 : OPENED        / JP22 : OPENED
   JP23 : OPENED        / CN12 : OPENED        / CN23 : OPENED

With the STM32L552E-EV Evaluation board, we have the µP : STM32L552ZET6QU and not MB1372_L552ZEQ-C02. Right ?

But in doubt I've checked and all jumpers are ok. 

as not clear if microphone of headphone OK or not, I think it should be possible to manually connect 1kHz or 2kHz sine or square waveforms to microphone pin of audio jack connecter, and record should be functional.


@jiangfan wrote:

as not clear if microphone of headphone OK or not.


Now I'm sure that both microphone of headphone (white and black) work, I recorded sound (microphone of headphone) with his headphones via VLC+Laptop and it works. So how does the demo program work ? It's not necessary to connect a 1kHz or 2 kHz sine to the microphone, it's not very clean DIY.

Otherwise, I can connect GBF(+) to PIN 2 of the CN21 connector and GBF (-) to PIN 3 of the CN21 connector. 

DYann1_0-1693828781009.png

For a microphone input, I think it is a -60dBV level or 1mV. I'll check if I can get 1mV with my GBF. what do you think ? Is this reasoning correct ?

Zaher
Senior II

I'm designing a custom board with the WM8994 audio codec. I noticed that 'G2' pad (CS#/ADDR) is pulled up to VDD through a 10k resistor. However, on some other evaluation boards, the resistor was NC (omitted). I wonder what was the correct setting on this pad?

...depends on interface , you want to use. -> cifmode setting !

if only I2C , then addr function, set 1 or 0 , selects address. (if internal pullup...leave open - but i didnt see spec for this ! so better pull to 0 or 1 . )

AScha3_0-1697376961259.png

just see ds .

If you feel a post has answered your question, please click "Accept as Solution".