Other Parts Discussed in Thread: MSP430FR2000
Hi Experts,
Seeking your assistance on this query from Cx:
Issue:
We conclude from our measurements that REFO does not turn off (find below how we came to this conclusion). We would like to know if that is a known issue in the MSP430FR2111 series. If not, how could this issue be resolved? Our primary goal is to lower current consumption in active mode.
Information from Datasheets:
According to theUser's Guide MSP430FR4xx and MSP430FR2xx family on page 103 chapter 3.2.3 internal trimmed Low-Frequency Reference Oscillator (REFO): "REFO consumes no power when it is not in use"
According to the Datasheet MSP430FR21xx, MSP430FR2000 Mixed-Signal Microcontrollers on page 24 Chapter 8.12.3.4 REFO: REFO oscillator current consumption 15uA at 3V
We made two measurements:
1.) we used REFO as MCLK as SMCLK and as ACLK. FLL=OFF, DIVM=1, DIVS=1
-> power consumption of MSP430 = 71.87uA at 3V
2.) we used an external 32.768kHz push pull clock on XT1IN pin with XT1BYPASS as MCLK as SMCLK and as ACLK.
FLL=OFF, DIVM=1, DIVS=1
-> power consumption of MSP430 = 72.12uA at 3V (the expected power consumption was 71.87-15= 56.87uA)
C-code:
measurement one, clock settings:
__bis_SR_register(SCG0); //disable FLL CSCTL4 |= SELMS__REFOCLK | SELA__REFOCLK; // selcect REFOCLK 32.768kHz
measurement two, clock settings://P2SELx = 10 set at pin 1.7 pinFunction to XIN P2SEL1 |= BIT7; //1 MSB P2SEL0 &=~ BIT7; //0 LSB // 1b = XT1 sources externally from pin (0_UsersGuide_MSP430FR4xx_and_MSP430FR2xx.pdf S.120) CSCTL6 |= XT1BYPASS; // must be done before asking if everthing is ok of course! do{ // waiting for OFIFG is a must, otherwise REFCLK is selected as fall back CLOCK! // the reason: FLL can only be disabled after OFIFG is Low CSCTL7 &= ~(XT1OFFG | DCOFFG); // Clear XT1 and DCO fault flag SFRIFG1 &= ~OFIFG; }while (SFRIFG1 & OFIFG); // Test oscillator fault flag __bis_SR_register(SCG0); //disable FLL CSCTL4 |= SELMS__XT1CLK | SELA__XT1CLK; // selcect external CLK source (RTC) for MCLK | selcect external CLK source (RTC) for ACLK CSCTL3 |= SELREF__XT1CLK;https://e2e.ti.com/tinymce//apis/embeddables/configure?typeId=dc8ab71f-3b98-42d9-b0f6-e21e02a0f8e2&id=undefined#https://e2e.ti.com/tinymce//apis/embeddables/configure?typeId=dc8ab71f-3b98-42d9-b0f6-e21e02a0f8e2&id=undefined#
For your assistance please.
Regards,
Archie A.