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.

MSP430G2553: XTAL issues - Errata Slaa423

Part Number: MSP430G2553

FROM MY CUSTOMER:

 

The problem, is we are using a 32kHz crystal for a time base in the clock circuit, divided down to 1 second for timer ticks.  Some of the units, not all, exhibit an 8 fold increase in timer operations( i.e. the clock is running 8 times slower than it should).

 

What the team in Singapore has found is that by increasing the load capacitance on the oscillator the clock can more reliably start.  The design parameters seem to be correct for the design, but the errata also suggests increasing the load capacitance to get a more reliable start.

 

Current design approach: (stray capacitance is the wildcard here)

If we assume 6pf stray, then the correct value for tuning caps would be 13pf

If we assume 2pf stray then the correct value for tuning caps would be 21pf

 

Increasing the load capacitance on the XTAL has been shown to help fix the issue.  There is still more investigation going on to evaluate margin, but it seems that might be a good solution.

 

In the errata, is suggest not to use both external capacitors and internal capacitors in a design.  But the issue is we have many units in the field, and we could update the MCU code and add internal capacitance.  Currently there no internal capacitance configured, but we are looking at going to 6pf.

 

Can you help us understand why both internal and external capacitance might not be recommended?

Any other insight from the MCU team on this errata or other theories of what going on would be helpful?

 

IF POSSIBLE, I'D LIKE TO ASK IF WE CAN HAVE A CALL WITH THE CUSTOMER TO WALK THROUGH SOLUTIONS.

  • Hi Al,

    The MSP430G2553 is not affected by XOSC8. This can be seen in the device erratasheet SLAZ440. Has your customer followed the guidance of selecting the appropriate caps detailed in the MSP430 32-kHz Crystal Oscillators app note? There are also techniques for testing the stability of crystal oscillators for mass production that I recommend they look into. 

    I'm also not sure I understand the issue that your customer is experiencing. Can they try outputting the clock on a pin to measure its frequency to see if it is really running 8 times slower than it should?

    Best regards, 

    Caleb Overbay

  • I would add a delay after reset to give crystal some time to start up. After that it is good to check LFXT1OF flag in BCSCTL3 register for oscillator failure.

    thanks,
    Dmitry
  • Thanks, Caleb. Response from my customer:

    The clock was confirmed to be running 8x slower on an GPIO pin.

    We would really like to understand if we can use both external and internal load caps, as this system is already in production and at our customer’s sites.
    Any BOM change on the PCB is problematic, but code we can upgrade in the field.

    I seem to recall there was a fail over mechanism if the XTAL OSC fails, it reverts to another clock, but my memory is fuzzy on this? It might have been an app note or special code example?

    We need the internal/external cap question answered.
  • Hi Al,

    Everything I'm seeing so far signals that there shouldn't be an issue with using a combination of both internal and external load caps.

    There is a fail-safe on LFTXT1. However, this only applies if LFXT1 is sourcing MCLK. In this scenario, if a fault condition occurs on LFXT1, MCLK is switched to the DCO. In addition, the MSP430 will detect a fault condition on LFXT1 regarless of what it is sourcing. When this happens, the OFIFG flag is set and if  the oscillator fault interrupt is enabled via OFIE, an NMI is generated. I recommend this is implemented in software as well to detect if LFXT1 ever fails and then react accordingly. There is a code example for this called msp430g2xx3_LFxtal_nmi.c that can be found here.

    Finally, can you provide the XTAL part number and the value of the current external load caps so I can check if what they currently are using is sufficient? I can also help suggest what additional internal capacitance can be used to fix the issue.

    Best regards,

    Caleb Overbay

  • XTAL PN: Epson FC - 135 / FC - 145 / FC - 255

  • Hi,

    Thanks for the part number. Are they currently using any external capacitors?

    Best regards,
    Caleb Overbay
  • Al,

    I am closing this thread. If your customer has any further questions feel free to PM me or reply to this thread.

    Best regards,
    Caleb Overbay

**Attention** This is a public forum