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: why LOCKBAK bit cleared in BAKCTL register during XT1 selection

Part Number: MSP430F5659

Hi,

I referred a example code for MSP430F5659 for selecting XT1 as clock source. I saw that the LOCKBAK bit was cleared in the BAKCTL register before touching the UCSCTL registers. (Attached reference)

Could you please explain the significance of clearing the LOCKBAK bit in the BAKCTL reg while choosing the XT1 input?

MSP430F665x Demo - XT1 sources ACLK:

  • Hi Muthiah,

    This check and clearing of the LOCKBAK bit verifies that the battery backup system registers (and by extension the LF Crystal settings in the UCS register) may be modified.

    Per section 3.2 of the user's guide, restricting access to the battery backup control system, which occurs automatically when powered by VBAT, also prevents modifying LF Crystal settings.

    Best Regards,
    Brandon Fisher

**Attention** This is a public forum