• 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 » Msc1210y5 UART0,ADC,Timer isr config help
Share
Precision Data Converters
  • Forum
  • Files
  • E2E Wiki
Options
  • Subscribe via RSS
Check out
The Signal blog
  • $core_v2_blog.Current.Name

    Pop Quiz!

    Posted 2 days ago
    by Bruce Trump
    Put away your books and take out a sheet of paper. Each question...
  • $core_v2_blog.Current.Name

    Settling Time

    Posted 8 days ago
    by Bruce Trump
    Settling time is the time required for an op amp to respond to...
  • $core_v2_blog.Current.Name

    Slew Rate—the op amp speed limit

    Posted 15 days ago
    by Bruce Trump
    Slewing behavior of op amps is often misunderstood. It’s...

Forums

Msc1210y5 UART0,ADC,Timer isr config help

  • ramesh kuppan
    Posted by ramesh kuppan
    on Jun 22 2012 10:23 AM
    Intellectual290 points

    Dear Bob,

                         Sorry for the interrupt, i am waiting for your valuable replay.

    so kindly update me. because i am very critical position.

    Thanks,

    Ramesh k

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Bob Benjamin
    Posted by Bob Benjamin
    on Jun 22 2012 11:26 AM
    Mastermind35315 points

    Ramesh,

    I'm in the midst of traveling and this is the first chance I've had to respond.  Maybe I wasn't clear before, but the first 'Enter' is to set the UART parameters automatically using 'autobaud()', which will accurately set up the timers and configuration for communication using whatever terminal setup you may be using.  This uses a hardware ROM routine built into the MSC1210.

    I'm not sure what could be happening when you compile your program.  The hex file was created using the same c code I sent, so maybe there is something in the compiler/linker of your Keil setup that is conflicting with your operation.  I will not be able to look into this further until sometime later next week.

    Regarding your load cell, please review the information I posted earlier that explained this in detail.  You cannot excite the load cell with 12V as it sets the common mode at 6V which is greater than the AVDD supply.  This violates the absolute maximum input specification of the device.  It will also conduct current through the ESD diodes which is why you see the excessive current.  So in short, you cannot excite the load cell with 12V and then read it directly from the MSC1210.  It is impossible.

    Best regards,

    Bob B

    MSC1210
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • ramesh kuppan
    Posted by ramesh kuppan
    on Jun 25 2012 11:27 AM
    Intellectual290 points

    Dear Bob,

                         Sorry for the  again interrupted, i am waiting for your valuable replay.

    so kindly update me. because i am very critical position.

    Thanks,

    Ramesh k

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Bob Benjamin
    Posted by Bob Benjamin
    on Jun 26 2012 09:57 AM
    Mastermind35315 points

    Ramesh,

    I recompiled the code with Keil, and it works fine.  I think that maybe you have something set wrong in Keil.  I've attached a zip file that contains the project files for both Keil and Rasionance.  Perhaps you can identify a setting that is different than yours.  At this point I'm not sure what more I can do for you in providing further help in getting your code to work.

    0172.MSC_Example.zip

    Best regards,

    Bob B

    MSC1210
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • ramesh kuppan
    Posted by ramesh kuppan
    on Jun 27 2012 11:13 AM
    Intellectual290 points

    Dear Bob,

    MSC_5F00_Example.zip  this source code working fine, But  you have used UART 0 using printf statment , i want transimite through polling method using SBUF0,

    like this  SBUF0='A'; while(TI_0 == 0); TI_0 =0; poling method transmit cant work. please update me.

    Thanks and regards,

    Ramesh k

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Bob Benjamin
    Posted by Bob Benjamin
    on Jun 27 2012 13:23 PM
    Mastermind35315 points

    Ramesh,

    Your original problem stated that the uart, timer and ADC could not operate at the same time.  I demonstrated that this is possible.  I also told you that I do not have a full version of the compiler, so I cannot do extensive code operations.  Built in functions, like fprint() are available to me as they are in the standard library.

    As far as building routines that function outside of the interrupt, and yet use interrupt flags only confuses operation.  So in this case you cannot use polling and interrupt functions at the same time.  Turning the uart0 interrupt off (bit 4 of the IE register) would be appropriate.

    Remember that when you turn off internal interrupt operations and use polling, you have eliminated the priority interrupt system.  This means you may have to disable lower priority interrupts when higher priority functions are in operation otherwise interrupt flags may be missed, misinterpreted, or ignored.

    This may have been your original problem.  It is up to you the programmer to decide how your system is to function.  I demonstrated that all three operations can work simultaneously.  If you want to devise your own method, that is fine.  However, I do not have the software to write advanced code of the nature and operation you desire.  You will have to debug your system and discover where your software is failing.

    Best regards,

    Bob B

    MSC1210
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • ramesh kuppan
    Posted by ramesh kuppan
    on Jun 28 2012 10:21 AM
    Intellectual290 points

    Dear Bob,

              interrupt flags may be missed, misinterpreted, or ignored. 

    yes, your above point is correct, because i have used  SBUF0='A'; While(TI_0==0); TI_0 =0; TI_0 flag is cant set properly, after i remove while condition and replace delay

    its works fine. SBUF0='A'; delay(50); TI_0 =0;  this is not right way, so please update me how we can fix it.

    Thanks,

    Ramesh k

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Bob Benjamin
    Posted by Bob Benjamin
    on Jun 29 2012 12:10 PM
    Mastermind35315 points

    Ramesh,

    Sometimes actions within a comparison can be misinterpreted.  The TI_0 flag should get set once the buffer has been written.  Try a different comparison with the while to see if the action completes.  For example:

    while(!TI_0);

    Best regards,

    Bob B

    MSC1210
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • ramesh kuppan
    Posted by ramesh kuppan
    on Jul 04 2012 11:53 AM
    Intellectual290 points

    Dear Bob,

                            I had solve all the software bugs, Very very Thanks Dear Bob,  i have enable  axillary interrupt AIE =0x20 that is affected,

    so Thanks for spend your valuable time. i have solved software bug with your help. still i have problem for load cell read  adc its hardware problem mV and current.

    already i have posted last mail so please give solution for me. i am waiting for your reply.

    Thanks,

    Ramesh k

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Bob Benjamin
    Posted by Bob Benjamin
    on Jul 05 2012 10:58 AM
    Mastermind35315 points

    Ramesh,

    I already answered your analog questions in earlier posts.  I suggest that if I have not answered a specific question you start a new post with just the analog questions so we keep specific topics together.

    To quickly address once again, you cannot exceed the common mode voltage specification for the analog inputs.  The DC voltage from the analog + input and the - input cannot exceed the AVDD supply voltage.  This input can be measured from each input to ground with your load cell connected.  There are some further restrictions as to the limit of this range (may be less than AVDD) when gain is used and the internal buffer is also used.

    For example, with 12V excitation, the balanced bridge state will be 1/2  the excitation voltage (6V).  6V will exceed the 5V AVDD supply, and will draw excessive current (through ESD protection diodes) and can damage the MSC1210.

    The solution is to lower the excitation voltage, or use the circuit I gave in the earlier post.

    Best regards,
    Bob B

    MSC1210
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • ramesh kuppan
    Posted by ramesh kuppan
    on Aug 12 2012 04:51 AM
    Intellectual290 points

    Dear Bob,

                           I am trying to SD CARD interface in MSC1210 for data logger, SD CARD is SPI Protocol , can you help me?, spi init  and sample code for SPI and SD CARD 

      interfacing in MSC1210. please send sd card sample code. I am waiting for your valuable reply.

     

    Thanks and Regards,

    Ramesh k

     

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