• 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 » Bluetooth® Applications » Question with EZ430-rf2560 ADC12
Share
Low Power RF & Wireless Connectivity
  • Forums
  • Announcements
  • Files
  • E2E Wiki
Options
  • Subscribe via RSS

Question with EZ430-rf2560 ADC12

Question with EZ430-rf2560 ADC12

This question is answered
JingLe Jiang
Posted by JingLe Jiang
on May 01 2012 14:54 PM
Prodigy170 points

Hi all,

 

I have been tyting to develop my own application based on the accelerometer appl for Ez430-rf2560. I realized that accl for ez430-rf2560 is I2C interface while accl for experimental board is ADC12 interface. I started from TI's slac166 http://www.ti.com/lit/zip/slac166( MSP430F543x, MSP430F541x Code Examples) to debug them on my ez430-rf2560. I tried to set breakpoint and read the register value. THe problem is, I could never see any change on any registers ADC12MEMx (i.e. they are always 0x0000). the code I used is:

ADC12CTL0 = ADC12SHT0_8 + ADC12REFON + ADC12ON;   

ADC12CTL1 = ADC12SHP;

 ADC12MCTL0 = ADC12SREF_1 + ADC12INCH_10 ;                

 ADC12CTL0 |= ADC12ENC;

ADC12CTL0 |= ADC12SC;

this is not giving me any change on any ADC12MEMx.

 

any suggestions are greatly appreciated. thanks in advance

Jingle

  

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Miguel
    Posted by Miguel
    on May 01 2012 22:33 PM
    Suggested Answer
    Genius11535 points

    Jingle,

          I am not sure I understand your issue. We have the accl-app available for the EZ430-RF256x and the PAN13xxETU+MSP-EXP430F5438 kits. Why are you trying to do a porting? Is it to your own hardware?

    Miguel

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • JingLe Jiang
    Posted by JingLe Jiang
    on May 02 2012 00:12 AM
    Prodigy170 points

    Hi Miguel,

    I am not using my own hardware-- I am just trying to develop my software application on ez430-rf256x board. However, the accl app for ez430-rf2560 is a I2C sensor while my goal is to acquire 5 channels of analogue signals simultaneously and send them over BT.  I tried to modify the accl app for PAN13xxETU-EXP430F5438 (which is to read accl signal from analogue sensor, unlike ez430-rf2560) and downloaded it on my ez430-rf2560. It's basically working, BT connection is forming,  but the ADC12 module looks functioning strange. Thus I decide my first step should be building a small project which only implement ADC12 function and see if that works. I started with TI Slac 166 file. 

    The problem is, I set break point on the code I pasted previously, I didn't see any change on ADC12MEMx register. Any suggestions?

    Thanks in advance

    Jingle

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Miguel
    Posted by Miguel
    on May 02 2012 17:29 PM
    Suggested Answer
    Genius11535 points

    Hi Jingle,

           Do you have sensors connected to your ADC12 pins? I am not sure if it will read the noise if those pins are floated. Given that this question is related to the MSP430 itself, I would recommend you asking it on the MSP430 forum where the gurus are :). http://e2e.ti.com/support/microcontrollers/msp43016-bit_ultra-low_power_mcus/f/166.aspx

    Regards,

    Miguel

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • JingLe Jiang
    Posted by JingLe Jiang
    on May 07 2012 15:28 PM
    Prodigy170 points

    Hi Miguel,

     

    I understand that it is not a good idea to test ADC12 function (for my MSP430BT5190) from a floating I/O port. Hence I built up a segment of code to collect internal temperature sensor's data from INCH_10. I know i have to enable REFON (by setting REFMSTR = 1) and evrything. I debugged the code on my msp430-rf2560 board and opened a register watch window. everything register is set but i never get anything out of ADC12MEM2. desperately need help!

     

    Thanks

     

    Jingle

     

    FYI, I put the segment code here:

    #include "msp430bt5190.h"

    void main(void) {   WDTCTL = WDTPW + WDTHOLD;    

     REFCTL0 |= REFVSEL_0 + REFON + REFMSTR;    

    ADC12CTL0 = ADC12SHT0_8 + ADC12ON ;         // Sampling time, ADC12 on  

       ADC12CTL1 = ADC12SHP + 0x2000;                     // Use sampling timer   ADC12CTL2 = ADC12RES_2;  

     ADC12MCTL2 = ADC12SREF_1 + ADC12INCH_10;    

      ADC12IE = 0x0004;                           // Enable interrupt //  0x01;                    

        ADC12CTL0 |= ADC12SC + ADC12ENC;                   // Start sampling/conversion     "none of the ADC12MEMx changes at this step!!"

        }

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Miguel
    Posted by Miguel
    on May 13 2012 15:05 PM
    Verified Answer
    Verified by Miguel
    Genius11535 points

    Hi Jingle,

         I have asked our MSP430 team to help you with this specific question. Please refer to the post below.

    http://e2e.ti.com/support/microcontrollers/msp43016-bit_ultra-low_power_mcus/f/166/t/188076.aspx

    Miguel

    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