Jump to content
43oh

RobMaker

Members
  • Content Count

    5
  • Joined

  • Last visited

Posts posted by RobMaker

  1. Hi, using the MSP430FR2433 I can measure the supply voltage with the following code in Energia upto 3V successfully: 

    #define ANALOG_HALFVCC_INPUT A11
    
    void setup() {  
    
    analogReference(INTERNAL1V5);
    data = analogRead(ANALOG_HALFVCC_INPUT);
    data = (int)map(data, 0, 1023, 0, 3000);
    Serial.println(data);
    
    }

     

    However when using

    Quote

    analogReference(INTERNAL2V5);

    there is an error saying INTERNAL2V5 is not declared.

    Is there a way to read voltages above 3V for this board too?

     

    Many thanks in advance,

    Robert

  2. Hi,

    running this blinking led code on Launchpad MSP430FR2433

    // Ultra Low Power Blink Example
    
    #define LED RED_LED
      
    void setup() {                
      for (int i = 2; i < 20; i++) {
          if (!(i == 11 || i == 12)){
            pinMode(i, OUTPUT);
            digitalWrite(i, LOW);
          }
      }
    }
    
    void loop() {
      sleep(2000);
      digitalWrite(LED, HIGH);   // turn the LED on (HIGH is the voltage level)
      sleep(3);
      digitalWrite(LED, LOW);    // turn the LED off by making the voltage LOW
    }

    resulting in this current profile:

    image.thumb.png.82cd80df1fac91119a48a968eda0d3bf.png

    The power consumption looks nice (with LED current limited via 3.3 kOhm) but the blinking frequency is rather 10 seconds instead of 2 seconds.

    The launchpad is configured to run with external crystal.

    Changing sleep(2000) to sleep(999) I got the following profile:

    image.thumb.png.3cd17ac931453f13523d7f508883de21.png

    The frequency is now OK but I am not sure if the same LPM mode is achieved during sleep phase.

    Please, could someone give an insight about the difference? Can I run 2s blink frequency with ~1µA consumption during sleep phase?

    Thanks in advance,

    Robert

  3. Hi!

    I try to implement solution 3) for the MSP430FR2433. Its exactly my use case... implementing a second (persistent) buffer of ~3kb which does otherwise not fit to the 4kb RAM anymore.

    However, following the suggested directory structure I cannot find the folder MSP430FR2433. Looking at folder msp430fr2xx_4xxgeneric instead, there is only one file periph.x but not memory.x. Does the solution still work for this MCU & Energia?

    Thanks in advance.

  4. Hi everyone,

    I am playing around with ePaper displays and wrote a library for them link, trying to reduce energy budget so far to allow self-powered, little devices with ePaper screens.

    Now I moved from several ARM-based MCUs to MSP430FR2433 launchpad to try benefiting from its low power modes.

    Getting the EPD to run with Energia worked almost out of the box.

    Getting low power (sleep) modes to run in Energia is my next goal.

    Cheers,

    Robert

     

     

×
×
  • Create New...