Infineon MERUS MA2304DNS User Manual

Infineon MERUS MA2304DNS User Manual

Audio amplifier configurator
Hide thumbs Also See for MERUS MA2304DNS:

Advertisement

Quick Links

UM_2206_PL88_2207_235705
User manual for MERUS™ audio amplifier
configurator
MA2304DNS/MA2304PNS

About this document

Scope and purpose
This document describes how to install and use the MERUS™ audio amplifier configurator graphical user
interface (GUI), its DSP flows and algorithms.
Intended audience
Audio product design engineers, software engineers and tuning engineers.
Attention:
Please read through this user manual before operating the board.

Stuck or in need of help?

Support for Infineon's class D audio portfolio can be found quickly and easily by visiting the
Amplifier IC Forum
audio applications team that are ready to provide timely support, helping you get your designs done quickly,
reliably, and right the first time.

Safety precautions

Note:
Please note the following warning regarding the hazards associated with development systems.
Table 1
Safety precautions
User Manual
www.infineon.com/merus
or by visiting community.infineon.com. The community forum features members of the
Caution: The evaluation or reference board contains parts and assemblies sensitive to
electrostatic discharge (ESD). Electrostatic control precautions are required when
installing, testing, servicing or repairing the assembly. Component damage may result
if ESD control procedures are not followed. If you are not familiar with electrostatic
control procedures, refer to the applicable ESD protection handbooks and guidelines.
Please read the sections "Important notice" and "Warnings" at the end of this document
1
Class D Audio
V 1.1
2022-09-12

Advertisement

Table of Contents
loading

