• 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 » Data Converters » Precision Data Converters » Precision Data Converters Forum » ADS1298 + MSP430BT5190
Share
Precision Data Converters
  • Forum
  • Files
  • E2E Wiki
Options
  • Subscribe via RSS
Check out
The Signal blog
  • $core_v2_blog.Current.Name

    Handy Gadgets and Resistor Divider Calculations

    Posted 7 days ago
    by Bruce Trump
    Handy gadgets make our engineering life easier—the little...
  • $core_v2_blog.Current.Name

    Chopper Op Amps—are they really noisy?

    Posted 15 days ago
    by Bruce Trump
    Chopper op amps offer very low offset voltage and dramatically...
  • $core_v2_blog.Current.Name

    Bypass Capacitors… yes, but why?

    Posted 28 days ago
    by Bruce Trump
    Everyone knows that op amps should have power supply bypass capacitors...

Forums

ADS1298 + MSP430BT5190

  • Juan Gilberto
    Posted by Juan Gilberto
    on Mar 29 2012 13:42 PM
    Intellectual325 points
    main.c

    I have problems to start using the msp430bt5190 ads1298, I could help find my mistake. This is the code.
    mcu: 3.3volt. This is the code.
    ads1298: 1.5/-1.5, 1.8 volt

    tengo problemas para iniciar el ads1298 utilizando el msp430bt5190, me podrian ayudar a encontrar mi error.
    mcu: 3.3volt. Este es el codigo.
    ads1298: 1.5/-1.5, 1.8 volt

    ads1298 ecg ekg
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Kevin Duke
    Posted by Kevin Duke
    on Mar 29 2012 14:01 PM
    Genius17895 points

    What exactly is the problem you're having?

    --------------------------------------
    Kevin Duke             
    Precision DAC Applications

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Juan Gilberto
    Posted by Juan Gilberto
    on Mar 29 2012 14:11 PM
    Intellectual325 points
    test.jpg

    The problem is that so far I could not do any shows with ads1298, not that I'm failing. I do not get any data in the buffer.

    El problema es que hasta el momento no he podido realizar ninguna muestra con el ads1298, no se en que estoy fallando. No obtengo ningun dato en el buffer.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Kevin Duke
    Posted by Kevin Duke
    on Mar 29 2012 14:16 PM
    Genius17895 points

    Is this with an ADS1298 evaluation module or your own design? Is the MSP430 on an evaluation board? If this is a pair of EVMs please share how the EVMs are connected, if it's your own hardware please share a schematic. Have you verified the functionality of your serial communication lines with an oscilloscope?

    --------------------------------------
    Kevin Duke             
    Precision DAC Applications

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Juan Gilberto
    Posted by Juan Gilberto
    on Mar 29 2012 14:23 PM
    Intellectual325 points
    ECG.sch

    It is my own design, and now I am not in position to use an oscilloscope, you could say I'm working with nails.

    Es mi propio diseño, y actualmente no me encuentro en posicion de poder utilizar un osciloscopio, se podria decir que estoy trabajando con las uñas.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Kevin Duke
    Posted by Kevin Duke
    on Mar 29 2012 16:14 PM
    Genius17895 points

    Juan,

    Your schematic did not post, if you can post it as a PDF I think we'll have better success.

    In reviewing your C code I noticed a few things...

    #include "msp430bt5190.h"

    #define   PWDN             BIT2
    #define   RESET_ADS        BIT3
    #define   START            BIT5
    #define   CS               BIT6
    #define   CLKSEL           BIT0

    char  RESA[26];
    unsigned int i;

    void main(void)
    {
     
      WDTCTL = WDTPW+WDTHOLD;                    // Stop watchdog timer
      P4DIR = RESET_ADS + START + PWDN + CLKSEL; // P for RESET_ADS, START, PWDN, CLKSEL
      P3DIR = CS;                                // P for  CS
      P4SEL = 0X80;                              //DRDY
     
      P3SEL |= 0x31;                            // P3.5,4,0 option select spi
      P3OUT |= ~CS;                             // Disable CS
      UCA0CTL1 |= UCSWRST;                      // **Put state machine in reset**
      UCA0CTL0 |= UCMST+UCSYNC+UCCKPL+UCMSB;    // 3-pin, 8-bit SPI master
                                                // Clock polarity high, MSB
      UCA0CTL1 |= UCSSEL_2;                     // SMCLK
      UCA0BR0 = 0x02;                           // /2
      UCA0BR1 = 0;                              //
      UCA0MCTL = 0;                             // No modulation
      UCA0CTL1 &= ~UCSWRST;                     // **Initialize USCI state machine**
      UCA0IE |= UCRXIE;                         // Enable USCI_A0 RX interrupt

      P4OUT &= ~START;
      //__delay_cycles(100);                    // Wait for slave to initialize
      P4OUT |= ~PWDN;
      //__delay_cycles(100);                    // Wait for slave to initialize
      P4OUT |= ~RESET_ADS;
      __delay_cycles(100);                      // Wait for slave to initialize
      P4OUT &= CLKSEL;                          // Set CLKSEL Pin = 1
      P3OUT &= CS;                              // Enable CS
     

    <...begin utilizing the device...>

    You've defined the symbol CS as BIT6 from the msp430 header, which is usually defined as 0x0040. In the code above you...

    1. Set pin 6 of port 3 as an output
    2. Set P3OUT = P3OUT | ~0x0040, which should yield P3OUT = 0x00BF - pin 6 is low
    3. Set P3OUT = P3OUT & CS, which will yield P3OUT = 0x0000 - pin 6 is still low

    On port 4 you do something similar...

    1. P4OUT = P4OUT & CLKSEL - this does not set CLKSEL = 1 unless your code is misleading - I can't tell which port/pin CLKSEL is actually connected to since your schematic did not post cleanly.

    These type of assignments make me skeptical of the entire initialization sequence. You should really try to get access to an oscilloscope or logic port or SOMETHING to see what is actually happening on the MSP430 serial lines.

    --------------------------------------
    Kevin Duke             
    Precision DAC Applications

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Kevin Duke
    Posted by Kevin Duke
    on Mar 29 2012 16:49 PM
    Genius17895 points

    Check out this code on our design notes page. This might help you get things ironed out and set-up.

    --------------------------------------
    Kevin Duke             
    Precision DAC Applications

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Juan Gilberto
    Posted by Juan Gilberto
    on Apr 03 2012 23:02 PM
    Intellectual325 points
    main.c

    Usually, I document a little more, but as I do to raise the spi clock to 2 MHz ?

    Listo, ya me documente un poco mas, pero como le hago para subir el spi clock a 2Mhz?

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Juan Gilberto
    Posted by Juan Gilberto
    on Apr 05 2012 07:02 AM
    Intellectual325 points
    ECG.pdf

    This is my schematic

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Juan Gilberto
    Posted by Juan Gilberto
    on Apr 05 2012 08:25 AM
    Intellectual325 points
    DSC00024.JPG

    yellow = spi clock

    blue = drdy

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Kevin Duke
    Posted by Kevin Duke
    on Apr 05 2012 10:22 AM
    Genius17895 points

    Juan Gilberto

    Usually, I document a little more, but as I do to raise the spi clock to 2 MHz ?

    Listo, ya me documente un poco mas, pero como le hago para subir el spi clock a 2Mhz?

    You'll have to pardon me, but I'm not sure what you're asking. Are you asking if a 2MHz SPI clock is allowable for the ADS1298? Are you asking if your MSP430 can implement a 2MHz SPI clock? Are you asking how to do it?

    From your scope shot it doesn't seem like you're achieving any output on the SCLK line...

    --------------------------------------
    Kevin Duke             
    Precision DAC Applications

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Juan Gilberto
    Posted by Juan Gilberto
    on Apr 05 2012 10:50 AM
    Intellectual325 points
    main.c

    Hello again.

    I think and misconstrued my question, I could make the spi clock operated at 2 MHz and ads like the picture shows drdy starts but stops spiclock.

    Hola nuevamente.

    Creo que e planteado mal mi pregunta, ya pude hacer que el spi clock  funcionara a 2 Mhz y el ads como en la imagen muestra inicia el drdy pero spiclock se detiene.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Kevin Duke
    Posted by Kevin Duke
    on Apr 05 2012 11:10 AM
    Genius17895 points

    The DRDY pulse stops your SCLK? Your MSP430 should be providing the clock to the ADS1298 - the ADS1298 cannot operate as a SPI master and provide the clock. Do you have an ICDI available to step through and debug your code to see what is causing the SCLK to stop?

    --------------------------------------
    Kevin Duke             
    Precision DAC Applications

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Juan Gilberto
    Posted by Juan Gilberto
    on Apr 05 2012 11:17 AM
    Intellectual325 points

    Sorry for my ignorance........ ICDI?

    I'm working with:
    -MSP-EXP430F5438
    -MSP-FET430UIF

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Kevin Duke
    Posted by Kevin Duke
    on Apr 05 2012 11:21 AM
    Genius17895 points

    ICDI is an In Circuit Debugger Interface. The MSP-FET should be the ICDI for your device. You might set a break point in the ISR servicing the DRDY interrupt and see what is happening to your SCLK line.

    --------------------------------------
    Kevin Duke             
    Precision DAC Applications

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
12
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