• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Amplifiers » Audio Amplifiers » Audio Amplifiers Forum » Glitching in the TPA3125D2
Share
Audio Amplifiers
  • Forum
  • Announcements
  • E2E Wiki
Options
  • Subscribe via RSS
Check out
Analog Wire blog
  • $core_v2_blog.Current.Name

    DAC Essentials: What’s with all this glitch-ing?

    Posted 4 days ago
    by Tony Calabria
    When designing with a digital-to-analog converter (DAC), you...
  • $core_v2_blog.Current.Name

    This amplifier doesn't exist...now what?! - Part 2

    Posted 6 days ago
    by Xavier Ramus
    In Part 1 of this post, we looked at the theory involved in making...
  • $core_v2_blog.Current.Name

    Engineering the world through Analog

    Posted 11 days ago
    by Hagop Kozanian
    Our lives are surrounded by analog everywhere we go. That’s...

Glitching in the TPA3125D2

Glitching in the TPA3125D2

This question is answered
Steve Hendrix
Posted by Steve Hendrix
on Sep 17 2012 09:04 AM
Prodigy210 points

I am using the TPA3125D2 in exactly the BTL configuration depicted in Fig 30 of the 2008 datasheet. Supplies are perfectly quiet at 24V. I have an additional 20K ohms in series with two audio inputs that are being summed at Rin (return is common at Lin). \SD is tied to 24V; Mute is tied to Gnd. Gain0/1 are both at Gnd for now, but can be switched under firmware control.

I am getting a noise burst at the output every 276 mSec, lasting 52 mSec each. It seems to be white noise, above normal audio frequencies but rail-to-rail and thus audible (deafening, actually) at the output. The board is controlled by a PIC microcontroller with which I have extensive experience, and holding the microcontroller in reset has no impact on the noise, so any interaction with the firmware or other sections of the board seems to be eliminated.

Vclamp is sitting at about 10.6V, and droops by about 200 mV during each noise burst. Not sure if this is a cause, effect, or some other symptom.

Where do I go next?

