WAN_0263 - Cirrus Logic

w
WAN_0263
Interfacing WM72xx Digital Microphones
INTRODUCTION
Wolfson’s WM72xx DMIC (Digital Microphone) offers best in class, low noise performance with PDM
(Pulse Density Modulation) output. As the digital interface provides direct connection to the CODECs
digital domain, the DMIC requires less external components and PCB area. This provides a simplified
interface connection and gives a higher robustness to system noise interference compared to an
analogue microphone interface.
Wolfson provides a wide range of audio CODECs with single or multiple DMIC input interfaces.
Connectivity is achieved using a simple 2 wire CLK and DATA interface. As each DMIC interface
supports up to 2 microphones, the DMIC interface is more flexible and makes it easier to implement
additional microphones to support stereo recording, ambient noise cancellation, microphone array or
beam forming features into single DMIC voice recording applications. Further information on system
solutions with Wolfson’s CODECs and Microphones is available in WAN_0225.
ADVANTAGE
DIGITAL MICROPHONE
ANALOGUE MICROPHONE
Noise
performance
Digital Interface signals are more robust to
system noise coupling.
Careful design consideration
required for the sensitive analogue
interface signals.
External
components
Direct interface to CODECs with digital
microphone interface, significant saving on
PCB area with more microphones in
system
Each input supports only one
microphone with DC isolation
capacitor required.
Application
Suitable for one or more microphones in
the system. Flexibility to add additional
microphones into the application.
More suitable for single
microphone applications.
Table 1 Digital vs Analogue Microphone
This application note details the interface of the DMIC to CODEC to achieve optimum microphone
performance in the system.
PDM SIGNAL
The DMIC incorporates a sigma-delta architecture and hence outputs a 1-bit PDM signal to represent
the acoustic input signal. A typical PDM representation of an analogue sine wave is shown in Figure 1
PDM Representation of Analogue Input Sine Wave. High occurrences of ‘1’ represents the positive
cycle and vice versa for the negative cycle with higher density of ‘0’s. In other words, the amplitude of
the analogue signal is encoded by the density of bits. The DMIC interface supports single or dual
WM72xx DMICs with separate PDM streams multiplexed together on different clock edges.
Figure 1 PDM Representation of Analogue Input Sine Wave
WOLFSON MICROELECTRONICS plc
August 2013, Rev 1.1
Copyright 2013 Wolfson Microelectronics plc
WAN_0263
Customer Information
The DMIC interface with PDM output is much more robust and insensitive to noise on the PCB as the
critical analogue domain is shielded inside the DMIC. The analogue signal from the MEMS transducer
in the DMIC is sampled at high speed into 1 bit ADC and PDM output at the applied DMIC CLK rate.
The estimated signal bandwidth (BW) available from the DMIC, PDM output is:
BW = Fclk / 100
Where:
BW = signal bandwidth available from PDM
Fclk = DMIC input CLK frequency
Given the microphone internal oversampling rate is 50FS
The DMIC interfaces directly to the CODECs digital domain without any analogue pre amplifier or
gain stage required. The PDM signal is down sampled by the decimation filters in the CODEC into
PCM (Pulse Code Modulation) at much lower sampling frequency with n bits (n > 1 bit) in audio
samples to represent the signal amplitude.
The DMIC CLK frequency is in the range 1 to 3.25MHz and will depend on CODEC internal clocking
scheme. However, CODECs support a standard sampling clock frequency for PCM output. Therefore,
the DMIC CLK frequency must be chosen to support the targeted signal bandwidth in PCM.
For example, A CODEC ADC sampling at 48 KHz, the PCM signal bandwidth is BW = 48 KHz/2 = 24
kHz. Therefore, the minimum DMIC CLK frequency required Fclk(min) = 2.4MHz. If the DMIC is given
1.536MHz DMIC CLK, the available PDM bandwidth is limited to 15.36 KHz; the limited bandwidth in
PDM will be translated into higher noise floor observed in the PCM signal from 15.36 KHz to 24 kHz.
CONNECTION TO CODECS
Figure 2
Mono Digital Microphone Interfaceshows the mono DMIC interface connection to the
CODEC. The PDM DAT (Data) outputs data on the rising or falling edges of the incoming CLK
(Clock) signal based on the LRSEL pin. The DAT output is high impedance when not outputting logic
data at the other edges. Due to high output impedance and the line capacitance, the DAT line shows
the same logic status as when it is enabled on the previous clock cycle. In other words, same logic
status on DAT appears for both rising and falling CLK edges with mono DMIC.
Figure 2 Mono Digital Microphone Interface
There are two ADCs in the CODEC share the same input DAT line, when both ADCs are turned on,
both ADCs will register the same logic status from the mono digital microphone as detailed earlier.
Therefore it is recommended to turn on the selected ADC channel according to LRSEL pin to avoid
stereo recording of two ADCs from the mono digital microphone.
w
Customer Information
August 2013, Rev 1.1
2
WAN_0263
Customer Information
Figure 3 Stereo Digital Microphone Interface
The output characteristic of the DMIC enables the output of two microphones to be connected
together in a stereo configuration as in Figure 3 Stereo Digital Microphone Interface. The data from
one microphone is interleaved with the data from the others. The Left channel is transmitted following
the rising CLK edge when LRSEL = 1. Therefore the Left channel should be sampled by the CODEC
on the falling edge. Similarly when LRSEL = 0, the DMIC is set as right channel. In this case, the right
channel DMIC is sampled by the CODEC on the rising CLK edge. The output data on the stereo
DMIC configuration is summarised in Figure 4 Output Data on Stereo DMIC Configuration.
Figure 4 Output Data on Stereo DMIC Configuration
The design ensures DMIC data output is always delayed compared to the output disable into high
impedance mode, care must be taken to ensure the CLK and DAT tracks to the two microphones are
equal length to get the same delays, to secure a safe timing margin when two microphone are used in
the stereo recording.
w
Customer Information
August 2013, Rev 1.1
3
WAN_0263
Customer Information
SUPPLY DECOUPLING
The DMIC VDD pin should be powered at the same supply voltage level as the CODEC DBVDD
(Digital Buffer Voltage) to ensure both the CLK and DAT signals are operating within the digital
voltage limits. As common practice in digital design, decoupling capacitors are required for each
component on the same power supply voltage as DMIC VDD to ensure effective noise filtering.
For an effective decoupling scheme, the DMIC GND pin should be connected to a solid ground plane
and share the same ground plane as the CODEC. As a general guideline a 0.1µF decoupling
capacitor is recommended for DMIC VDD pin. The decoupling capacitor provides low impedance
between the power and solid ground plane. Therefore, this should be positioned close to the VDD pin
of each DMIC in a stereo microphone application. A ceramic 0.1µF capacitor with X7R dielectric or
better is recommended.
SIGNAL ROUTING
The DMIC can be directly surface mounted to the same board as the CODEC, mounted separately on
flexible PCB or small peripheral board for strategic acoustic considerations. In any case, the track or
transmission line for the CLK and DAT will have several sections, each with different characteristic
impedance (Z0). Since any changes in impedance along the track will cause reflection, the circuit will
often generate multiple reflections with fast CLK edges from the CODEC, which can result in the
incorrect decoding of PDM signal or overall performance degradation in the signal chain. Therefore
careful consideration of CLK and DAT routing are recommended to avoid ringing in the DMIC
interface.
As a general rule for digital audio interfaces, transmission line effects will be evident on PCB tracks
whose length is greater than 50mm. The characteristic impedance of such a track, based on signal
rise/fall times of 2ns-6ns, will be in the range 33Ω to 150Ω.
Figure 5 Source Termination of Single DMIC Circuit
For a single DMIC application with irregular CLK edges observed on oscilloscope, a series resistor on
the CLK line needs to be added close to the CODEC in order to match the source impedance (Zs Total)
to the track impedance. The value of the external resistor is chosen according to the output
impedance of the CLK source (Zs) and the characteristic impedance (Z0) of the transmission line as
follows:
Zs Total = Zs Internal + Zs External = Z0
In other words,
Zs External = Z0 – Zs Internal
For application design incorporating ribbon cable or flexible PCB interconnection for the DMIC
interface, the GND track should be routed next to the CLK track in order to secure uniform
characteristic impedance (Z0) along the track. Source termination is recommended to minimize the
reflection and potential EMI from high frequency components due to fast clock edges.
As each DMIC interface supports up to two microphones, Figure 6 Source Termination for Stereo
Microphone Interface shows the source termination scheme for stereo microphone configuration. Two
equal and smaller value external resistors are required as follows:
Zs Total = 2 x Zs Internal + Zs External = Z0
w
Customer Information
August 2013, Rev 1.1
4
WAN_0263
Customer Information
In other words,
Zs External = Z0 – 2 x Zs Internal
The stereo source termination scheme works when the two CLK tracks are of equal length with the
same characteristic impedance. Serpentine track line is recommended for the DMIC populated closer
to the source to ensure equal delays applied to two DMICs.
Figure 6 Source Termination for Stereo Microphone Interface
SUMMARY
The DMIC interface offers seamless integration with Wolfson CODECs. With the design consideration
as discussed in this application note, the system designer can take full advantage of the Wolfson
DMIC to meet the most demanding acoustic design challenges in the system application.
w
Customer Information
August 2013, Rev 1.1
5
WAN_0263
Customer Information
TECHNICAL SUPPORT
If you require more information or require technical support, please contact the nearest Wolfson
Microelectronics regional office:
http://www.wolfsonmicro.com/contact
or one of our global distributors:
http://www.wolfsonmicro.com/distribution
w
Customer Information
August 2013, Rev 1.1
6
Customer Information
WAN_0263
IMPORTANT NOTICE
Wolfson Microelectronics plc (“Wolfson”) products and services are sold subject to Wolfson’s terms and conditions of sale, delivery
and payment supplied at the time of order acknowledgement.
Wolfson warrants performance of its products to the specifications in effect at the date of shipment. Wolfson reserves the right to
make changes to its products and specifications or to discontinue any product or service without notice. Customers should therefore
obtain the latest version of relevant information from Wolfson to verify that the information is current.
Testing and other quality control techniques are utilised to the extent Wolfson deems necessary to support its warranty. Specific
testing of all parameters of each device is not necessarily performed unless required by law or regulation.
In order to minimise risks associated with customer applications, the customer must use adequate design and operating safeguards
to minimise inherent or procedural hazards. Wolfson is not liable for applications assistance or customer product design. The
customer is solely responsible for its selection and use of Wolfson products. Wolfson is not liable for such selection or use nor for
use of any circuitry other than circuitry entirely embodied in a Wolfson product.
Wolfson’s products are not intended for use in life support systems, appliances, nuclear systems or systems where malfunction can
reasonably be expected to result in personal injury, death or severe property or environmental damage. Any use of products by the
customer for such purposes is at the customer’s own risk.
Wolfson does not grant any licence (express or implied) under any patent right, copyright, mask work right or other intellectual
property right of Wolfson covering or relating to any combination, machine, or process in which its products or services might be or
are used. Any provision or publication of any third party’s products or services does not constitute Wolfson’s approval, licence,
warranty or endorsement thereof. Any third party trade marks contained in this document belong to the respective third party owner.
Reproduction of information from Wolfson datasheets is permissible only if reproduction is without alteration and is accompanied by
all associated copyright, proprietary and other notices (including this notice) and conditions.
Wolfson is not liable for any
unauthorised alteration of such information or for any reliance placed thereon.
Any representations made, warranties given, and/or liabilities accepted by any person which differ from those contained in this
datasheet or in Wolfson’s standard terms and conditions of sale, delivery and payment are made, given and/or accepted at that
person’s own risk. Wolfson is not liable for any such representations, warranties or liabilities or for any reliance placed thereon by
any person.
ADDRESS:
Wolfson Microelectronics plc
Westfield House
26 Westfield Road
Edinburgh
EH11 2QB
United Kingdom
Tel :: +44 (0)131 272 7000
Fax :: +44 (0)131 272 7001
w
Customer Information
August 2013, Rev 1.1
7