• 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 » Digital Signal Processors (DSP) » OMAP™ Processors » OMAP-L13x, AM1x and C674x Processors Forum » ADS8332 Timing
Share
OMAP™ Processors
  • Forums
  • Announcements
Options
  • Subscribe via RSS
Resources
  • OMAP-L1x DSP+ARM9™-based Processors Product Folder
  • OMAP3525/30 DSP+ARM Cortex™-A8-based SOCs Product Folder

  • Top OMAPL Wiki Links
  • OMAPL3x Schematic Review Checklist
  • OMAPL13x Boot resources

  • OMAPL Document Resources
  • OMAPL137 Technical reference manual
  • OMAPL138 Technical reference manual
  • OMAPL Boot loader App Notes
  • ADS8332 Timing

    ADS8332 Timing

    This question is not answered
    serdar
    Posted by serdar
    on May 07 2012 04:14 AM
    Prodigy210 points

    Hi all,

    I've been working on ADC reading part of a project. My ADC is ADS8332 and DSP is L138. I've been working with DSP/BIOS version 5.41.11.38, BIOS PSP v 1.30.00.05 and CCSv5.1. L138 SPI0 pins and CS pin are directly connected to ADC. Convst and EOC pins are connected to L138's GPIO pins.
    I want to use ADS8332 in Auto-Trigger, Auto-Channel mode. Then DSP must read ADC result to two buffers (I want to toggle buffers). My way is setting the timer to change sampling freq, timer drives DMA, DMA reads ADC via SPI. (or adjusting SPI clock to change sampling freq). I need to change sampling freq dynamically.
    I've been trying to use BIOS PSP spi driver but I couldn't find detailed document about driver. How to use structures/registers? I couldn't change CS timing. I can't control wdelay, etc. I checked doc folder under PSP, technical manual of L138 (still I can't understand all the structures/registers on SPI driver as well).

    - I couldn't configure L138 SPI as I wish.

    - How can I use timer to drive EDMA (should I hack the PSP SPI driver) ?

    - Which way is better to adjust sampling freq, setting timer or SPI timing? (I guess it will not be easy to use SPI with 42 CLK or something like that)


    Thanks in advance

    Serdar

    ads8332
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • Tom Hendrick
      Posted by Tom Hendrick
      on May 07 2012 09:49 AM
      Guru86190 points

      Hi Serdar,

      I suspect this might really be a question for the OMAP guys.  If you are trying to dynamically change the sampling rate, it might be better to try running the ADS8332 device in Manual Trigger mode by reloading the timer period and using that as a CONVST to the ADC.  Not sure if you can fire off the SPI through DMA based on the timer or not, but you might be able to do that through an external interrupt connected to the EOC/INT pin.

      I'll move your post to the OMAP forum and we'll see if the experts there have any guidance for you on configuring the L138 peripherals to accomplish your end goals.

       

      Regards,

      Tom

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • serdar
      Posted by serdar
      on May 07 2012 11:42 AM
      Prodigy210 points

      Hi Tom,

      Your are right this question turns out a software challenge. After a few hours struggling, I realized that using CONVST pin (Manual Trigger) is only the way to accurate sampling timing and auto-scan mode.

      I faced some problems in auto-trigger mode; sampling timing is not accurate, I get some wrong samples due to read timing problems ( SPI is not sync with EOC signal) and auto-scan mode is useless unless you don't sample at 250Ks or 500Ks. In auto-scan mode with auto-trigger, ADC changes channel with 500K times/second and I think it is not easy to catch right channels. Using channel tag needs much more effort.

      I have to use ADS8332 with manual-trigger, auto-scan mode enabled and internal oscillator. Timer must drive CONVST pin to trigger ADC. After conversion, EOC pin must drive DSP (interrupt to EDMA) and DSP reads ADC via SPI.

      CONVST (GP5_6) and EOC (GP5_7) pins are connected to L138 GPIO pins. How should I configure DSP/BIOS to implement this or do you consider a different way? I need to implement this without CPU load.

      Thanks

      Serdar 

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • serdar
      Posted by serdar
      on May 09 2012 07:17 AM
      Prodigy210 points

      Tom,

      I have no answer from OMAP guys. Also I posted a question to BIOS forum but no one answered me. I couldn't find a way to drive CONVST signal without CPU load. How your customers use this adc without FPGA?

      We had two options to choose adc to this proect ADS8332 and AD7689.  AD7689 has no pin like CONVST. It is much easy to configure and read without FPGA.

      Then, I shorted ADS8332's CONVST pin with CS pin. I had a problem reading data from adc now. SDO pin goes Z when CS/CONVST is high and then goes high or low. Please check the scope view. What is your opinion? May be a pull-up resistor can solve this issue.

      Thanks

      C1: sclk    C2: EOC   C3: CS/CONVST  C4: SDO

      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