Summary of Contents for Infineon MERUS MA2304DNS

  • Page 1: About This Document

    Attention: Please read through this user manual before operating the board. Stuck or in need of help? Support for Infineon’s class D audio portfolio can be found quickly and easily by visiting the Class D Audio Amplifier IC Forum or by visiting community.infineon.com. The community forum features members of the audio applications team that are ready to provide timely support, helping you get your designs done quickly, reliably, and right the first time.
  • Page 2: Table Of Contents

    User manual for MERUS™ audio amplifier configurator MA2304DNS/MA2304PNS Table of contents Table of contents About this document ........................1 Stuck or in need of help? ......................... 1 Safety precautions .......................... 1 Table of contents ..........................2 Quick start ..........................3 What’s included ............................
  • Page 3: Quick Start

    User manual for MERUS™ audio amplifier configurator MA2304DNS/MA2304PNS Quick start Quick start This section covers hardware configuration, software installation and running the MERUS™ audio amplifier configurator. What’s included The evaluation kit box comes with: EVAL_AUDIO_MA2304xNS board • Three interface boards (analog in, S/PDIF coax and S/PDIF optical) •...
  • Page 4: Software Installation

    The MERUS™ audio amplifier configurator can be downloaded by visiting https://softwaretools.infineon.com/ and registering your board. Once registered, the software can be installed through the Infineon developer center launcher or downloaded as a separate installer file. This will also install all the necessary device drivers to communicate with the MA2304xNS evaluation board.
  • Page 5: Running The Merus™ Audio Amplifier Configurator

    User manual for MERUS™ audio amplifier configurator MA2304DNS/MA2304PNS Quick start Running the MERUS™ audio amplifier configurator Prior to launching the software: Power up the P DC power supply. 18 V is recommended for typical evaluation. Connect the Micro USB cable from the computer to the MA2304xNS board. Connect an audio source to the interface board input (analog, S/PDIF coax or optical) and keep it muted.
  • Page 6 User manual for MERUS™ audio amplifier configurator MA2304DNS/MA2304PNS Quick start indicator means that the software can communicate with the MA2304xNS device. To access advanced device features and DSP flows, click the button and select the Configuration option: Figure 6 Configuration dropdown menu The Configuration page should now appear.
  • Page 7: The Merus™ Audio Amplifier Configurator

    User manual for MERUS™ audio amplifier configurator MA2304DNS/MA2304PNS The MERUS™ audio amplifier configurator The MERUS™ audio amplifier configurator The MERUS™ audio amplifier configurator is a GUI used to fully evaluate the MA2304xNS features. It provides access to the the MA2304xNS device registers through the use of simple controls as well as a register browser. The MA2304DNS can run various DSP flows specifically tailored for audio applications.
  • Page 8: Mcu Connected Mode

    User manual for MERUS™ audio amplifier configurator MA2304DNS/MA2304PNS The MERUS™ audio amplifier configurator MCU connected mode If the MA2304xNS device is not detected, the following screen will appear instead: Figure 10 MCU connected mode In this case, there is still connection to the onboard MCU, but not the amplifier. This screen only contains a refresh button and a green connection light indicating that a connection is made with the onboard MCU.
  • Page 9: Using The Software

    User manual for MERUS™ audio amplifier configurator MA2304DNS/MA2304PNS Using the software Using the software Initial screen The initial screen has various indicators and controls, as shown in Figure 11 Figure 12. The name and description of each are also provided in these figures. Figure 11 Initial screen indicators To access advanced device features and DSP flows, click the...
  • Page 10 User manual for MERUS™ audio amplifier configurator MA2304DNS/MA2304PNS Using the software Additional information is available as tooltips by hovering the mouse cursor on top of a control or indicator, as shown below: Figure 13 Tooltips Tooltips can be enabled or disabled in the settings menu: Figure 14 Enable or disable tooltips...
  • Page 11 User manual for MERUS™ audio amplifier configurator MA2304DNS/MA2304PNS Using the software Figure 16 Configuration menu Clicking “Configuration” opens the Configuration window, which is covered in the next section. “Save configuration” saves the device state, including register settings and DSP flow into a folder. In addition, it generates .csv files, which can be used to import into a product.
  • Page 12: Configuration Window

    User manual for MERUS™ audio amplifier configurator MA2304DNS/MA2304PNS Using the software Configuration window Use the Configuration menu in the initial screen to open the Configuration window. The Configuration window provides access to device features, DSP flows (MA2304DNS only), a register browser and real-time status indicators.
  • Page 13 User manual for MERUS™ audio amplifier configurator MA2304DNS/MA2304PNS Using the software Power mode monitor The power mode monitor shows the current active power mode per channel in real time. Two power mode profiles can be selected: Low power consumption (LPC) – low power consumption, slightly higher noise •...
  • Page 14: I 2 S/Tdm Page

    User manual for MERUS™ audio amplifier configurator MA2304DNS/MA2304PNS Using the software 3.2.2 S/TDM page On the I S/TDM page, communication-related configurations can be set up. The I S configuration is default. To route the I S output out of the MA2304DNS, it is necessary to enable the “TX_ENABLE” control and load a DSP program that supports this.
  • Page 15 User manual for MERUS™ audio amplifier configurator MA2304DNS/MA2304PNS Using the software Rx source controls Selects Rx_0 (left) and Rx_1 (right) DIN source. Each control has a range of 0 to 15 slots. These slots are usually sourced by an application processor or MCU. TX_ENABLE and TX_DRIVE_STENGTH controls The TX_ENABLE control enables/disables I2S_DO output data from the DSP.
  • Page 16: Dsp Page

    User manual for MERUS™ audio amplifier configurator MA2304DNS/MA2304PNS Using the software 3.2.3 DSP page The DSP page has multiple audio DSP flows to choose from and program into the MA2304DNS internal DSP. It contains a graphical view of the current DSP flow and a plot of the expected amplitude and phase responses with options for viewing single channels or combined responses.
  • Page 17 User manual for MERUS™ audio amplifier configurator MA2304DNS/MA2304PNS Using the software OPEN, SAVE and APPLY buttons A DSP flow can be saved and loaded through these controls. To program a DSP flow onto the device, press APPLY and wait until the warning symbol is gone. In some cases, it will be necessary to press twice. In earlier software versions it is necessary to mute the device before clicking APPLY.
  • Page 18 User manual for MERUS™ audio amplifier configurator MA2304DNS/MA2304PNS Using the software Speaker properties Double-clicking any of the speakers in the DSP flow will pop up a “speaker properties” window. In addition to assigning a custom label to the speakers, frequency response measurements (.csv format) can be imported by clicking the browse button.
  • Page 19: Example 1: Eq Filter Response Plot

    User manual for MERUS™ audio amplifier configurator MA2304DNS/MA2304PNS Using the software Frequency response plot The frequency response plot can be configured to display the amplitude and phase of: The summed response of any combination of output channels • Any individual block in the DSP flow diagram •...
  • Page 20: Example 2: Importing A Custom Speaker Measurement And Eqing

    User manual for MERUS™ audio amplifier configurator MA2304DNS/MA2304PNS Using the software Figure 26 Frequency response plot To observe the contribution of a single filter, check the “Selected Block’s Amplitude” option: Figure 27 Selected Block’s Amplitude Then, left-click the desired biquad block: Figure 28 Biquad block The plot will now display a combination of the first biquad response along with the overall DSP flow response:...
  • Page 21 User manual for MERUS™ audio amplifier configurator MA2304DNS/MA2304PNS Using the software Then, configure the checkboxes as shown below to show its amplitude response plot: Figure 31 Amplitude response plot We will now try to flatten the frequency response by configuring some biquads – an EQ cut, a bass shelf and a low-pass filter: Figure 32 Configure biquads...
  • Page 22 User manual for MERUS™ audio amplifier configurator MA2304DNS/MA2304PNS Using the software A left click on the “Speaker_1” icon reveals the unmodified speaker response (light blue) along with the flattened response (darker blue) for comparison: Figure 34 Speaker response comparison User Manual V 1.1 2022-09-12...
  • Page 23: Register Browser Page

    User manual for MERUS™ audio amplifier configurator MA2304DNS/MA2304PNS Using the software 3.2.4 Register browser page The register browser contains detailed information about the many registers of the MA2304xNS. However, this should only be applied in rare cases where it is necessary to modify an uncommon setting. If it is necessary to modify some registers in the register browser, it is best to use the search function in the upper left corner to find the registers.
  • Page 24: Status Page

    User manual for MERUS™ audio amplifier configurator MA2304DNS/MA2304PNS Using the software 3.2.5 Status page On the status page, device warnings and errors can be monitored. Figure 36 Status page Real-time active indicators These indicators show active warnings and errors as an orange or red light. Accumulated (sticky) indicators These warnings or errors will be shown as a colored circle around the indicator.
  • Page 25: Dsp Flows

    User manual for MERUS™ audio amplifier configurator MA2304DNS/MA2304PNS DSP flows DSP flows This section covers additional details on the MA2304DNS DSP flows. As shown in the screenshot below, the DSP page block diagram is comprised of hardware level blocks, MA2300 blocks and a DSP flow. In addition, the DSP flow itself contains interconnected DSP audio blocks.
  • Page 26: Dsp Flow Application Examples

    User manual for MERUS™ audio amplifier configurator MA2304DNS/MA2304PNS DSP flows There are three categories of DSP flows to select from, based on sample rate: 32, 44.1 and 48 kHz • 88.2 and 96 kHz • 176.4 and 192 kHz • The higher the sample rate category, the higher the bandwidth, but fewer instructions per sample are available for DSP processing.
  • Page 27 User manual for MERUS™ audio amplifier configurator MA2304DNS/MA2304PNS DSP flows Figure 39 Output 0 configuration This setting scales the left and right input signals by two such that their sum results in unity gain. Requirements 2, 3 and 4: output power limiting and P voltage The goal for these requirements is to keep the loudspeaker RMS and peak power under control.
  • Page 28 User manual for MERUS™ audio amplifier configurator MA2304DNS/MA2304PNS DSP flows �� ��ℎ = 20 log( ) − �� [��������] ���� √ 2 This results in an RMS limiter threshold Th = -8.2 dB and a peak limiter threshold Th = -2.2 dB. These values can be entered into the volume limiter block window, as shown below: Figure 40 Volume limiter block window...
  • Page 29: Dsp Audio Blocks

    User manual for MERUS™ audio amplifier configurator MA2304DNS/MA2304PNS DSP audio blocks DSP audio blocks This section explains each of the DSP flow audio blocks available in detail. Biquad block Figure 41 Biquad block The biquad audio block is a generic second-order IIR filter for high-pass, low-pass, parametric EQ (peaking), notch, shelf and custom filters.
  • Page 30 User manual for MERUS™ audio amplifier configurator MA2304DNS/MA2304PNS DSP audio blocks This can be useful when designing second-order crossover filters, where there is a 180-degree phase shift between the low-pass and high-pass filter outputs. Bypass When configured as bypass, the input signal flows to the output unaffected. Low-pass and high-pass filters The low-pass and high-pass filters have two controls: a filter subtype dropdown menu and a cut-off frequency control:...
  • Page 31 User manual for MERUS™ audio amplifier configurator MA2304DNS/MA2304PNS DSP audio blocks Table 6 Parametric EQ filter controls Control name Description Min. Default Max. Unit Filter subtype Analog filter prototypes Frequency Low-pass/high-pass cut-off (f 1000 frequency Q-value Filter quality factor. Affects frequency 10.0 response and damping in time domain.
  • Page 32 User manual for MERUS™ audio amplifier configurator MA2304DNS/MA2304PNS DSP audio blocks Parametric EQ (peaking) filter The parametric EQ filter has three controls: “frequency”, “gain” and “Q-value”: Table 7 Parametric EQ filter controls Control name Description Min. Default Max. Unit Frequency The center frequency (f ) where the 1000...
  • Page 33 User manual for MERUS™ audio amplifier configurator MA2304DNS/MA2304PNS DSP audio blocks Low shelf and high shelf filters A shelf filter boosts or cuts the magnitude below or above a frequency band. In the case of a low shelf, the lower frequency band is boosted/cut while, in the case of a high shelf, the higher frequency band is boosted/cut.
  • Page 34 User manual for MERUS™ audio amplifier configurator MA2304DNS/MA2304PNS DSP audio blocks Notch filter The “notch filter” is a band-rejection filter with a narrow stop-band (typically) and high attenuation. This filter is typically used to remove unwanted/problematic noise (e.g., humming). The notch filter has two controls: “Frequency” and “Q-value”, as shown below: Table 9 Notch filter controls Control name...
  • Page 35 User manual for MERUS™ audio amplifier configurator MA2304DNS/MA2304PNS DSP audio blocks The “custom filter” allows the user to input biquad coefficients manually, giving flexibility to implement any biquad filter prototype in this block. The custom filter has six input fields, with three corresponding to the biquad numerator and three corresponding to the biquad denominator: As shown in the previous image, the biquad transfer function is defined as: −1...
  • Page 36 User manual for MERUS™ audio amplifier configurator MA2304DNS/MA2304PNS DSP audio blocks Figure 47 Custom EQ filters with 9 dB gain, f = 3 kHz and Q = 1, 2 and 3 In this example, a higher Q results in a narrower peak and vice versa. User Manual V 1.1 2022-09-12...
  • Page 37: Volume Control/Limiter Block

    User manual for MERUS™ audio amplifier configurator MA2304DNS/MA2304PNS DSP audio blocks Volume control/limiter block Figure 48 Volume control/limiter block The “volume limiter” block is a peak and/or RMS-based limiter, typically at the end of a DSP flow, that helps keep signal levels, on average, below a certain level. A limiter can be extremely useful in audio applications; from driving loudspeakers within its rated power, keeping the amplifier IC temperature controlled to making music and voice sound louder and more intelligible.
  • Page 38 User manual for MERUS™ audio amplifier configurator MA2304DNS/MA2304PNS DSP audio blocks Pre-gain control The pre-gain control is a global gain of the limiter block applied at the beginning of both the peak and RMS limiters. In terms of the limiter input/output curve, it shifts the curve horizontally, as shown in Figure Table 11 Pre-gain control...
  • Page 39 User manual for MERUS™ audio amplifier configurator MA2304DNS/MA2304PNS DSP audio blocks Table 13 Peak and RMS limiter controls Control name Description Min. Default Max. Unit Limiter Enables or disables the limiter Threshold The input level in which limiting begins Attack time The time period it takes for the limiter to attenuate by Peak...
  • Page 40: Limiter Details

    User manual for MERUS™ audio amplifier configurator MA2304DNS/MA2304PNS DSP audio blocks 5.2.2 Limiter details A limiter functions based on a static input-to-output relationship and time domain parameters. The input-to-output relationship is typically represented by an input/output curve, in decibels. Any static gain setting applied to the input signal will shift the entire curve horizontally.
  • Page 41 User manual for MERUS™ audio amplifier configurator MA2304DNS/MA2304PNS DSP audio blocks The plot below shows an example of the effect the time domain parameters have on the limiter output waveform. In this example, a large input signal above the programmed limiter threshold is detected and is then attenuated to reach its corresponding limit over a period of time (attack phase).
  • Page 42 User manual for MERUS™ audio amplifier configurator MA2304DNS/MA2304PNS DSP audio blocks Increasing the peak limiter attack time higher than 0 ms allows the initial transient to go through the limit. This is shown in the example plot below: Figure 53 Peak limiter with attack time greater than 0 ms Some applications benefit from allowing transients above the limiter threshold.
  • Page 43 User manual for MERUS™ audio amplifier configurator MA2304DNS/MA2304PNS DSP audio blocks In addition to using the peak and RMS limiters individually, these can be combined by setting both enable controls to “on”, as shown below: Figure 55 Peak and RMS limiters enabled For the following example, let’s assume that the input waveform is a full-scale 0 dB sinewave, pre-gain = 0 dB.
  • Page 44: Multi-Band Drc Blocks

    User manual for MERUS™ audio amplifier configurator MA2304DNS/MA2304PNS DSP audio blocks Multi-band DRC blocks Figure 57 Multi-band DRC blocks The MERUS™ audio amplifier configurator features two- and three-band dynamic range compressors (DRCs). These can help music sound louder and more controlled, especially for smaller speaker systems and/or loud environments.
  • Page 45 User manual for MERUS™ audio amplifier configurator MA2304DNS/MA2304PNS DSP audio blocks Band frequency control The band frequency control adjusts the crossover frequency of the DRC bands. Second-order Linkwitz-Riley filters are used to maintain a flat frequency response when both bands are added back together. Table 14 Band frequency control Control name...
  • Page 46: Three-Band Drc Configuration

    User manual for MERUS™ audio amplifier configurator MA2304DNS/MA2304PNS DSP audio blocks 5.3.2 Three-band DRC configuration Double-clicking the three-band DRC block opens its configuration window, as shown in Figure 59. This window has several controls to adjust the multi-band crossover frequencies and DRC options for the low-pass, mid-pass and high-pass frequency bands.
  • Page 47 User manual for MERUS™ audio amplifier configurator MA2304DNS/MA2304PNS DSP audio blocks Table 16 Band1 and Band2 frequency controls Control name Description Min. Default Max. Unit Band1 frequency Crossover frequency between low band and mid band Band2 frequency Crossover frequency between mid band and high band Three-band DRC controls The three-band DRC has four controls per band.
  • Page 48: Multi-Band Drc Details

    User manual for MERUS™ audio amplifier configurator MA2304DNS/MA2304PNS DSP audio blocks 5.3.3 Multi-band DRC details Similar to a limiter, a DRC functions based on a static input to output relationship and time domain parameters. In the case of a multi-band DRC, each DRC operates on its own frequency band, giving the flexibility to compress a frequency range independently of the others.
  • Page 49 User manual for MERUS™ audio amplifier configurator MA2304DNS/MA2304PNS DSP audio blocks For the following example, a three-band DRC flow was loaded with the following configuration: Figure 61 Three-band DRC flow configuration The crossover frequencies are set to 200 Hz and 5 kHz. The low band is configured for heavy compression (100 percent) and a -20 dB threshold.
  • Page 50: Delay Block

    User manual for MERUS™ audio amplifier configurator MA2304DNS/MA2304PNS DSP audio blocks Delay block Figure 63 Delay block The delay block simply adds delay to the signal path in per-sample increments. This block can be useful to sync audio and video in soundbar, home theater and other TV applications. Double-clicking the delay block open its configuration window, as shown below: Figure 64 Delay configuration window...
  • Page 51 User manual for MERUS™ audio amplifier configurator MA2304DNS/MA2304PNS DSP audio blocks The plot below shows a one-sample delay applied to the left channel: Figure 65 One-sample delay (0.02 ms) applied to the left channel User Manual V 1.1 2022-09-12...
  • Page 52: Mixmux Block

    User manual for MERUS™ audio amplifier configurator MA2304DNS/MA2304PNS DSP audio blocks MIXMUX block Figure 66 MIXMUX block The MIXMUX block provides the option to select the input source (or a mix of sources) for each audio channel in the DSP flow. This can be useful for mono applications such as Bluetooth speakers, subwoofers and so on. Double-clicking the MIXMUX block opens its configuration window, as shown below: Figure 67 MIXMUX configuration window...
  • Page 53 User manual for MERUS™ audio amplifier configurator MA2304DNS/MA2304PNS DSP audio blocks Table 19 MIXMUX controls Control name Description Options Default Output 0 Output channel 0 (left) source Input 0 Input 0 Input 1 Input mix Output 1 Output channel 1 (right) source Input 0 Input 1 Input 1...
  • Page 54: Saving And Exporting Configurations

    User manual for MERUS™ audio amplifier configurator MA2304DNS/MA2304PNS Saving and exporting configurations Saving and exporting configurations Saving and exporting configurations is available on the configuration drop-down menu in the initial screen, as shown in Figure Figure 68 Configuration menu (initial screen) Saving configurations The “save configuration”...
  • Page 55 User manual for MERUS™ audio amplifier configurator MA2304DNS/MA2304PNS Saving and exporting configurations The following table provides a description for each of the generated files. Table 20 “Save configuration” files Filename Description xxx_all.csv Contains a register dump of all relevant registers except DSP code xxx_delta.csv Contains any difference from the default register settings xxx_dsp.csv...
  • Page 56: Exporting Configurations

    User manual for MERUS™ audio amplifier configurator MA2304DNS/MA2304PNS Saving and exporting configurations Exporting configurations To export a header file, select “export configuration” in the configuration drop-down menu. When prompted, select a folder to save the files into. Clicking the “create” button generates several files: Figure 73 Files generated when exporting a configuration The following table provides a description of each of the generated files:...
  • Page 57 User manual for MERUS™ audio amplifier configurator MA2304DNS/MA2304PNS Saving and exporting configurations #define PROGRAM_MEM_ADDR 0x1000 #define PROGRAM_MEM_SIZE 2048 #define PROGRAM_PACK_SIZE 1274 #define DATA_MEM_ADDR 0x2000 #define DATA_MEM_SIZE 2048 #define DATA_PACK_SIZE 160 uint16_t PROGRAM_CODE [PROGRAM_PACK_SIZE] = { 0x11f5, 0x3f00, 0x1650, 0x0000, 0x03f5, 0xff00, 0x5028, 0x0000, 0x10d8, 0xff00, 0x1f00, 0x0000, 0x13f0, 0x0400, 0x1552, 0x4000, 0x1050, 0x0000};...
  • Page 58: Example Mcu Pseudo-Code

    User manual for MERUS™ audio amplifier configurator MA2304DNS/MA2304PNS Saving and exporting configurations 6.2.1 Example MCU pseudo-code To export a header file, select “export configuration” in the configuration drop-down menu. When prompted, select a folder to save the files into. Below is an example MCU code snippet where the device is first muted, DSP data and device registers are written and then the device is unmuted for playback: #include “output.h”...
  • Page 59: Revision History

    User manual for MERUS™ audio amplifier configurator MA2304DNS/MA2304PNS Revision history Revision history Document revision Date Description of changes V 1.0 2022-08-26 Initial release. V 1.1 2022-09-12 - Updated document title to: "MERUS™ audio amplifier configurator" - Renamed software name throughout the document accordingly - Added software download instructions User Manual V 1.1...
  • Page 60: Disclaimer

    For information on the types only and shall in no event be regarded as a in question please contact your nearest Infineon Published by description or warranty of a certain functionality, Technologies office.

This manual is also suitable for:

Merus ma2304pns

Table of Contents