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.

LP-MSPM0L1306: how to set COMP to standby0 for power saving?

Part Number: LP-MSPM0L1306
Other Parts Discussed in Thread: MSPM0L1306, SYSCONFIG

hi expert,

I use the example comp_hs_dac_vref_external_LP_MSPM0L1306_nortos_ticlang in SDK 1.0.1.3 on LP-MSPM0L1306.

the reference project works correctly.

I just change the low power policy to standby0 on sysconfig. The output should be always high. but there is small low pulse.

It seems that I need to change something in COMP for STANDBY0.

How can I set COMP to standby0 for power saving?

BR,

frank

  • Hello Frank,

    COMP does not have a "standby" mode but it can be set to ultra-low power mode because you are worried about power saving. The only disadvantage of the ULP mode is that the output filter cannot be enabled. Hope this helps.

    Regards,

    Sydney 

  • Sydney,

    Do you mean that I cannot set power policy to standby0 when using comp +DAC?

     DL_SYSCTL_setPowerPolicySTANDBY0();

    if I select ULP mode, the evm power consumption is still 2.4mA.

    from datasheet, it can achieve 0.8uA. How can I achieve it without setting power policy?

    BR,

    frank

  • Hello Frank,

    Yes you can set DL_SYSCTL_setPowerPolicySTANDBY0() but I would actually recommend setting STANDBY1. The following is from the MSPM0L driver library:

    "In STANDBY1, only TIMG0 and TIMG1 receive ULPCLK/LFCLK. The RTC continues to receive RTCCLK. A TIMG0/1 interrupt, RTC interrupt, or ADC trigger in STANDBY1 always triggers an asynchronous fast clock request to wake the system. Other PD0 peripherals (such as UART, I2C, GPIO, and COMP) can also wake the system upon an external event through an asynchronous fast clock request, but they are not actively clocked in STANDBY1."

    As far as not using power policy to achieve this have you tried using the "Ultra-low-power general-purpose with output filter" COMP profile?

    Regards,

    Sydney

  • Sydney,

    As I mention in last reply, if I use COMP ULP mode, the power consumption is still 2mA. If I remove all jumps and R2 from evm, the power consumption is still 0.99mA.

    If I use COMP ULP mode + Standby0, the interrupt has issue which is my question for this ticket.

    I cannot use STANDBY1 for this project because I need interrupt. 

    So, do you have example to achieve  lowest power consumption with COMP + DAC.

    BR,

    frank

  • Hello Frank,

    I will test this and get back to you by tomorrow end of day. Thank you for your patience.

    Regards,

    Sydney

  • Hello Frank,

    After looking into this issue I was unable to find a low pulse after changing the low power mode to STANDBY0 using that file. There should be no required STANDBY configurations for the COMP to work correctly. Which production version of the MSPM0L1306 are you using as this may contribute to your issue. 

    Regards,

    Sydney

  • Sydney,

    I use PG2 LP-MSPM0L1306 evm (rev A).

    can you share the sysconfig and main code w/o issue?

    BR,

    frank

  • Hello Frank,

    Just to compare situations are you using CCS, if so what version? Also, attached is what I used to test this problem. Please let me know if the issue continues to give a low pulse.

    Regards,

    Sydney

    comp_hs_dac_vref_external.zip

  • Sydney,

    I use your files. I can still see the issue.

    Do you set PA27 to low?

    BR,

    frank

  • Hello Frank,

    No I do not set PA27 to low, I leave everything as the example has it other than switching the low power policy to standby0. This may be a device issue, I am continuing to run tests and PA27 is a little noisy but it never drops below 3.3V.

    Regards,

    Sydney

  • Sydney,

    from the code, set PA27 to low then PA0 would become high.

    You should be able to see the issue when set PA27 to low.

    BR,

    frank

  • Hello Frank, 

    As to replicate your code exactly will you send me your SysConfig and .c file so I can test what you are running?

    Regards,

    Sydney

  • Sydney,

    I use your .c and sysconfig file. I can see the issue by put PA27 to low. you can see PA0 is low but have high pulse.

    BR,

    frank

  • Hello Frank, 

    When I set PA27 low PA0 would go low but I had no high pulse. Please make sure that you are using CCS version 12.4, SysConfig 1.17, and SDK 1.10 these are the most recent releases and if you are still having an issue you may be using an outdated tool. 

    Regards, 

    Sydney

  • Sydney,

    I found the answer from errata.

    COMP_ERR_01 Comparator output keeps toggling in STANDBY0 mode

    BR,

    frank