• 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 » Low Power RF & Wireless Connectivity » Low Power RF PurePath Wireless Audio Forum » EHIF example code for MSP430
Share
Low Power RF & Wireless Connectivity
  • Forums
  • Announcements
  • Files
  • E2E Wiki
Options
  • Subscribe via RSS

Forums

EHIF example code for MSP430

  • Kristoffer S
    Posted by Kristoffer S
    on Jun 08 2011 08:44 AM
    Expert6090 points
    CC85xx_Ehif_Example_Code.zip

    Hi all,

    The attached CC85xx_Ehif_Example_Code.zip includes a small example on how to use the External Host Interface (EHIF) with the MSP430F5438 as SPI host controlling a CC85xx protocol slave. Functionality for pairing, volume up/down, power toggling and automatic re-join if network drop-out are implemented.

    Have a look at the code, and if you want to practically try it out keep reading...

     

    Hardware needed:

    1 pcs MSP430F5438 Experimenter Board (http://focus.ti.com/docs/toolsw/folders/print/msp-exp430f5438.html)

    1 pcs MSP-FET430UIF (http://focus.ti.com/docs/toolsw/folders/print/msp-fet430uif.html) for programming the MSP

    1 pcs CC85XXDK (http://focus.ti.com/docs/toolsw/folders/print/cc85xxdk.html)

     

    Step-by-step:

    1. Download and extract the zip.

    2. Open the PurePath Wireless Configurator (downloadable from here: www.ti.com/ppwc), and open the project CC85XXDK Preloaded Demo (available from Start Page).

    3. Flash one CC85xx device with the master device configuraton as is.

    4. Flash one CC85xx device with the slave device configuraton with the following modifications:

         - Select host-controlled operation.

         - In the IO mapping panel set the "External host interface interrupt" pin to GIO3.

    5. Connect the MSP430F5438 Experimenter Board to the slave Audio EB like shown in EHIF_Connection_MSP430.pdf (included in the zip).

    6. Program the MSP430F5438 either by debugging in IAR or flash it using the SmartRF Flash Programmer.

     

    Feel free to ask if anything is unclear. Enjoy!

    --
    Thank you for clicking  Verify Answer  if this answered your question!

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Lin Kuo chin
    Posted by Lin Kuo chin
    on Jun 22 2011 01:17 AM
    Prodigy10 points

    Dear Sir:

    this  code is for EHIF slave control,

    Do you  have the example code for master control ? 

    THX

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Kristoffer S
    Posted by Kristoffer S
    on Jun 22 2011 05:47 AM
    Expert6090 points

    Hi Lin,

    No, I don't. The reson for this is because it's not that much to do with the master. The most relevant EHIF commands for the master are the following:

    * NWM_CONTROL_ENABLE (either ON or OFF for enable or disable network)

    * NWM_CONTROL_SIGNAL (either ON or OFF for advertising pairing)

    * The data side channel commands DSC_TX_DATAGRAM and DSC_RX_DATAGRAM

    The commands are well described in the Family User's Guide. If you use the slave example as template a host-controlled master shoud be staright forward to implement.

    -Kristoffer

    --
    Thank you for clicking  Verify Answer  if this answered your question!

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • huang hesiod
    Posted by huang hesiod
    on Jun 24 2011 04:43 AM
    Prodigy10 points

    dear sir:

               1.  use  Ehif_NWM_DO_JOIN (network ID 0xFFFFFFFF)for Paring,  Stauts Word display pairing ok (WASP_CONN==1),but  transmit sound error.no sound,why?

                    while use network ID 0x10101010 ,borad Led flash on/off (once )at  ready mode.but use  Ehif_NWM_DO_JOIN (network ID 0xFFFFFFFF) for paring,

                   board Led error (no pairing mode).

                2.use Ehif_NVS_GET_DATA, Read non volatile memory is 0x00000000( program Start),but pairing complete Write  Data to non volatile memory .

                  Stauts Word no Error,Power up again. Read non volatile memory same 0x00000000.why?

     

     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Kristoffer S
    Posted by Kristoffer S
    on Jun 30 2011 08:09 AM
    Expert6090 points

    Hi Huang,

    First of all, are you using the code attached in the zip or a similar code you have written yourself?

    1.

    If you use NWM_DO_JOIN with network id 0xFFFFFFFF this means you are trying to pair with a master that has the pairing signal enabled. Enabling the pairing signal on a protocol master can be done in two ways:

    * Pressing the pairing button on an autonoumously operated master. The pairing signal will be enabled for as long as configured in the configurator (default 10sec). This is configurable in the "Pairing timeout" field in the Radio panel.

    * Performing the command NWM_CONTROL_SIGNAL on a host controlled master. (Prior to this the network must be enabled by performing NWM_CONTROL_ENABLE on the master).

    Since you read WASP_CONN=1 in the status word you are obviously able to pair successfully. What you must do then is to specify which audio channels you want to consume on your slave and also setting the volume. In main_slave.c this is done on line 155 and 158 for the case where the pairing button is pressed, and line 327 and 330 for the case where we join the previously connected master. The commands for this is the NWM_ACH_SET_USAGE and VC_SET_VOLUME. If you do this correctly you should be able to hear the audio playing.

    Does your master have deviceID 0x10101010? Otherwise it makes no sence to use this as network ID in the DO_JOIN command.

    2.

    If you write to non-volatile memory with the command NVS_SET_DATA, and you do it like described in the family user's guide, you should be able to read the same data out with the NVS_GET_DATA. Remeber to write and read using the same slot index. Again, are you using the attached code for this or code you have written yourself?

     

    Best regards

    Kristoffer

    --
    Thank you for clicking  Verify Answer  if this answered your question!

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • MikeH
    Posted by MikeH
    on Mar 26 2012 11:06 AM
    Guru12865 points

    Kristoffer,

    Any chance we could get you to update this code for the MSP-EXP430F5529 Experimenter board?


    Thx,

    MikeH

     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Kjetil
    Posted by Kjetil
    on Mar 29 2012 08:12 AM
    Mastermind18025 points

    Hi Mike, 

    We are currently updating this code with more examples, bug fixes and a more clear split between lower layer and upper layer to ease porting to different MCU and HW platforms. 

    Please keep an eye out on this forum for a update. 
    Kjetil 

    --
    PS. Thank you for clicking  Verify Answer  if this answered your question!

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Daniel
    Posted by Daniel
    on Apr 23 2012 00:43 AM
    Prodigy110 points

    Hi Kjetil,

    We will design wireless microphone use MSP430 + CC8520, Could you tell me when TI release the MCU + CC8520 new demo code, please? Thank you.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • jay
    Posted by jay
    on Oct 28 2012 01:48 AM
    Intellectual835 points

    Hi, Kjetil.

    I am looking for the newest example with msp430 and cc85xx.

    I have look through the E2E, but i couldn't find the example.

    Could you let me know the link or give a example?

    Best regards.

    Jay.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • jay
    Posted by jay
    on Oct 28 2012 03:20 AM
    Intellectual835 points

    Hi,

    I may found what i looking for.

    I found design note DN120, literature num swra369a.

    Thank you.

    Jay.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Kjetil
    Posted by Kjetil
    on Oct 29 2012 05:27 AM
    Mastermind18025 points

    That is the correct one. Here is the link for future reference:

    http://www.ti.com/general/docs/litabsmultiplefilelist.tsp?literatureNumber=swra369a

    --
    PS. Thank you for clicking  Verify Answer  if this answered your question!

    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