• 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 » TAS1020B USB Control Transfer Latency
Share
Audio Converters
  • Forum
  • E2E Wiki
Options
  • Subscribe via RSS
Check out
Analog Wire blog
  • $core_v2_blog.Current.Name

    Cable equalization 101 – Automating your design

    Posted 20 hours 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 4 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 6 days ago
    by Soufiane Bendaoud
    Have you ever wondered how engineers designed active filters...

TAS1020B USB Control Transfer Latency

TAS1020B USB Control Transfer Latency

This question has suggested answer(s)
Alex Yin
Posted by Alex Yin
on May 25 2012 17:13 PM
Prodigy170 points

Hi,

To send control data to TAS1020B from PC via USB, one method is to use HID.dll on windows. We found that the latency of sending a small data buffer (about 40 bytes) is around 10ms using HID via control transfer. What is the minimum latency that one can achieve for TAS1020B? Is there a better way to send control data to TAS1020B via USB on PC?

Thanks,

Alex

TAS1020B USB Latency
Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Frank Minich
    Posted by Frank Minich
    on May 29 2012 07:28 AM
    Expert4110 points

    Alex,

    That 10ms latency could originate in HID stack latency on your host PC and/or latency in the 'return' mechanism (which might involve an interrupt endpoint with an 'interval' that is larger than 1ms).

    From Windows, I think you could use WinUSB to send control transfers to endpoint 0;  perhaps this would result in less latency than using HID (but I haven't actually measured).

    If interested, please see http://www.microsoft.com/whdc/connect/usb/winusb_howto.mspx .  I used WinUSB in the past to construct a DFU downloader - if you want the source for that please advise.

    Regards,

    Frank

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Alex Yin
    Posted by Alex Yin
    on May 29 2012 14:06 PM
    Prodigy170 points

    Frank,

    Can you provide a copy of the source? I would like to give it a try to see how much improvement can be done.

    Thanks,

    Alex

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Frank Minich
    Posted by Frank Minich
    on May 29 2012 14:45 PM
    Suggested Answer
    Expert4110 points

    Alex,

    There should be an attached zip file, to which the following refers:

    Driver installation:
    - build your own driver installation package to get WinUSB installed on your PC
      - obtain the latest Windows Driver Development Kit (WinDDK) from Microsoft (7600.16385.0)
      - build a 'driver install package' (a directory structure works, but you could burn CD):
        -  dfu.inf
           [provided in WinUSBTAS1020BDFU.zip]
        -  duf.cat
           [build this file by running makecat.bat from the zip]
        -  amd64 (directory)
           -  WdfCoInstaller01009.dll (from WinDDK\redist\winusb\amd64 directory)
           -  winusbcoinstaller2.dll (from WinDDK\redist\winusb\amd64 directory)
        -  ia64 (directory)
           -  WdfCoInstaller01009.dll (from WinDDK\redist\winusb\ia64 directory)
           -  winusbcoinstaller2.dll (from WinDDK\redist\winusb\ia64 directory)
        -  x86 (directory)
           -  WdfCoInstaller01009.dll (from WinDDK\redist\winusb\x86 directory)
           -  winusbcoinstaller2.dll (from WinDDK\redist\winusb\x86 directory)
        -  note:  dfu.inf and dfu.cat are located in some directory, under which subdirectories 'amd64', 'ia64', and 'x86' have been created, and which hold the two files for the associated architecture from the WinDDK)
    - attach a TAS1020B having no EEPROM, or blank EEPROM, to your PC
    - when Windows lets you specify the driver's source location, point it to your directory structure
     
    To program a blank EEPROM:
    - make sure the image file has 'EEPROM overwrite' enabled
    - unzip 'download.exe' from the zip file
    - run command 'download <name of image file>'
    - note that this should program the EEPROM, but will not cause the downloaded image to start running
    - power-cycle or reboot the TAS1020B

    Notes on 'download.exe':
    - the image file you download must have the header information already prepended
    - information from the header and TAS1020B is displayed as the download proceeds
    - download.exe can (and will, if there's no blank EEPROM) write to TAS1020B RAM, but since WinUSB does not provide a mechanism for issuing a bus reset, the TAS1020B will not execute that program.
    - 'download.exe' doesn't do error recovery - so you may have to reboot the TAS1020B if the download fails
    - source for download.exe is provided in the zip

    Regards,

    Frank

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Alex Yin
    Posted by Alex Yin
    on May 29 2012 15:39 PM
    Prodigy170 points

    Frank,

    Got the zip file. Thanks for the upload.

    Have one question: does it mean any PC running this utility needs to have WinDDK installed? Or WinUSB comes with Windows 7/XP, and WinDDK is only for the developers?

    Thanks,

    Alex

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Frank Minich
    Posted by Frank Minich
    on May 30 2012 07:22 AM
    Expert4110 points

    > does it mean any PC running this utility needs to have WinDDK installed?

    No.

    You need WinDDK to build the application that uses the WinUSB driver.

    At runtime, the PC that runs the application will need the WinUSB driver installed. 

    Please read the Microsoft document at http://www.microsoft.com/whdc/connect/usb/winusb_howto.mspx

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Don Dapkus
    Posted by Don Dapkus
    on Jun 06 2012 20:24 PM
    Guru101895 points

    Hi, Alex,

    Did we answer the question here? If so, can you mark the post you liked so we know?

    -d2

    -----

    Don Dapkus

    Audio Applications Engineering Manager

    Dallas, TX USA

    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