• 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 » Master-Slave circuit MCU msp430 ez430-F2013
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

    Master-Slave circuit MCU msp430 ez430-F2013

    This question is not answered
    Joaquim de los Santos
    Posted by Joaquim de los Santos
    on Apr 14 2012 22:03 PM
    Prodigy60 points

    Hello

    I'm completely new using IAR embedded workbench,

    I'm trying to develop the codes to implement in the master and slave MCU units

    the MCU master has simply to activate each slave, on at a time, with a certain time interval between each activation,

    each slave has to generate an actuation signal once the activation signal from master arrives.

    (slaves will generate an output bit trial - with voltage between0 and 4V)

    I was trying to do it in C, but it can be done in assembly to

    Can anyone give me any tip?- How can I do that?

    Thanks

    MSP430 compiler ez430 IAR eZ430-F2013 microcontroller MSP430 microcontroller Debug MCU Microcontrollers MSP430F2013 assembly Code Composer Essentials flash programming Code Example fet IAR Embedded Workbench msp 430
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • Jens-Michael Gross
      Posted by Jens-Michael Gross
      on Apr 16 2012 11:22 AM
      Guru140610 points

      Hmm, your question is rather generic. So the answer has to be generic too: You need some sort of communication between the itnended master and the intended slave. The slave is listening to what the master has to say and acts accordingly.

      The communication can be simple or complex, you can use GPIO signals, asynchronous serial communication (UART), SPI, I2C and a couple of other ways. Even RF transmitters.

      The easiest way if the slave doesn't have to do anythign unles the master sives a signal, and if the slave knows what to do when the master says 'start!', is to control the slaves RST pin by a master GPIO. So as long as the master holds the slaves pin low, the slave is in reset start,sleeping. Once the pin is released/pulled high, the slave starts working as if powered-on. After some time, whcih must be long enough for the slave to compelte th ejob, the master pulls the line low again, sending ht eslave to sleep. Or the slave goes to sleep once the job is done, and hte maste ronly 'restarts' the slave by pullign its RST line low for a short moment.
      THis can be even aoutomated by using the PWM output of the timers.

      More complex commands, and answers from the slave, require a more complex protocol like the mentioned ones. How do do it depends on whcih communication type is used.

      _____________________________________
      Before posting bug reports or ask for help, do at least quick scan over this article. It applies to any kind of problem reporting. On any forum. And/or look here.
      If you cannot discuss your problem in the public, feel free to start a private conversation: click on my name and then 'start conversation'. But please do so only if you really cannot do it in a public thread, as I usually read all threads. And I prefer to answer where others can profit from it (or contribute to it) too.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Joaquim de los Santos
      Posted by Joaquim de los Santos
      on Apr 16 2012 13:05 PM
      Prodigy60 points

      Hello people,

      I already now what the master and the slaves have to do, theoreticaly

      but what I want to do is codify the MCUs using the IAR-EW

      using language assembly or C,

      write code in order to mcu do what I wrote above in general terms,

      Thanks

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Jens-Michael Gross
      Posted by Jens-Michael Gross
      on Apr 16 2012 13:34 PM
      Guru140610 points

      Joaquim de los Santos

      but what I want to do is codify the MCUs using the IAR-EW

      using language assembly or C,

      write code in order to mcu do what I wrote above in general terms

      Unless you are more specific through which media you want to do it, the only advice is to use the C language as it was described in Bjarne Stroustroups book about C or the Kernigan&Ritchie C++ standard.
      Or use the assembly as described in the MSPs user guide, with the metainformation/pseudo-opcodes as described in your assembles manual.

      Sorry, without a specific problem (and 'i want one MSP to talk to another MSP' isn't specific at all), I cannot give you a more detailed answer. There are gazillions of possible ways, and I surely won't explain them all here. I suggested a few. Pick one or develop another, try it, and if you have a problem, you can ask again.

      Just in case this should be your problem: The MSP processor core communicates with its internal peripherals thourgh memory-mapped registers. The header files available for all MSPs define these registers as volatile global variables which you can read or write. The users guide for your MSP list them all (including those available only on a few MSPs of the family, not necessarily yours) and the device datasheet tells you which peripherals (and therefore which registers) are availabel on your MSP. Along with things like pinout.
      And many of these peripherals can be used for communication of some kind.

      _____________________________________
      Before posting bug reports or ask for help, do at least quick scan over this article. It applies to any kind of problem reporting. On any forum. And/or look here.
      If you cannot discuss your problem in the public, feel free to start a private conversation: click on my name and then 'start conversation'. But please do so only if you really cannot do it in a public thread, as I usually read all threads. And I prefer to answer where others can profit from it (or contribute to it) too.

      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