background image

Hardware

 description 

UM1900 

 

8/20 

DocID027905 Rev 4 

 

 

2.2 

Audio acquisition strategy 

A digital MEMS microphone can be acquired via different peripherals, such as SPI, I²S, 
GPIO or DFSDM. It requires an input clock and it outputs a PDM stream at the same 
frequency of the input clock. This PDM stream is further filtered and decimated for 
conversion into PCM standard for audio transmission. 

Two different digital MEMS microphones can be connected on the same data line, 
configuring the first to generate valid data on the rising edge of the clock and the other on 
the falling edge, by setting the L/R pin of each microphone accordingly. On the X-
NUCLEO-CCA02M1 expansion board, two microphones share the same data line and can 
be managed differently, depending on the MCU capabilities. 

If a digital filter for sigma delta modulators (DFSDM) peripheral is available, the 
microphones can be routed to DFSDM channels, otherwise use the I²S peripheral for the 
first and the second microphone and the SPI peripheral for the third and the fourth. 

2.2.1 

DFSDM microphone acquisition 

The DFSDM peripheral generates the precise clock needed by the microphones and reads 
the data on the rising and falling edges of each PDM line. Acquired signals are then input 
to DSFDM filters for hardware filtering and decimation to generate standard PCM streams. 

An additional software high pass filtering stage removes any DC offset in the output 
stream. DMA is used to reduce MCU load. 

2.2.2 

I²S and SPI microphone acquisition 

In this scenario, a precise clock signal is generated by the I²S peripheral while the SPI is 
configured in slave mode and is fed by the same timing signal generated by I²S. This clock 
is then halved by a timer and input to the microphones. The SPI and I²S peripherals 
operate at twice the microphone frequency to read the data on both the rising and falling 
edges of the microphone clock, thus reading the bits of two microphones each. 

A software demuxing step separates the signal from the two microphones and allows 
further processing like PDM-to-PCM

a

 conversion. 

                                                      

a

 

For further information regarding MEMS microphone and PDM-to-PCM decimation, please refer to application 

note AN3998 on www.st.com.

 

Summary of Contents for X-NUCLEO-CCA02M1

Page 1: ...nd STMicroelectronics MP34DT01 M digital microphones It has two microphones soldered on board and it is compatible with digital microphone coupon boards such as STEVAL MKI129Vx and STEVAL MKI155Vx The...

Page 2: ...ion 7 2 1 USB connector and power source 7 2 2 Audio acquisition strategy 8 2 2 1 DFSDM microphone acquisition 8 2 2 2 I S and SPI microphone acquisition 8 2 3 Solder bridge configurations 9 2 3 1 Sol...

Page 3: ...3 Solder bridge configuration for 4 microphone acquisition 11 Table 4 Solder bridge configuration for 1 microphone acquisition 11 Table 5 Solder bridge configuration for 2 microphone acquisition 12 Ta...

Page 4: ...CCA02M1 on STM32 Nucleo board 5 Figure 3 Connection with STEVAL MKI155V1 7 Figure 4 General acquisition strategy using I S and SPI 9 Figure 5 Board schematic Part 1 16 Figure 6 Board schematic Part 2...

Page 5: ...ction between the STM32 Nucleo and the X NUCLEO CCA02M1 is designed for use with any STM32 Nucleo board When mounting the X NUCLEO CCA02M1 on the STM32 Nucleo ensure that all the pins are aligned with...

Page 6: ...ation of the board firmware package order code X CUBE MEMSMIC1 a utility running on the user s PC will complete the demo The user PC must have the following characteristics at least 128 MB of RAM 40 M...

Page 7: ...als for the synchronized acquisition of up to 4 microphones The board also provides USB streaming using the STM32 Nucleo microcontroller USB peripheral for this purpose a USB connector is available as...

Page 8: ...eral for the third and the fourth 2 2 1 DFSDM microphone acquisition The DFSDM peripheral generates the precise clock needed by the microphones and reads the data on the rising and falling edges of ea...

Page 9: ...ith appropriate solder bridges Clock routing can also be changed according to specific needs 2 3 1 Solder bridge roles The table below lists the solder bridge functions with respect to audio acquisiti...

Page 10: ...s Custom setups are also possible for ad hoc functionalities SB1 SB2 SB6 are reserved for the USB or Oscillator pins and are not part of the audio acquisition process These configurations depend on th...

Page 11: ...4 microphone acquisition SB Status SB7 Open SB8 Open SB9 Open SB10 Open SB11 Open SB12 Close SB13 Open SB14 Open SB15 Open SB16 Close SB17 Close SB18 Open SB19 Open SB20 Open SB21 Open In addition J2...

Page 12: ...d by the microphones In this scenario the clock is then halved by the timer and routed to the microphones to give them the right clock I S therefore reads values from both edges of the merged PDM line...

Page 13: ...ead values from both the edges of the merged PDM lines For this use case you need the following SB configuration Table 6 Solder bridge configuration for 4 microphone acquisition SB Status SB7 Close SB...

Page 14: ...port In order to accept Nucleo 144 boards morpho header connectors must be soldered on the relevant footprint available on the Nucleo You only need a pair of 2 x 38 pin stripline connectors for the ex...

Page 15: ...35 MIC_CLK_NUCLEO If SB12 is closed CN10 11 MIC_CLKx2 If SB8 is closed 12 OTG_FS_DP_NUCLEO If SB1 is closed 14 OTG_FS_DM_NUCLEO If SB2 is closed 15 MIC_PDM34 If SB10 is closed 25 MIC_PDM34 If SB17 is...

Page 16: ...Board schematics UM1900 16 20 DocID027905 Rev 4 5 Board schematics Figure 5 Board schematic Part 1 Figure 6 Board schematic Part 2...

Page 17: ...UM1900 Board schematics DocID027905 Rev 4 17 20 Figure 7 Board schematic Part 3 Figure 8 Board schematic Part 4...

Page 18: ...Layout UM1900 18 20 DocID027905 Rev 4 6 Layout Figure 9 Top layout Figure 10 Bottom layout...

Page 19: ...015 1 Initial release 28 Jan 2016 2 Minor text edits throughout document Updated Section Introduction Updated Section 3 3 Audio acquisition strategy Updated Section 3 4 Solder bridge configurations 14...

Page 20: ...sers are solely responsible for the choice selection and use of ST products and ST assumes no liability for application assistance or the design of Purchasers products No license express or implied to...

Reviews: