• 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 » Achieving 9600Hz sampling rate on AIC3106
Share
Audio Converters
  • Forum
  • E2E Wiki
Options
  • Subscribe via RSS
Check out
Analog Wire blog
  • $core_v2_blog.Current.Name

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

    Posted 1 day ago
    by Neel Seshan
    Would you agree that RS-485 has turned out to be one of the most...
  • $core_v2_blog.Current.Name

    Filter for thought

    Posted 2 days ago
    by Soufiane Bendaoud
    Have you ever wondered how engineers designed active filters...
  • $core_v2_blog.Current.Name

    Let’s take this driver out for a spin

    Posted 8 days ago
    by Soufiane Bendaoud
    Before I suggest a suitable op amp to drive an ADC, I look at...

Forums

Achieving 9600Hz sampling rate on AIC3106

This question has suggested answer(s)
Reinier Coetzer
Posted by Reinier Coetzer
on Jul 19 2012 10:32 AM
Expert1015 points

Hi,

I'm using the TLV320AIC3106 codec on the LogicPD OMAP-L138 Zoom Development kit and I have run into some complications.

For my system to work properly, the AIC3106 has to be configured for a sampling rate of exactly 9600 Hz, this is the main goal. However, my problem is that the MCLK, WCLK and BCLK lines are only physically connected to the transmit section of the McASP of the C6748 DSP. The implication is that the codec cannot be setup as the master, since the generated clock lines cannot reach the receive section of the McASP (unless I mod the dev kit).

To mitigate this, the McASP has to be the master and generate the bit clock and frame sync, which is then transmitted on the ACLKX and AFSX pins, respectively. The transmit and receive section of the McASP should obviously be configured exactly the same. The problem I am having now is that the dividers of the McASP are only integer values and the input clock from the PLL is simply AUXCLK (i.e. the crystal oscillator), which is 24 MHz. The target value for the bit clock is:

BCLK = 9600 Hz * number of bits per frame

So for example, in DSP mode the number of bits is 32 and BCLK should therefore be 9600 * 32 = 307200 Hz. Since the McASP dividers is only integers, this cannot be achieved with a AUXCLK of 24 MHz. One possible way of achieving the correct bit clock is to play around with the number of bits per frame, so one possible option would be to configure the McASP for 3 slots of 16 bits each, and with an initial delay of 2 bit clocks, which should give a (3*16 + 2) = 50 bits per frame. With 50 bits per frame the bit clock will be as follows:

BCLK = 9600 Hz * 50 = 480000 Hz

This can actually be achieved by using a McASP division factor of 50. This finally brings me to my question:

How can I setup the AIC3106 codec to use the first two 16-bit slots (taking into account the 2 clock bit delay) of the TDM transmission from the McASP, and then simply ignore the last slot? Is this possible at all?

Your help would be greatly appreciated!

Regards

  Reinier

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Converter Apps
    Posted by Converter Apps
    on Jul 19 2012 13:37 PM
    Suggested Answer
    Mastermind18240 points

    In DSP mode, the AIC3106 will always just look at the first two time slots regardless of how many bit clocks there are. You can set the BCLK offset in the TDM register 10 on Page 0. If you set the offset to 2, the AIC3106 will wait two BCLK's then clock in the next two channels ignoring any additional BCLKs until the next frame.

    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