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.

msp430F6779 RTC设置求解

产品已设计好,小批量生产时出现RTC关机后停在关机的时刻或者走两个小时停住的情况。

硬件上VCC. AUXVCC1.AUXVCC2都连到主电源,AUXVCC3接到纽扣电池,现在的操作是切断主电源前,关掉VCC1,VCC2。过一天设备再开机启动

就出现上面的现象,很难重现,但是试验一批总会有,把出现问题的再拿去试验又无法重现。

请教,切断主电源前还需要设置什么吗?

  • The secondary supply VBAT powers the backup-supplied subsystem

    • at power on

    • if bit BAKDIS = 0 in the BAKCTL register and

    – if the primary supply drops below the configured high-side SVS level

    – if the high-side SVS (SVSH) is disabled

    – during LPMx.5

    – if bit BAKSW=1 in the BAKCTL register

    The primary supply DVCC powers the backup-supplied subsystem

    • if the primary supply rises above the power-on level of the high-side SVS level

    • if the primary supply remains above the configured high-side SVS level

    • if bit BAKDIS = 1 in the BAKCTL register

    If the backup-supplied subsystem is powered by the secondary supply VBAT, the access and control to

    modules located in the subsystem is restricted:

    • The data stored in the backup RAM is retained but cannot be accessed.

    • The RTC, if enabled, together with the 32-kHz crystal oscillator continue to operate but the time and

    date information cannot be accessed.

    • Changes to the LF crystal oscillator setting in the clock system do not take effect.

    If the backup-supplied subsystem is powered by the primary supply DVCC and LOCKBAK = 0, the

    modules located in the subsystem can be access and controlled normally.

    该手册第125,126有介绍使用备份电池的寄存器操作方式。

    先确认是否设置的正确

  • 您可以看一下 www.ti.com/.../TIDM-AUX-MODULE 这个模块是给RTC一个Separate power supply

    Separate power supply for Real-time Clock

    www.ti.com/.../tidrai2.pdf 您可以借鉴一下
  • 用了RTC_C,这个芯片没有Vbat,用到了AUXVCC3,谢谢
  • datasheet上都是说低功耗时寄存器的保存相关的设置,没有说VCC断电,只有AUXVCC3供电给RTC_C时相关的设置