how to change microphone ports in usb-audio-mic-array-software?

If you have a simple question and just want an answer.
Bootucal
Member
Posts: 8
Joined: Thu Jan 03, 2019 12:06 pm

how to change microphone ports in usb-audio-mic-array-software?

Postby Bootucal » Thu Jan 03, 2019 12:33 pm

I have a xcore-array-microphone-board which is running the app_usb_aud_mic_array software. It is working so far. But I want to expand it with more PDM-Microphones via the expansion header.
As my first step I tried to change the pins of the already implementet 8 PDM-microphones to the pins of external PDM microphones. So I could see if that works. But I can´t find out how to do that.
In the module_usb_audio is a file called pcm_pdm_mic.xc in which I found the following code:

Code: Select all

/* Hardware resources */
in port p_pdm_clk                = PORT_PDM_CLK;
in buffered port:32 p_pdm_mics   = PORT_PDM_DATA;
in port p_mclk                   = PORT_PDM_MCLK;
clock pdmclk                     = on tile[PDM_TILE]: XS1_CLKBLK_3;


Can anybody tell me where PORT_PDM_DATA is defined? I guess it would be the right point to implement my changes...
Thanks for any help!!
Luanvt4_fpt
Junior Member
Posts: 7
Joined: Wed Sep 12, 2018 9:13 am

Postby Luanvt4_fpt » Fri Jan 04, 2019 4:57 am

You can edit in your project file (for example: vfspk_base_*.xn).
<Port Location="XS1_PORT_8B" Name="PORT_PDM_DATA"/>
Please choose location has same size (8, 4, or 1)
Bootucal
Member
Posts: 8
Joined: Thu Jan 03, 2019 12:06 pm

Postby Bootucal » Fri Jan 04, 2019 12:55 pm

Thank you verry much!
Is there a possibility to group 4 one-Bit ports to one 4-bit port? I can adress all microphone-pins with XS1_PORT_8B but the pins of the expansion-header are only adressable like XS1_PORT_1G, XS1_PORT_1H, XS1_PORT_1I and so on...
But it would be nice if I could define a PORT_PDM_DATA_2 with all external microphones.
Hugo
Newbie
Posts: 1
Joined: Fri Jan 04, 2019 4:51 pm

Postby Hugo » Fri Jan 04, 2019 4:55 pm

i face an issue while defining my PORT_PDM_DATA. suggest some good solutions
Luanvt4_fpt
Junior Member
Posts: 7
Joined: Wed Sep 12, 2018 9:13 am

Postby Luanvt4_fpt » Sat Jan 05, 2019 4:20 am

Is there a possibility to group 4 one-Bit ports to one 4-bit port?
I think it can.
The XS1_PORT_8B is also a collection of 8 different pin positions.
Chapter 4 in this document "XVF3000/XVF3100-TQ128 Datasheet". Hope can help you.

Who is online

Users browsing this forum: No registered users and 46 guests