• 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 » Systemclock for PCM3002 Audio Codec
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 3 days 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 4 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 10 days ago
    by Soufiane Bendaoud
    Before I suggest a suitable op amp to drive an ADC, I look at...

Systemclock for PCM3002 Audio Codec

Systemclock for PCM3002 Audio Codec

This question has suggested answer(s)
Andreas10663
Posted by Andreas10663
on Apr 14 2009 08:28 AM
Prodigy90 points

Dear all,

first of all, i'm sorry for my bad english,...

 

I have the following problem:

I'm using the DSP TMS320C6418 and want to connect the PCM3002 Audio Codec with the McBSP of the DSP.

But I can not find any description, what Systemclock should  be used for the Audio Codec.

In future, it would be fine to change the sampling rate of the audio codec by software, but what systemclock and bitclock should be used?

The only thing to system clock writen is in the datasheet: "systemclock and bitclock must be synchronised..."

What is the best way to connect the Audio Codec to the DSP?

Thanks for your help!

 

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 Apr 20 2009 15:29 PM
    Suggested Answer
    Mastermind18280 points

    Sys Clock requirements can be found in Table 1 on Page 22 of the PCM3002 data sheet. LRCLK will be at the sample rate and BCLK needs to be at least = Fs * Number of bits * 2.

     

    This is a good primer on connecting the McBSP to an audio bus: http://focus.ti.com/lit/an/spra595/spra595.pdf

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • nancy!
    Posted by nancy!
    on Apr 21 2009 10:42 AM
    Intellectual2765 points

    This may help as well...general clock divider for PCM3002

     

    It is not the strongest of the species that survives, nor the most intelligent that survives.  It is the one that is the most adaptable to change. - Charles Darwin

    pcm3002 clock divider
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Andreas10663
    Posted by Andreas10663
    on Apr 24 2009 08:54 AM
    Prodigy90 points

    First of all: thanks for your help!

    but, we have also one problem: because of the reason, that we can not provide the clocks with the DSP we want to provide to the PCM3002,

    we want to use a programmable clock synthesizer (CDCE906).

    but which clock input can i use from the dsp ? the problem is that i am not able to produce for example 12,288MHz and 48kHz with the clock synthesizer, so that I have to divide the 12,288MHz to 48kHz with the DSP. But in the McBSP Ref. Guide is written, that i only can divide by 32....

    Do I have to change the connection to the McASP ? May this be a better solution?

    As System Clock for the DSP, we will use a 30MHz Quarz.

    Questions about questions...

    at least: sorry for my bad english,...

     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Mariana
    Posted by Mariana
    on Apr 24 2009 12:04 PM
    Mastermind24340 points

    Hi Andreas,

     

    I work with DSPs, so I may not understand about the other components you are taking about and I’m not sure if I understand the question…

     

    A lot of information about what you need is at the datasheet of the C6418 page 75 to 78:

     

    http://www.ti.com/lit/gpn/tms320c6418

     

    By “System Clock for the DSP” I assume that you mean (let me know if I’m wrong) that you mean the crystal that you are going to use as input to the PLL. This input can be multiplied by the PLL MULTIPLY FACTORS to generate a CPU clock up to 600 MHz (or 500 MHz depending on what part number you are using).

     

    The internal clock that goes to the McBSP would be CPU/4, which for CPU = 600 MHz would be 150 MHz.

     

    Looking at the McBSP user’s guide:

     http://focus.ti.com/dsp/docs/dspsupporttechdocsc.tsp?sectionId=3&tabId=409&familyId=477&abstractName=spru580g

     

    Looking at the diagram on page 18, you can use an internal source clock, that for C6418 will be CPU/4 clock and divide. On page 74, the clock divider (CLKGDV) can be up to 255 (FF).

     

    So 150 MHz/(255 + 1) ~= 585 KHz, that from what I understood is too fast for you as you want 48KHz for the McBSP clock.

     

    So instead of using an internal clock source (see figure 6 page 18 of the McBSP user’s guide), you could an external clock source (CLKS) and divide it up to 256.

     

    I’m not sure if that was what you where asking, let me know.

    - Mariana

     

    ---------------------------------------------------------------------------------------------------------
    Please click the Verify Answer button on this post if it answers your question.
    --------------------------------------------------------------------------------------------------------- 

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Andreas10663
    Posted by Andreas10663
    on Apr 28 2009 05:59 AM
    Prodigy90 points

    hi,

     

    thanks for your answer, yes it helps!!

    now just to be shure:

    I want to connect an audio codec like the PCM3002 to the DSP, but the main problem is, that the audio codec needs synchronous clocks( Systemclock, Sample rate clock, bitclock), which are very sensitive.

    To solve this problem, I want to use an external clock generator,...

    The connection of the audio codec via I2S is described in http://focus.ti.com/lit/an/spra595/spra595.pdf

    on page 4 figure 2. DSP(transmitter/receiver) as Master and the audio codec as Slave (transmitter/receiver).

    The clock generator gives a main clock to the DSP on pin CLKS, and the Systemclock to the audio codec.

    The audio codec is connected to the following DSP Ports: CLKX (bitclock, between 1,2MHz and 1,92MHz), FSX(sample rate clock, between 30kHz and 48kHz) , DR(data receive) ,DX(data transmit).

    Does this configuration work?

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Mariana
    Posted by Mariana
    on Apr 28 2009 10:07 AM
    Mastermind24340 points

     

    Sorry for confusing bit clock with sample rate at me previous post, so you can have FSX as sample rate clock at 48 KHz because you can divide the clock bit (FPER).

    If the clock generator is going to CLKS for the DSP and the System Clock for the codec, you have to be careful because there will be a delay between CLKS and CLKX, FSX,DR, DX... Please see page 131 of the datasheet for the delays.

    So there is going to be a delay between the signals that are coming out of the DSP and the System Clock (as it comes directly from the clock generator and it does not pass in the DSP). Please take a look at the delays and see if it is going to be a problem...  

    - Mariana

     

    ---------------------------------------------------------------------------------------------------------
    Please click the Verify Answer button on this post if it answers your question.
    --------------------------------------------------------------------------------------------------------- 

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Andreas10663
    Posted by Andreas10663
    on Apr 29 2009 05:15 AM
    Prodigy90 points

    the delay will be a constant delay, so that i will have a constand phase displacement that is not a problem for the audio codec as you can see on page 24 of the datasheet: http://focus.ti.com/lit/ds/symlink/pcm3002.pdf

    ok, thanks for your help!

    now i am going to do the layout for the printed curcuit board....

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Andreas10663
    Posted by Andreas10663
    on May 27 2009 13:39 PM
    Prodigy90 points

    dear all,

    while routing the PCB design, we are having problems with other devices....

    now we are in discussion if it would be possible to simply change the connection for the audio codec:

    it was planned to connect the Audio Codec PCM3002 to the McBSP via I²S like described in

    http://focus.ti.com/general/docs/litabsmultiplefilelist.tsp?literatureNumber=spra595

     

    but now, the question is:

    is it possible to simply connect the audio codec to the McASP ?

    thanks for your help!

     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Andreas10663
    Posted by Andreas10663
    on May 28 2009 04:57 AM
    Prodigy90 points

    I think i should be a litte bit more precise...

     

    is it possible to connect the system clock input with the AHCLKX output from the McASP?

    the System Clock input requires a clock of 12,288MHz....

    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