• 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 » Power Management » Digital Power » Digital Power Forum » Reading measurements from the UCD9240 using PMBus commands
Share
Digital Power
  • Forum
  • Files
Options
  • Subscribe via RSS

Reading measurements from the UCD9240 using PMBus commands

Reading measurements from the UCD9240 using PMBus commands

This question is answered
Mohamed Bamakhrama
Posted by Mohamed Bamakhrama
on Jun 02 2010 08:58 AM
Prodigy40 points

Hi all,

I would like to know if there is any (open) software implementation of a PMBus driver that allows me to read the IOUT and POUT measurements from the UCD9240 controller. I use Xilinx ML605 board and I need to measure the power consumption of the design. My system setup is composed of a Microblaze processor connected to an I2C controller and the Virtex-6 System Monitor. I am able to obtain the power measurements using the System Monitor but I would like to obtain the same measurements using the UCD9240 since its ADC has a higher accuracy.

 

Thanks in advance.

Best Regards,

Mohamed

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Brad
    Posted by Brad
    on Jun 07 2010 16:18 PM
    Verified Answer
    Verified by Brad
    Expert7980 points

    Mohamed,

    TI provides the Fusion Digital Power Designer software package, which includes several tools that are capable of communicating with the UCD92xx series of controllers from a Windows based host computer.  It requires the use of a USB Interface Adapter EVM (http://focus.ti.com/docs/toolsw/folders/print/usb-to-gpio.html) to connect between the SMBus (I2C) interface of the UCD92xx controller and the USB port on the computer.  The software is designed to interface to the controller only through this device.  There should have been a coupon or some other documentation along with the ML605 evaluation board which allows you to purchase this EVM at a discount.

    If you have another means of communicating over the SMBus(I2C) interface and it can be programmed to write the properly formatted commands then this will work.  You can reference the UCD92xx PMBus Command Reference (http://focus.ti.com/general/docs/lit/getliterature.tsp?literatureNumber=sluu337&fileType=pdf) and the PMBus Specifications at http://pmbus.org/specs.html for the command codes and data formating. 

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Mohamed Bamakhrama
    Posted by Mohamed Bamakhrama
    on Jun 08 2010 13:07 PM
    Verified Answer
    Verified by Mohamed Bamakhrama
    Prodigy40 points

    Hi Brad,

    Thanks a lot for your reply.

    I already have the USB EVM adapter and I have used it together with the Fusion Digital Power program. I was able to monitor all the needed parameters through the software. However, in my case, this monitoring has to be done "on-chip" (i.e. within the FPGA). Last week, I was able to find a "freeware" implementation of PMBus from TI. The implementation is for a TI MSP430 USCI chip interfaced to a UCD91xx chip (http://focus.ti.com/general/docs/litabsmultiplefilelist.tsp?literatureNumber=slaa386a). I modified the implementation to adapt it to Microblaze and UCD9240. Now, I have it working fine on the FPGA.

    Mohamed

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Ali Malik
    Posted by Ali Malik
    on Dec 06 2010 11:02 AM
    Prodigy20 points

    Hi Mohamed,

    Are you willing to share the Microblaze implementation as a open source?

    Regards,

    Ali

     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • mohamed2351
    Posted by mohamed2351
    on Dec 06 2010 11:24 AM
    Prodigy30 points

    Hi Ali,

    In theory, yes. However, I need to clean up the code and make a nice and clean example on how to use it. Do you need it urgently?

    Best Regards,

    Mohamed

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Ali Malik
    Posted by Ali Malik
    on Dec 06 2010 11:30 AM
    Prodigy20 points

    I was hoping to implement this in the coming week. Some questions...

    Are you running Microblaze with the I2C core to implement the PMBus solution?

    Secondly are you running Linux or just standalone c code on Microblaze?

    I will greatly appreciate if you can share the code initially and then when it's clean.

    Regards,

    Ali

     

     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Guenter Roeck
    Posted by Guenter Roeck
    on Jan 25 2011 18:38 PM
    Prodigy110 points

    I am working on a PMBus hardware monitoring driver for Linux, to be submitted into the Linux kernel. Let me know if that would help you, and I'll send you a pointer to a working copy.

    Guenter

     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • mohamed2351
    Posted by mohamed2351
    on Jan 26 2011 04:09 AM
    Prodigy30 points

    Dear Guenter,

    Thanks a lot for the offer. I would be grateful if you can send a pointer to your PMBus implementation. On the other hand, I made a Xilinx Virtex-6 project which contains a functional PMBus read mechanism. The project is located on: https://github.com/mohamed/microblaze-pmbus

    Mohamed

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Guenter Roeck
    Posted by Guenter Roeck
    on Jan 26 2011 09:18 AM
    Prodigy110 points

    Hi Mohamed,

    the latest version of the driver is at http://www.roeck-us.net/linux/drivers/pmbus/.

    Hope it helps. I am still adding specific support for the ucd devices, but the basic PMbus driver should work.

    Guenter

     

    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