TPA3125D2
Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Matt Lauer
    Posted by Matt Lauer
    on Sep 18 2012 17:10 PM
    Expert7925 points

    Hi, Steve. Thanks for using the TPA3125D2 in your design.

    Were you able to measure the power supply ripple at the amplifier itself? Can you please share a plot of this? I'm curious if the amplifier is having some issues with its PVCC, because VCLAMP relates to VCC, and you're seeing effects on it.

    Are you able to measure these noise bursts on an oscilloscope and post the results here? Try to get the signal before and after the output filter.

    I assume this is your own schematic and layout. It helps if you can share them. One thing to check in your layout is that the 0.1 µF ceramic capacitor for PVCC coupling is placed as closely to the PVCC (L and R) pins as possible. The same applies for the 0.1 µF and 10 µF capacitors coupled to the AVCC pins. We see very strange things happen when this isn't the case. Check to make sure your 470 µF bulk capacitors are rated for well above 24 V. I suggest 50 V rating in case there is power supply ripple we haven't measured yet. Make sure the bootstrap caps are placed as closely as possible to the switch nodes and bootstrap pins.

    Are GAIN0 and GAIN1 asserted to ground by your microcontroller, or are they actually tied to ground? A part in this line of products called the TPA3106D1 experiences issues when SHUTDOWN goes low, and then GAIN0 and GAIN1 are driven from an external source (such as a microcontroller). Since your \SD is tied to your supply, I have to wonder if something similar is happening, because if \SD goes low with your PVCC, and GAIN0 and GAIN1 are driven by the microcontroller running off a separate power rail (I assume), things could get funny the next time you apply PVCC. See this forum post and this Application Note for more on this error. I am not sure if it applies here, but it sounds similar.

    I hope this helps!
    Matt

    Matt Lauer

    Home Audio Applications

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Steve Hendrix
    Posted by Steve Hendrix
    on Sep 18 2012 17:31 PM
    Prodigy210 points
    • Were you able to measure the power supply ripple at the amplifier itself? Can you please share a plot of this? I'm curious if the amplifier is having some issues with its PVCC, because VCLAMP relates to VCC, and you're seeing effects on it.

    Any supply ripple is really small, order of millivolts at most.

    • Are you able to measure these noise bursts on an oscilloscope and post the results here? Try to get the signal before and after the output filter.

    Yes, as described earlier.

    • I assume this is your own schematic and layout. It helps if you can share them.

    It accurately matches the sample schematic given in the datasheet, except for the previously described summation of two audio inputs via 20K resistors.

    • One thing to check in your layout is that the 0.1 µF ceramic capacitor for PVCC coupling is placed as closely to the PVCC (L and R) pins as possible. The same applies for the 0.1 µF and 10 µF capacitors coupled to the AVCC pins. We see very strange things happen when this isn't the case.

    the only way to get them any closer would be to move them up onto the legs of the part. I'm well-experienced with RF, UHF, and microwave layouts where even a via is too long; my layouts tend to get into trouble with the manufacturability boys for being too tight. The caps here are 0603s, right on the pads of the DIP leads.

    • Check to make sure your 470 µF bulk capacitors are rated for well above 24 V. I suggest 50 V rating in case there is power supply ripple we haven't measured yet. Make sure the bootstrap caps are placed as closely as possible to the switch nodes and bootstrap pins.

    This is one slipup on my part. The local cap was insufficiently rated, and has been lifted. The bulk capacitance is at the power supply, perhaps an inch of trace away.

    • Are GAIN0 and GAIN1 asserted to ground by your microcontroller, or are they actually tied to ground? A part in this line of products called the TPA3106D1 experiences issues when SHUTDOWN goes low, and then GAIN0 and GAIN1 are driven from an external source (such as a microcontroller). Since your \SD is tied to your supply, I have to wonder if something similar is happening, because if \SD goes low with your PVCC, and GAIN0 and GAIN1 are driven by the microcontroller running off a separate power rail (I assume), things could get funny the next time you apply PVCC. See this forum post and this Application Note for more on this error. I am not sure if it applies here, but it sounds similar.

    Gain0/1 are indeed driven by microcontroller outputs. However, the microcontroller supply is itself derived from the 24V supply that feeds the TPA3125.

    Thanks for taking the time for a detailed response. Any other ideas?

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Steve Hendrix
    Posted by Steve Hendrix
    on Sep 21 2012 10:26 AM
    Prodigy210 points

    My Service Request # 1-821703757 has received no response other than to direct me back here. Any chance of any further support for this issue?

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Matt Lauer
    Posted by Matt Lauer
    on Sep 21 2012 10:39 AM
    Expert7925 points

    Hi, Steve. I'm sorry for not writing back earlier. I am looking further into what might be the root cause of this. I intend to reply back with more information today.

    Matt

    Matt Lauer

    Home Audio Applications

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Matt Lauer
    Posted by Matt Lauer
    on Sep 21 2012 15:07 PM
    Expert7925 points

    Hi, Steve. I'm going to need some more information to help you further. Can you please provide the following?

    1. An oscilloscope plot of the voltage at the BYPASS pin of the amplifier
    2. An oscilloscope plot of the bursting output waveform you're seeing
    3. A part number for the capacitor attached to the BYPASS pin (or just a description: X5R, X7R)
    4. Your schematic/layout. Even if it's just the section with the TPA3125D2 (I don't want you to reveal anything you're uncomfortable revealing), it will help tremendously. I understand it's similar to the application circuit in the data sheet, but I have to admit I'm confused about the 20 kΩ input resistors you mentioned. I'm a visual thinker, so your schematic will help me make sense of it.

    I hope I can help you further on getting this information!

    Matt

    Matt Lauer

    Home Audio Applications

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Steve Hendrix
    Posted by Steve Hendrix
    on Sep 22 2012 06:53 AM
    Prodigy210 points

    I have prepared images of hte schematic and layout of the relevant section and captured them in a Word doc, but I can't find any way to attach them here. The "Paste from Word" button doesn't work for the pictures, and I don't see anything to attach a file. How?

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Steve Hendrix
    Posted by Steve Hendrix
    on Sep 24 2012 14:21 PM
    Prodigy210 points

    I'm getting pressure from my client to get this resolved, and still can't find any way to paste anything in here. The "Paste from Word" button doesn't work, nor do any of the normal Windows keyboard shortcuts to cut and paste.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Matt Lauer
    Posted by Matt Lauer
    on Sep 24 2012 14:55 PM
    Expert7925 points

    Hi, Steve. I'm sorry I didn't reply when you first wrote. I'm also sorry your client is pressuring you at this point. I'll do my best to help you.

    Attaching a file is done with the small paperclip icon in the text entry menu. If you hover over it, it will display "Insert File". It is immdiately left of the "Past from Word" button. A menu will pop up giving you the option to insert a file. It may take a few seconds to load. Please let me know if this gives you any trouble.

    Matt

    Matt Lauer

    Home Audio Applications

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Steve Hendrix
    Posted by Steve Hendrix
    on Sep 24 2012 14:58 PM
    Prodigy210 points

    7532.TPA3125.doc

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Matt Lauer
    Posted by Matt Lauer
    on Sep 24 2012 15:10 PM
    Expert7925 points

    Thanks, Steve. This helps. Are you able to provide the other data I'm asking for below? I have a suspicion this problem has to do with the BYPASS cap, and the waveforms I'm asking for will help me determine if this is correct.

    1. An oscilloscope plot of the voltage at the BYPASS pin of the amplifier
    2. An oscilloscope plot of the bursting output waveform you're seeing
    3. A part number for the capacitor attached to the BYPASS pin (or just a description: X5R, X7R)

    Regards,
    Matt

    Matt Lauer

    Home Audio Applications

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Steve Hendrix
    Posted by Steve Hendrix
    on Sep 24 2012 16:31 PM
    Prodigy210 points

    I'm having trouble getting those scope plots, because connecting the scope to the PC also ties the system Gnd to PC Gnd which is line Gnd (standard desktop PC). I'll have to set up to do the scope capture and freeze it, then transfer to the PC. My scope is fully floating, as is my policy. Yes, I'm well aware of the possible hazard. Not to start any religious wars, but my position is that if you don't understand electronics enough to safely float a scope, you don't have any business using one.

    I have done a bit of further exploration. With the inputs completely disconnected, the TPA3125 has a continuous rail-to-rail 290 KHz square wave output. Lifting R661A and R662A so there's no path to earth or line (the design includes 5KV of isolation to line and earth, other than these two earth connections) does not change the noise. Connecting either audio input to the speaker output of my laptop (with no audio coming out) makes the noise come in bursts as described above, still a 290 KHz square wave during the "on" time. Disconnecting the laptop's wall-wart, so the laptop is itself fully floating, resumes continuous noise.

    There's 10K across the TPA3125 inputs. Does that need to be significantly lower? Do I need to add low-impedance terminations to the inputs? Not shown in the datasheet; and to what would I terminate them?

    Bypass is absolutely quiet. The various Vcc pins show a small amount of noise with the noise bursts, but that seems to be an effect rather than a cause. The final output stage slapping the rails would surely inject some noise back onto the supply rails. The only other signal that moves is Vclamp, which rests at about 10.6V, and drops sharply by about 200 mV during the noise bursts.

    I'm suspecting rather strongly that I need some termination on the inputs, but I'm not sure just what's called for here.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Matt Lauer
    Posted by Matt Lauer
    on Sep 24 2012 16:54 PM
    Expert7925 points

    Thank you for the additional details, Steve. I have to think about how these affect the noise problem you're having.

    Have you observed this on more than one TPA3125 IC? If not, are you able to use another one and see that this phenomenon still occurs?

    Best,
    Matt

    Matt Lauer

    Home Audio Applications

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Steve Hendrix
    Posted by Steve Hendrix
    on Sep 25 2012 15:26 PM
    Prodigy210 points

    I have a set of 8 boards made up with identical configurations. All that I have checked (probably at least 5 or 6 if not all 8) show identical problems. However, I have characterized it a bit further.

    I did indeed have a power supply problem (purchased power supply). On four of the eight units, the power supply was alternately going into thermal shutdown, even though total system current (even under worst case inrush conditions) should be well under half the supply's rating. So we're looking at changing that supply in the design, of course. Meanwhile, I'm continuing checkout using a robust and trusted bench supply to provide 24V. Now I get a continuous hiss from the TPA3125, with the inputs open except for the 10K shorting resistor shown on the schematic.

    Looking at it on the scope, I see a full rail-to-rail swing square wave at about 295 KHz. I presume this to be the class-D modulation waveform. Greatly attenuated though still visible after the output filter.

    Looking past the output filter, there are bursts of noise repeating at a 300 Hz interval. The 300 Hz repetition rate is what I hear audibly. Each burst is a rapidly decaying sinusoid at 54 KHz. There is nothing else in the system that should be running at either of those rates.

    Does that provide any more clues?

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Matt Lauer
    Posted by Matt Lauer
    on Sep 25 2012 16:22 PM
    Expert7925 points

    Hi, Steve. Thanks for the clarification.

    You are correct that the rail-to-rail swing square wave at 295 kHz is the switching output of the class-D. (Page 4 of the data sheet confirms this.) Again, if you can capture this scope plot and post it here (using the "Insert image" button, immediately to the left of that paperclip button), it will offer so many insights into what you're seeing. That way I can see just how visible the switching still is after the output filter.

    I still need to understand and comment on a few things about the design.

    1. Why did you choose to use a sole 220 µF bulk capacitor for your power supply pins? Our reference design calls for 2 × 470 µF bulk capacitors in parallel (added).
    2. I am not a fan of using so few capacitors around your power rail pins, especially when the DIP package of the TPA3125D2 requires greater trace length to cover the power rails. In particular, I recommend your design use more ceramic capacitors for the power rails, and very close to the power pins themselves. For instance, your right power supply pin has zero ceramic capacitors in front of it, but plenty of trace before it. Even if the supply itself is clean, weird things could pick up along the trace. I know what the data sheet reference design shows, but I think it could use some touching up with more ceramic caps. Please have a look at what we've done with the evaluation module for this part. We have dedicated ceramic capacitors for every power pin. (We put the ceramic capacitors as close to the power pins as possible, usually on the bottom side of the board.) 1016.TPA3125D2 EVM Schematic.pdf I can't guarantee this will solve the error, but I think it could help. The part can do strange things when its supply pins don't have proper ripple control.
    3. I am still not sure what is happening with the TPA3125D2 left input and output in your design. (You said, "Return is common at Lin," and I don't know what you meant there.) What is pin 1 on headers J660 and J661? Where does that pin go and what is it used for? LIN is solely an input, and it is looking for an audio signal input. Are you not using it for audio? What is pin 1 on header J662? Why does the right output channel get two pins on your speaker connection? If your intent is to use solely the RIN input channel, then LOUT should not be connected to your speaker output (nor should it have L633 and C665 following it), because it won't do anything (LOUT is solely the amplified LIN), and LIN should be connected to (only) ground through the 1 µF ceramic capacitor. 

    Sorry for the barrage of questions, but these are things that really stuck out at me upon review of your schematic and layout.

    Regards,
    Matt

    Matt Lauer

    Home Audio Applications

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Steve Hendrix
    Posted by Steve Hendrix
    on Sep 25 2012 16:39 PM
    Prodigy210 points

    I like your idea of bypass caps right on the pins, on the opposite side of the board. I'm used to working up in the MHz and GHz realms, and have done lots of designs like that. Even heard of (but never actually tried) sticking an 0603 cap into an unplated hole in a 62 mil thick board going right to the ground plane on the other side, with a part pin sitting right on top of the cap - can't get much tighter bypassing than that!

    That said, I wasn't anticipating anything quite so fussy at audio frequencies. However, the sharp edges of the class-D switching could certainly stir things up. I'll try some tighter bypassing when I get back to the lab midmorning tomorrow (EDT).

    The inputs are a pair of mini-phono jacks, which have two connections for the ring; hence the double pin shown on the schematic. The two inputs are additively mixed, except that one has a mute clamp which can be operated by firmware. The inputs are not ground-referenced except via the 1 meg ground resistors. The wiring is exactly that shown in the datasheet for the BTL configuration, using the two channels in push-pull to produce a combined 20W into a single speaker, which is also connected via a mini-phono plug. Does that help explain things a bit better?

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
123
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use