• 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 » Data Converters » Audio Converters » Audio Converters Forum » TAS3108 metering application, peak and RMS, with 1dB LEDs (x 24 LEDs) and I2C
Share
Audio Converters
  • Forum
  • E2E Wiki
Options
  • Subscribe via RSS
Check out
Analog Wire blog
  • $core_v2_blog.Current.Name

    This amplifier doesn't exist...now what!?

    Posted 1 day ago
    by Xavier Ramus
    Sometimes it’s impossible to find an amplifier with the...
  • $core_v2_blog.Current.Name

    Cable equalization 101 – Automating your design

    Posted 4 days ago
    by Hooman Hashemi
    Judging by the number of views on a post related to numerical...
  • $core_v2_blog.Current.Name

    RS-485 - Who says you can't teach an old dog new tricks?

    Posted 8 days ago
    by Neel Seshan
    Would you agree that RS-485 has turned out to be one of the most...

TAS3108 metering application, peak and RMS, with 1dB LEDs (x 24 LEDs) and I2C

TAS3108 metering application, peak and RMS, with 1dB LEDs (x 24 LEDs) and I2C

This question is answered
Chris Mack
Posted by Chris Mack
on Mar 24 2009 22:38 PM
Prodigy135 points

Howdy... I have a metering application where 24 LEDs represent 1dB increments for peak and RMS levels (dBFS).  For example, LED0 = 0dB..LED1 = -1dB..LED2 = -2dB..LED23 = -23dB (not to preclude non-linear scaling at the bottom of the range, e.g., LED23=-30dB..LED22=-25dB, etc.).  The LEDs can be driven with something like (for example) an I2C aware TPIC2810D (24 LEDs = qty 3 TPIC2810D for each channel).   Peak and RMS would be different colors on the bargraph (so qty 6 TPIC2810D's per channel)

I suspect that the TAS3108 can do this but the question is how to get the 1dB ranges spit out on the I2C bus to drive multiple TPIC2810D's in the 1dB format from the internal formats used in the TAS3108 as output from the peak and RMS functions.  Some of the other TAS3x units have VU, but the VU (if modeling the ballistics of a true VU meter) is not desireable, rather real peak and RMS is best, perhaps being updated around 50 times per second (this is not a strict requirement, but updating once a second is probably not ideal).

Additionally, simultaneous dither on the output may also be desirable for the audio signal from SAP in to SAP out... Perhaps minor, but something to consider when paralleling the peak and RMS functions..

Any thoughts?

Cheers,

-chris

 

 

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • dabuan
    Posted by dabuan
    on Mar 27 2009 01:43 AM
    Verified Answer
    Verified by Don Dapkus
    Genius14450 points

    Chris,

    Chris Mack
    suspect that the TAS3108 can do this but the question is how to get the 1dB ranges spit out on the I2C bus to drive multiple TPIC2810D's in the 1dB format from the internal formats used in the TAS3108 as output from the peak and RMS functions.

    The TAS3108 can be programmed with PurePath Studio which has both a RMS and a Peak Detector that you can use without writing the assembly code. PurePath Studio also has a VU meter that is modeled after the VU meter that the TAS3x devices have.

    Any internal DSP register in the TAS3108 can be polled via I2C at any given time via the slave I2C port.

    The I2C port runs at 100kbps, and all I2C transactions kick off a high priority ISR that submits a request to the DSP for the value of any particular DSP register.

    One Method:

    If you're willing to dive into the assembly language code, you can first use the Graphical Development Environment to mock up some spliters/comparators in the GDE -> generate the code, then use the integrated IDE in PurePath Studio to bitmap the outputs of all the comparators into a format to match the format of the TPIC2810 (or other device). Then using host MCU, poll the TAS3108, then write the values directly to the TPIC2810's via I2C. This also requires a little bit of manipulation of the internal MCU code, which requires you to have a 8051 compiler.

    It'll take a quite bit of  elbow grease, but it'l allow you to get the value of the peak/rms detector as a much much faster rate than doing the conversion external to the TAS3108.

    Drew

     

     

     

    -Drew 

    _____________________________________________________________________________

    If the response answers your forum question: Please Verify Answer to alert others.

    Are you aware of the TI Processors Wiki?  This is a good place to search for additional support on TI ARM+DSP Application Processors.

     

     

     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Chris Mack
    Posted by Chris Mack
    on Apr 01 2009 11:13 AM
    Prodigy135 points

    Thanks for your help Drew.... Good news...besides saving a bundle on insurance, I just got a case of elbow grease fresh in yesterday...

    But I guess the remaining question is: what is the internal number representation of the TAS3108 especially when output from the peak and RMS block to get into dB?

    I seem to recall seeing the internal number representation from the TAS3103A (with a nifty 5.3 number format from the RMS detector) but no format from the TAS3108 datasheet... I am missing it in my reading somewhere perhaps?

    As part of the reconstruction meter methodology, results would encompass numbers above 0 dBFS for detection/simulation of inter-sample clipping...   similar to headroom bits in the TAS3103A?

    Also switched to the TLC5947 for 24 Channels of delicious LED drive capability... it also has 12-bit PWM data serialized in for each LED, so I can simulate persistence... I will have a host processor that will then be polling the registers in the TAS3108, but would need to know internal representation for dB calculation... Then I can formulate it and bit map into 12-bit PWM....

     

    Cheers,

    -chris

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • dabuan
    Posted by dabuan
    on Apr 01 2009 21:40 PM
    Genius14450 points

    Chris Mack

    But I guess the remaining question is: what is the internal number representation of the TAS3108 especially when output from the peak and RMS block to get into dB?

    Chris,

    The internal format of the TAS3108 Digital Audio Processor Data Registers is a 48 bit 25.23 fixed point number. There are considerable differences between the TAS3108 and TAS3103A. The TAS3103 has a fixed 'semi configurable' architecture, where the TAS3108 is fully programmable.

    Please register for access to the TAS3xxx-PurePath Studio Extranet for detailed information on the Components available in PurePath Studio as well as a trial version of the software. You will also find the instruction set and architecture of the TAS3108 on the extranet.

    Drew

     

    -Drew 

    _____________________________________________________________________________

    If the response answers your forum question: Please Verify Answer to alert others.

    Are you aware of the TI Processors Wiki?  This is a good place to search for additional support on TI ARM+DSP Application Processors.

     

     

     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Chris Mack
    Posted by Chris Mack
    on Apr 02 2009 11:31 AM
    Prodigy135 points

    Hey Drew,

    Thanks for your help... Good to know... Indeed I already have PurePath Studio and registered on the Extranet a while ago... I should probably go take a look again at the docs... have been busy on other aspects of the design.

    Cheers,

    -chris

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
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