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.

MSP432P401R: POWER MODES

Part Number: MSP432P401R

Iam using MSP432P401R to control sensors and i need to control my MSP432P401R in such a way that when i need it should be ON otherwise it should in sleep (that is almost OFF condition).

Is there any way to control my power using power modes in ENERGIA.


If there any way suggest me some examples in it or in any other IDE.

  • Hello,

    Unfortunately, it is my understanding that Energia does not allow for much control concerning power modes. 

    As for your interest in other IDE choices, I would suggest to you downloading Code Composer Studio (CCS).  Another great option is the (lighter weight) CCS Cloud which allows you to use CCS on the cloud without having to download/install it on your machine.

    You can find code examples for going into low power modes at the TI Resource Explorer page.  Inside of the SimpleLink MSP432 SDK>Exampls>Development Tools>MSP-EXP432P401R folder you can find DriverLib and Register Level examples for this (also at least one in TI Drivers).  They are the ones labeled with "pcm" in the name (Power Control Manager).

    Additionally, it might be helpful to reference the datasheet while going through these examples, section 7 covers PCM.

    P.s. CCS and CCS Cloud both allow you to directly "import to IDE" and "import to Cloud" the examples from Resource Explorer with just one click.  This makes using example codes very fast and easy.

  • With Energia version 18 there are indeed at least two commands that put the MCU into LPM states, Sleep and Suspend.  By using these, and switching off peripherals (e.g. serial port) in your code before going to a low power mode, you can achieve pretty low standby current numbers on the MSP432.

  • Thanks for your reply
    How can i MSP-EXP432P401R for IR Transmission.
    Any suggestions?
    Right now iam trying to use IR led to send the data but i could not send using energia
  • Thanks for your reply
    How can i use MSP-EXP432P401R for IR Transmission.
    Any suggestions?
    Right now iam trying to use IR led to send the data but i could not send using energia, it is working fine with arduino but not with this.
  • Can you point me to the code you are using so I can take a look at it? Currently, on my machine, when I switch from an MSP430 in "tools" on Energia to MSP432, the File->Examples->IRremote examples disappear from the list of useable examples which would seem to suggest to me that these are not usable as they are by MSP432. Perhaps I am wrong, but if you could point me to the examples you use, it might help me to discover the issue here.
  • I have been using the same code as you mentioned File->examples->IRremote. I could use it but when i try to compile it shows many functions cannot be acceptable by the code for MSP432 (which is in the library)
  • Iam using IRSend demo Example from it and i have another doubt can i use SLEEP mode in MSP432.Iam facing some problem in it when i try to use it
  • Hello,

    I have been looking into that demo a little bit and it appears the lower lever included files use p2.3 on the MSP430 specifically.  This likely is not going to be the same pin on the MSP432 (I haven't dived into that aspect yet.)  The point I make here is that I don't believe the include files for that IRremote example set have been converted adaquately (yet) to be used in a MSP432 ecosystem on Energia.

    I don't think that I would suggest trying to go into all of the include files and making the needed changes to make this work, but that could be a valid approach.

    Regarding your sleep question, I am not extremely familiar with Energia at this time, but depending on the LPM that is entered by sleep (assuming it actually does enter into a LPM with this command) it could be that there is not an interrupt enabled capable of waking the device from this LPM.  See Table 7-8 Wake-up Sources from Low Power Modes in the datasheet for better picture of what this means.

    I plan to take some more time on this soon and I will tell you what if any better results I can find for you for this.

  • Energia 18 for the MSP432 uses TI-RTOS.  My recollection was a little fuzzy so I double checked the method used to go into LPM3 and LPM4 in Energia 18.  My understanding is that whenever a process is idle it automatically goes into LPM3.  Using a delay() command (or a possibly a sleep() command) effectively puts the MCU into a timed LPM3.  Using suspend() drops you into LPM4 which then needs an interrupt to wake up.  Please see the link below for more info (there are other threads on 43oh.com that address low power modes in Energia as well).

    forum.43oh.com/.../

  • Can you expand on the problem you are having.  Is the code compiling and running on the device?  Do you know what type of encoding this example is using?  I have found the following Application Note on the subject of IR remote control.

  • Actually i am using MSP432P401R for ir transmission but i could not find any code related for it and also i dont know whether i could use MSP432P401R for ir transmission. 

    So i have tried with the code of MSP430 for MSP432P401R with slight modification in it.I tried this code it is not sending any data,i could not find any output using this code.

  • You can certainly use the MSP432P401R for IR transmission.

    If your only intent is a simple remote control, such as is used for a television, you should be fine using the MSP430 launchpad instead since it appears the Energia libraries already exist for this device.  That might be an easier solution for you since the example codes already exist.

    Is there a specific reason you chose the MSP432 over the MSP430 for this?

  • MSP432P401R has pretty good Low power modes so I am using it.I have found that IRDA is there in MSP432P401R which is used for IR transmission can you help me based on it. I need to know how to use it
  • MSP432 is our high performance line but the MSP430 also offers great low power modes.  If your goal is only to create an IR remote control for with low power abilities, I think using an MSP430 would suffice.

    We don't currently have IR examples for the MSP432 from TI.  That might be valuable input for us to create examples regarding this IRDA feature, but as of right now we do not have this.

    Since you were wanting to use the IRremote code from Energia, I really think MSP430 is your best bet for a fast/easy prototype.  Otherwise, I would encourage you to read the TRM section 22.3.5 which addresses the IRDA and begin working from there.  Or you might reach out to Energia's team to find out about how to port their IRremote to work with MSP432.

  • Perhaps the MSP430FR4133 would be a good choice for the OP's application.  It has the low power attributes as well as IR modulation logic hardware built in.  TI has a special bundle on the 4133 Launchpad and an IR boosterpack which is a quick and inexpensive way to explore this chip for a remote control application. Links below are for the bundle and the product page on the 4133 MCU.

    https://store.ti.com/MSP-BNDL-FR4133IR.aspx

    http://www.ti.com/product/msp430fr4133

    EDIT:  Not sure if the 4133 is currently supported by Energia.  However, the CCS software examples for IR remote control on the 4133 may offset that.

  • This is a nice option I would think.  Here is some code example related to these parts mentioned by Dubnet.  This code is meant to run with MSP430FR4133, but it looks like a lot of it would be transferrable to meet your goals as well if you want to try porting it to MSP432.

**Attention** This is a public forum