This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP430F5659 on MSP-TS430PZ100USB

Other Parts Discussed in Thread: MSP430F5659, MSP430F5438A, MSP-FET, MSP430F1611

MSP430F5659 on MSP-TS430PZ100USB I have trouble getting the MSP430F5659 running at 20MHz (XT2) on the  MSP-TS430PZ100USB development board. Has any body got a solution. I can operate 24MHz on the relevant TI Development board with a MSP430F5438A. I'm not interested in the USB just the DAC O/P's

Ian Thorpe

  • Hi Ian,

    Can you provide your code setup for the clocks on the part? Are you trying to run the MCLK off of XT2 with a 20MHz crystal populated on the board? One thing to note is that for XT2 at 20MHz you'll need to set XT2DRIVEx = 2 instead of 3 (see datasheet XT2 section for frequencies for the different XTDRIVEx settings).

    Regards,
    Katie
  • What value did you set XCAP  to and did you have external Capacitors and what value when you got yours working

    Regards

    Ian

  • Tried that It's S/W supplied by TI to set the VCORE level and sticks in this loop
    do
    {
    UCSCTL7 &= ~(XT2OFFG + XT1LFOFFG + XT1HFOFFG + DCOFFG);
    SFRIFG1 &= ~OFIFG;
    }while (SFRIFG1&OFIFG);
  • I can give hal_pmm.c and .h + main .c for both MSP430F5438A which works at 24 MHZ and the same for the MSP430F5659 which I believe I modified correctly can you send me an e-mail address to send it to mine is ailish1452@btinternet.com.
    All of CRS Electronics Ltd PDE's (Product Design Engineers) work from Home and not from the factory. The reason being we work anti-social hours and are paid differently.

    This Problem Development
    Quote on the Forum

    MSP430F5659 on MSP-TS 430PZ100USB I have trouble getting the MSP430F5659 running at 20MHz (XT2) on the MSP-TS430PZ100USB development board. Has any body got a solution. I can operate 24MHz on the relevant TI Development board with a MSP430F5438A. I'm not interested in the USB just the DAC O/P's.

    Has bought our R&D program on 6-7 products for Industry, Universities & Disability products to a Halt
    We are now going to Plan B using a 24MHz MSP430F5438A with Appropriate Development Board which has been working as a prototype for over 6mths.
    Irrespective we intend to get both the MSP430F5659 at 20MHz Plan A and MSP430f5438A at 24 MHz working with external DAC's Plan B .

    We have another product idea for the future which the MSP430f5659 at 20 MHz is ideal for.
    utilising the USB and DAC's Facilities.
    We have to sell the idea yet to Colin Souter MD e-mail colin.souter@crs-electronics.co.uk
    web site www.crs-electronics.co.uk.
    But there is no point until we resolve these issues with a good old British/English compromise asap.

    My hope is the if you can get one operational with development board MSP-TS430PZ100USB Development Board send it to me . I see that it works with your source code I'll pay for it.
    Or more reasonably you give it to me and I order from your e-store another board MSP-TS430PZ100USB + MSP-FET POD + some more MSP430F5659 MPU.
    I give you my word. An Englishman's word is his bond.
    Not sure how giving your WORD works with Americans
    Sincerely
    Ian Thorpe PDE
    CRS Electronics Ltd
  • Dear Katie
    In addition the Test Equipment we are having to design for our products operates over a ratio 359x10e9 to 1 to 10uS resolution. Hence the speed requirement from the DAC’s.
    We have done the maths and know how to do it. There is no product of it’s type available anywhere we can buy off the shelf
    We can’t write the software and test it as it is so time critical until we get this product operating.
    Can’t tell you what the products are as this goes International
    As a matter of interest the MSP430F1611 has 2 DAC O/P’s which is not mentioned in your catalogue but only runs at 8MHz
    Looking forward to getting your e-mail address.
    This product will be of considerable interest to both Industry and Universities Internationally
    Will forward the 'C Code' once I get your e -mail address
    Regards
    Ian
  • Dear Katie
    In addition the Test Equipment we are having to design for our products operates over a ratio 359x10e9 to 1 to 10uS resolution. Hence the speed requirement from the DAC’s.
    We have done the maths and know how to do it. There is no product of it’s type available anywhere we can buy off the shelf
    We can’t write the software and test it as it is so time critical until we get this product operating.
    Can’t tell you what the products are as this goes International
    As a matter of interest the MSP430F1611 has 2 DAC O/P’s which is not mentioned in your catalogue but only runs at 8MHz
    Will forward 'C' source code once I get an e-mail address.
    This product will be of considerable interest to both Industry and Universities Internationally
    Regards
    Ian
  • Dear Katie
    I can send the code but not on the Forum as I may breach the NDA I have with TI. Hence I believe I can send it to you via e-mail but need your e-mail address asap. I have followed the Data sheets and believe . It's correct.
    I discussed with another of our PDE's and he can't see a fault.
    We hesitate to make this suggestion but has TI tried & tested the board and processor at 20MHZ?
    Regards
    Ian

    Regards
    Ian
  • Hi Ian,

    I don't typically give out my email on the public forum, however if you want to send code privately you can click on my profile and send me a private message that way.

    Regarding high frequency crystal operation, you should use external caps (not internal) based on the recommendation for your crystal (check your crystal datasheet requirements). The code should set XCAPx for the high frequency crystal to 0 - XCAPx should not be set to anything besides 0 when external capacitors are used, and only external capacitors should be used for high frequency mode.
    Some other questions:
    1. I was unclear - do you simply need the part to run MCLK at 20MHz - e.g., could you use the internal DCO to run at 20MHz instead, or do you require the greater accuracy of using a high frequency 20MHz crystal for some reason? Most customers simply use the internal DCO referenced to the internal REFO to achieve whatever operating frequency they desire - typically only needing to use XT2 with high frequency crystal if they use USB (due to USB module requirements). If 20MHz operation is all you need and you don't need the higher accuracy of the crystal, I can quickly send you an example demonstrating this at 20MHz.
    2. If you do need a 20MHz crystal for some reason (maybe you need something more accurate than the DCO for some reason), have you removed the external caps that were already on the target board (C3 and C4) and the existing crystal on XT2 (Q2) on the target board, and replace the crystal with your 20MHz one as well as replacing the caps with the caps required by your specific crystal (from manufacturer datasheet)? Have you also set the XT2DRIVEx bits to the correct setting to the correct level (2) and the XCAPx bits to 0? Finally, is Vcore correctly stepped up (one level at a time using the TI libraries) to Vcore level 3?

    Regards,
    Katie
  • Katie
    I received a message from you last night. It is my turn to apologise over the time difference. It is 2:58am UK Time.
    I can't display it. Pease resend
    Ian
  • Hi Katie

    I've Tried all the suggestions you advised sent you the start up code for the MSP43F5438A which I adapted for the MSP430F5659 and the searched relevant development + all the relevant data sheets.

    You kept querying why I need XTAL accuracy and responded I may even have to go to an XTAL Oven after environmental testing.

    I invited you over here and emphasised we would treat your colleagues and or partner with politeness, courteously and with chivalry.

    No response, which I felt was dreadfully discourteous of your self.

    I explained Great Britain is one of the safest countries in the world and you wouldn't get shot in the back by a police man or any other resident . Our Gun and Weapon Laws are probable the strictest in the world.

    There are 3 PDE's + Tech Author on this product being logged at £500/day ie $755.00/day each.  We don't get that! unfortunately. Until the products finished.

    Are you going to reply courteously to this e-mail or telephone me on 0(+44)920 822282 at any time 24/7

    Yours Disappointedly

    Ian

  • Hi Ian,

    I responded on Wednesday in the private message thread but didn't hear anything back from you after that - what is the remaining issue? I don't see any response about environmental testing - I can't find it in our conversation here or on the private message anywhere? Maybe  the message did not go through for some reason when you sent it - does it show up in our E2E conversation for you?

    Did you try the code that I sent you for MSP430F5659 at 20MHz using DCO - did that work? I've reattached it here: UCS_20MHz_driverlib.zip

    In the code that you sent me, based on what was currently commented out it looked like you were setting the XT2DRIVE level after the fault loop - I think you should be setting the XT2DRIVE bits before the loop. In addition, I saw you had a define for XT2_DRIVE_USED and you had it set to drive level 3 if the frequency was over 20MHz. That is incorrect - please see the crystal oscillator XT2 specification in www.ti.com/lit/gpn/msp430f5659 p. 61 for fXT2,HF2 where it must be set to XT2DRIVEx = 2 for 16-24MHz crystals, and only to drive level 3 for 24MHz or above crystals. In addition, XCAP= 0 setting should be used for high frequency crystals (your code that you sent sets XCAP = 3 which is incorrect) and then the appropriate caps should be connected externally based on the crystal manufacturer recommendation - on the MSP-TS430PZ100USB board you would need to remove the currently populated caps and replace them with the recommended ones for your particular crystal. 

    I unfortunately cannot travel out to customers for support (even ones closer to home) like you are requesting - I have been to Great Britain before personally and it is a wonderful country so please don't think it is any reason like that!

    Regards,

    Katie

  • I realise you out number us by about this product 10,000 to 1, but I realise our product will save lives.

    Your support level is appalling

    Your TI private e-mail system. I need a manual

    No response to e-mails

    I would prefer in the words of Churchill Jaw, Jaw  is better the War, War

    You should be ashamed of your selves
    Ian Thorpe

    CRS Electronics

    Quote

    KING HENRY V:
    Once more unto the breach, dear friends, once more;
    Or close the wall up with our English dead.
    In peace there's nothing so becomes a man
    As modest stillness and humility:
    But when the blast of war blows in our ears,
    Then imitate the action of the tiger;
    Stiffen the sinews, summon up the blood,
    Disguise fair nature with hard-favour'd rage;
    Then lend the eye a terrible aspect;
    Let pry through the portage of the head
    Like the brass cannon; let the brow o'erwhelm it

     I actually do own a Tiger her name is "***" she's as soft as grease delightful animal. Long Story

    I want/wish better communications

    Try Harder

    e-mail addresses , Telephone numbers etc,.

    Play the game

    We have an PDE Engineer that can sort out the Start up Code for the MSP430F5659 at 20 Mhz

    Regards

    Ian Thorpe

  • From
    e2e.ti.com/.../1639931
    ... 23, 2015 9:55 PM. Hi Ian, Can you provide your code setup for the clocks on the ... external DAC's Plan B . We have another product idea for the future which the MSP430f5659 at 20 ... I see that it works with your source code I'll pay for it. ...




    Deal

    Shipping product to one of our PDE's who has experience with another USA corporate of similar nature.

    Please reply with Name and TI personnel e-mail address

    Ian Thorpe

    CRS Electronics Ltd
  • Ian Thorpe said:
    Please reply with Name and TI personnel e-mail address

    Ian,

    I think no one will post his email / phone / address / ... in a public forum. Katie also told you that.

    And I definitely do not share your opinion that the TI support is bad - it is one of the best you will find. Especially Katie's help here in the forum is outstanding. And she already did a lot for you although your tone is slightly inappropriate - you have a problem and you get help here for free. Be patient and stay polite please.

    Dennis

  • Hi Ian,

    I am sorry to hear that you are dissatisfied with our support on the forum. If you would like more direct support, I would recommend that you reach out to your TI sales contact if you have one, or to contact a TI authorized distributor in your region: www.ti.com/.../distributorinfo.tsp

    Regards,
    Katie
  • Please respond to colin.souter@crs-electronics.co.uk
  • Hi Ian,

    As mentioned, I can only provide the guidance I've already given on this forum thread regarding suggestions and solutions for your crystal oscillator issue for you to try in your code and hardware. But if you do not want this type of support, and want only direct communication via email, you will have to use a TI authorized distributor or your TI salesperson for this. There isn't really any other answer that I can provide.

    Regards,
    Katie
  • Pages 60-61 MSP430F665x, MSP430F645x, MSP430F565x, ... Mixed Signal Microcontroller (Rev. C).pdf

    We have had another PDE look at the 20MHz Crystal use on the MSP430F5659 and unable to get it working.
    I have double checked the XT2 specifications  for the MSP430F5438A and the MSP430F5659
    THERE IS NO DIFFERENCE
     
    This code runs completely adequately on a variety of unknown crystals purchased via Amazon from a Slow Boat from China.
    All work OK
    But NOT on the 5659
    The board MSP-TS430PZ100USB comes with a 4MHz Xtal and 47pf load capacitors that doesn't work.
    Spoken to a British crystal manufacturer to help resolve the situation. 
    Does any code exist to get the  MSP-TS430PZ100USB operating with the delivered XT2 4MHz crystal fitted ??
    I would be grateful for any help
    The product relates to an investigation into the missing Black Boxes (Flight Data Recorders) over the last 2 years.
    We have the S/W well advanced on a MSP430F5438A but would prefer to use the faster DAC's on the MSP430F5659
    Ian Thorpe
    /*File: PLABmain.c
     *  - XT1 source ACLK -> used for RTC
     *  - XT2 source MCLK and SMCLK
     */
    //Date 15 August 2012
    //Contains the Power up settings for VCORE
    //
    //Compiled, Tested and debugged with 
    //Rowley Associates Ltd CrossWorks for MSP430 Release 2.1.2
    #include "msp430x54xa.h"
    //#include "msp430f5438A.h"
    #include "hal_pmm.h"
    #include  <PLABliterals.h>
    unsigned int cnt;//Used for initial testing
    // defining the XT2 clock frequency which source MCLK and SMCLK
    #define XT2_FREQ_MHZ                 (24)
    // determine the PMM_CORE level
    #if (XT2_FREQ_MHZ > 25)
      #error "frequency is too high, maximum frequency is 25 MHz"
    #elif (XT2_FREQ_MHZ >= 20)
      #define PMM_LEVEL_USED    (PMMCOREV_3)       
    #elif (XT2_FREQ_MHZ >= 12)
      #define PMM_LEVEL_USED    (PMMCOREV_2)       
    #elif (XT2_FREQ_MHZ >= 8)
      #define PMM_LEVEL_USED    (PMMCOREV_1)       
    #else
      #define PMM_LEVEL_USED    (PMMCOREV_0)       
    #endif
    // determine the XT2DRIVE level
    #if (XT2_FREQ_MHZ >= 24)
      #define XT2_DRIVE_USED    (XT2DRIVE_3)       
    #elif (XT2_FREQ_MHZ >= 16)
      #define XT2_DRIVE_USED    (XT2DRIVE_2)       
    #elif (XT2_FREQ_MHZ >= 8)
      #define XT2_DRIVE_USED    (XT2DRIVE_1)       
    #elif (XT2_FREQ_MHZ >= 4)
      #define XT2_DRIVE_USED    (XT2DRIVE_0)       
    #else
      #error "XT2 frequency shall be 4 - 25 MHz"
    #endif
    // debug clock outputs?
    #define DEBUG_CLOCK_OUTPUTS
    void main(void)
    {
      // Stop watchdog timer80  
     WDTCTL = WDTPW + WDTHOLD;                 // Stop WDT
      
    //SetVCore  // Set VCore to 1.8MHz for 20M
     SetVCore(PMM_LEVEL_USED);                     
      // set XIN, XOUT, XT2IN, XT2OUT 
      P7SEL |= BIT0 + BIT1;
      P5SEL |= BIT2 + BIT3;
           
    #ifdef DEBUG_CLOCK_OUTPUTS
      // output ACLK, MCLK, SMCLK at P11.0-2
      P11DIR |= BIT0 + BIT1 + BIT2;  
      P11SEL |= BIT0 + BIT1 + BIT2; 
    #endif
      
      // Enable XT1 and XT2
      UCSCTL6 &= ~(XT2OFF + XT1OFF);
      // set XCAP bits
      UCSCTL6 |= XCAP_3;
      // Loop until XT1,XT2 & DCO stabilizes
      do
      {
        UCSCTL7 &= ~(XT2OFFG + XT1LFOFFG + XT1HFOFFG + DCOFFG);
        SFRIFG1 &= ~OFIFG;
      }while (SFRIFG1&OFIFG);
      // set XT2 drive level
      UCSCTL6 &= ~XT2DRIVE_3;
      UCSCTL6 |= XT2_DRIVE_USED;
      
      // set clock source
      UCSCTL4 |= SELA__XT1CLK + SELS__XT2CLK + SELM__XT2CLK; 
      // set P1.0 as output
      P1DIR |= BIT0;
      init_PLAB5438A_schedular();//Init all the system not the XTAL's
      while(1)
      {
         PLAB5438A_schedular();
      }
    //  cnt=0;
    //  while(1)
    //  {
    ////     PLAB5438A_schedular();
    //    if (cnt <= 50000)
    //    {
    //      cnt++;
    //    }
    //    else
    //    {
    //      cnt=0;
    //      P1OUT ^=fet_led;
    //    
    //    }
    //  }
    }
  • I have the code working you supplied for the 20MHz DCO (eventually)but it is quite inaccurate. The code supplied was incomplete.

    In addition I have the XT2 Crystal i/p working but currently refining it. I had to work with a Crystal Manufacturer.

    The MSP430F5659 is not  very XT2 Crystal tolerant we found.

    But Both work

    Thank you for your help

    Believe solution too large for e-mail.

    Continuing refining still some uncertainties?

    Regards

    Ian Thorpe

  • Ian,
    Thank you for the update. Let us know if you have any more questions.

    Regards,
    Chris
  • MSP430F5659 and MSP-TS430PZ100USB Target Board
    We have One piece of Start up code that NOW deals with any XT2 Crystals 4-20 MHz and XT1 32.768KHz.
    The problem was absolutely NOTHING to do with previous suggestions.
    I have changed position and happy and content with our solution.
  • I have the source code for 4MHz to 20MHz complete initialisation src code for MSP-TS430PZ100UB with MSP430F5659.

    With the help of IQD Crystals it will work and has been tested at 4,6,8,12,16,20MHz

    Only one value is changed in the src code and the Crystal changed . No Board Mods at all.

    Would you like me to send you a copy of the src code.

    A bit hectic this end with Brexit but great.

    Ian Thorpe

**Attention** This is a public forum