• 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 » Microcontrollers » MSP430™ Microcontrollers » MSP430 Ultra-Low Power 16-bit Microcontroller Forum » MPS430F2274 one wire interface
Share
MSP430™ Microcontrollers
  • Forum
  • Announcements
  • E2E Wiki
Options
  • Subscribe via RSS
MSP430 Resources
  • MSP430 Product Folder
  • MSP-EXP430G2 - MSP430 LaunchPad Value Line Development kit
  • MSP430 Getting Started Guide
  • MSP430 Microcontroller Projects
  • More Resources >
  • Forums

    MPS430F2274 one wire interface

    This question is answered
    doron sandroy
    Posted by doron sandroy
    on Aug 27 2009 05:22 AM
    Intellectual520 points

    Hi,

    can you please advice how to impliment the One Wire Protocol with MPS430F2274.

    my target to communicate with DS2407.

    R.G. doron

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • BrandonElliott
      Posted by BrandonElliott
      on Aug 27 2009 09:19 AM
      Verified Answer
      Verified by doron sandroy
      Genius13945 points

      I am not sure what protocol is needed for the device you are using, but we have this HDQ Application Report, which shows how to use this 1-wire protocol.

      Alternatively you could use a GPIO and control this interface with user software.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • doron sandroy
      Posted by doron sandroy
      on Aug 31 2009 02:41 AM
      Intellectual520 points

      the device i need to communicate is DS1990A (Serial Number iButton).

      is the HDQ protocol is same the 1-wire?

      R.G. doron

       

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • aBUGSworstnightmare
      Posted by aBUGSworstnightmare
      on Aug 31 2009 03:56 AM
      Guru17270 points

      Hi doron,

      well, ever thought outside the own box? This interface is already implemented for various MCU's, so why not adapt the code to the MSP430??

      Have a look at this AVR318: Dallas 1-Wire® master (app note pdf, related software).

      Rgds
      aBUGSworstnightmare 

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Gerald Stanje
      Posted by Gerald Stanje
      on Oct 11 2011 12:13 PM
      Prodigy240 points

      Hello doron,

      have u implement the 1 wire interface for MPS430F2274?

      Regards,

      Gerald

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Gerald Stanje
      Posted by Gerald Stanje
      on Oct 21 2011 23:02 PM
      Prodigy240 points

      Hello doron,

      have u implement the 1 wire interface for MPS430F2274?

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Andy Neil
      Posted by Andy Neil
      on Oct 22 2011 03:11 AM
      Guru32055 points

      Each 1-WireTM device Datasheet contains a detailed description of its interface operation.

      Maxim (formerly Dallas) provide a great deal of information - including example code - on how to use and implement their 1-WireTM bus.

      http://www.maxim-ic.com/products/ibutton/

      Andy Neil, on 8052.com

      The two key documents that you need to read are:

      APPLICATION NOTE 126: 1-Wire Communication Through Software
      Abstract: A microprocessor can easily generate 1-Wire® timing signals if a true bus master is not
      present (e.g., DS2480B, DS2490). This application note provides an example, written in 'C', of the
      basic standard speed 1-Wire master communication routines.
      The four basic operations of a 1-Wire bus are Reset, Write 1 bit, Write 0 bit, and Read bit. Byte
      functions can then be derived from multiple calls to the bit operations.
      The time values provided produce the most robust 1-Wire master for communication with all
      1-Wire devices over various line conditions.

      http://pdfserv.maxim-ic.com/en/an/AN126.pdf

      You can take the code straight from this document - all you have to add is a delay function.

      APPLICATION NOTE 148: Guidelines for Reliable 1-Wire Networks
      Abstract: The 1-Wire® protocol was originally designed for communication with nearby devices
      connection — a way to add auxiliary memory on a single microprocessor port pin. Customers
      unique applications that involved extending the bus and moving the slave devices farther
      and master.
      Problems came up as the bus lengths exceeded both the capabilities of the bus masters of
      the protocol.
      1-Wire device designs responded to the call with added features and protocols, (networking)
      capabilities, durable steel containers (iButtons®), and mechanisms to assure valid even in
      severely intermittent contact situations.
      This document explains the typical 1-Wire networking topologies and makes recommendations
      operation.
      It also presents how various 1-Wire masters impact these recommendations.

      http://pdfserv.maxim-ic.com/en/an/AN148.pdf

      This document shows you various hardware drive schemes from a single port pin,
      through a single FET, to advanced drivers.

      The full list of all iButton and 1-Wire App Notes is here:
      http://www.maxim-ic.com/appnotes10.cfm/ac_pk/1

      See: http://www.8052.com/forum/read/149007

       

       

      1-Wire iButton
      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Andy Neil
      Posted by Andy Neil
      on Oct 22 2011 03:21 AM
      Guru32055 points

      Andy Neil

      Andy Neil, on 8052.com

      The two key documents that you need to read are: ...

      Seems to be a forum bug there!

      That should, of course, say "The two key documents that you need to read"

      Forum Bug
      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Gerald Stanje
      Posted by Gerald Stanje
      on Nov 09 2011 15:05 PM
      Prodigy240 points

      Hi,

      are they using an external oscillator http://www.ti.com/lit/an/slaa196/slaa196.pdf ? how much is the frequency?

      what is BCSCTL2 |= DCOR;                              // Activate ROSC (Pin 25) ?

      Gerald

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • David Siroky
      Posted by David Siroky
      on May 09 2012 08:05 AM
      Prodigy30 points

      Hi! Maybe too late, but look at this implementation of 1-wire for msp430. D

      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