Quantcast
Channel: MSP low-power microcontroller forum - Recent Threads
Viewing all 22002 articles
Browse latest View live

RTOS/MSP430F233: TI-RTOS WORKSHOP FILES


CCS/MSP430F5529: MSP430F5529 EXP BOARD IO can't not action

$
0
0

Part Number:MSP430F5529

Tool/software: Code Composer Studio

hey, Guys;

I write a code to blink the led like picture;

and I compiler the code and debugger is OK;

just downloading the code on the MSP430F5529 USB exp board,But IO wasn't action .plz help  .

I hope the led IO(P2.6) cant blink.

MSP432P401R: UART Comms stalls because UCTXIFG is clear after a character is sent.

$
0
0

Part Number:MSP432P401R

Hi all,

We've had a few different scenarios now where our UART drivers will occassionally stall because UCTXIFG remains clear after a character is sent (UCBUSY = 0).

We've observed this behaviour in an interrupt based UART driver for a port running at 57.6kBaud, and a DMA based driver for another port running at 2MBaud. 

In the case of the DMA driver, we only seem to get the UCTXIFG problem at the end of the DMA burst - have not observed a DMA burst halt early due to this issue.

We are working around this by detecting that UCTXIFG is clear when it shouldn't be and setting it (just before starting the burst for DMA, on a timer for the interrupt based UART).

Both UARTs are sourced from SMCLK and we do not poll UCTXIFG so I don't think errata USCI44 applies.   

Do you have any suggestions regarding why we might be seeing this effect and whether there is a better work around?

Cheers

Julian

 

MSP430FR4133: Emulated instructions purpose in MSP430 controllers

$
0
0

Part Number:MSP430FR4133

Recently I read about addressing modes and instruction set in MSP430 controllers....There emulated instructions are there. They do not have opcode. Then how do assemble understand the operation? Can any one please explain. In any ISA, I do see opcodes for every instruction. What Is the purpose of these emulated instructions and one more is constant generator registers are linked to these instructions. Do we really need these CGs and emulated instructions?

MSP430G2553: Code for interfacing MPU 9250 sensor to MSP430G2553 to get the accelerometer values

$
0
0

Part Number:MSP430G2553

Hi,

 can anyone share the code for interfacing MPU9250 sensor to the MSP430G2553 i want complete code for getting the accelerometer values if anyone ever worked on this please share the code,

Thanks in advance.

Regards,

Rupendra.

CCS/MSP430G2553: ADU10 does not work

$
0
0

Part Number:MSP430G2553

Tool/software: Code Composer Studio

Ladies and Gentlement,

I mean, that I have done everything according to the 'Users Guide'. However it do not work. What I want is just, periodic reading the value at P1.3 of the MSP430G2553.
The value of the variable 'isoll' is always 0. The value of ADC10MEM is always 436 (decimal).

Best regards
Franz Peter Zantis

/*
Software für die Stromversorgung mit MSP430G2553
Stand: 2. September 2017, F.P. Zantis
*/

#include <msp430G2553.h>

unsigned int isoll;      //Stromvorgabe

int main(void) {
   WDTCTL = WDTPW | WDTHOLD;   // Stop watchdog timer
   BCSCTL1 = CALBC1_16MHZ;     //clock SMCLK=16MHz
   DCOCTL = CALDCO_16MHZ;      //use internal DCO as clock

   P2SEL &= ~BIT6;         //P2.6 als input/output
   P2SEL &= ~BIT7;         //P2.7 als input/output
   P2DIR |= BIT6;         //P2.6 als Output
   P2DIR |= BIT7;         //P2.7 als Output
   P2OUT &= ~BIT6;         //P2.6 auf low; LEDrot ein
   P2OUT &= ~BIT7;         //P2.7 auf low;   LEDgruen ein

   //ADC
   P1SEL |= BIT3;               //ADC input über P1.3
   ADC10AE0 = BIT3;            //ADC input A3 über P1.3 eingeschaltet
   ADC10CTL1 = INCH_3;          //Channel 3 - A3
   ADC10CTL1 |= ADC10DIV_7;      //ADC10CLK/8
   ADC10CTL1 |= CONSEQ_2;         //repeating conversion single-channel
   ADC10CTL0 = ADC10ON;         //ADC on
   ADC10CTL0 |= SREF_1;         //Vref & Vss als Referenz (1,5V)
   ADC10CTL0 |= REFON;            //Reference generator on
   ADC10CTL0 |= ADC10SHT_3;      //Sample & hold = 64 clocks
   ADC10CTL0 |= MSC;            //automatic continuous sampling
   ADC10CTL0 |= ADC10SC;         //start conversion
   ADC10CTL0 |= ADC10IE;         //ADC interrupt enable
   ADC10CTL0 |= ENC;            //ADC enabled

   __enable_interrupt();


   while(1)
   {
      if(isoll > 500)
      {
          P2OUT &= ~BIT6;         //P2.6 auf low;   LEDrot ein
      }
      else
      {
         P2OUT |= BIT6;         //P2.6 auf high; LEDrot aus
      }

   }


   return 0;
}





#pragma vector = ADC10_VECTOR
__interrupt void ADC10ISR(void)
{
   isoll = ADC10MEM;
}

MSP430FR6972: How to measure higher input resistance than MSP430 ADC

$
0
0

Part Number:MSP430FR6972

Hi Champs,

 

If the MSP430 ADC input resistance is higher than MSP430FR6972 spec (Nom:0.5kohm), do you have any idea to connect ?

 

 

 

Regards,

Kz777

 

GRACE: Why was grace discontinued?

$
0
0

Part Number:GRACE

I just started development on the MSP430FR2433 and saw that it is not supported by GRACE. What was the reason for discontinuing grace? Is there going to be a new, similar tool in the future? If there is, why would the current one be discontinued before the new tool is released?


MSP430I2040: Increasing the sample rate and update rate

$
0
0

Part Number:MSP430I2040

Hi team,

I am working on an MSP430i2040 sub-metering EVM. The design has a sample rate of 8kHz and update rate of 4 AC cycles.

I'd like to ask:

1. What is the maximum sample rate that can be achieved?

2. Is it possible to make the update rate of a single cycle?

Please advise the trade-off if any. Thank you.

MSP430FR5959: PJ.4 / PJ.5 as I/O port

$
0
0

Part Number:MSP430FR5959

Hello everyone,

It may seem strange, I can not use PJ.4 / PJ.5 as a normal I/O port

code

#include <msp430.h>

void McuOscSel(void;

void main(void){
    WDTCTL = WDTPW | WDTHOLD;
    McuOscSel();

    PJDIR |= BIT5 |BIT4;
    PJOUT |= BIT5 |BIT4;
    PJSEL0 &= ~(BIT5 |BIT4);
    PJSEL1 &= ~(BIT5 |BIT4);

    PM5CTL0 &= ~LOCKLPM5;

    while(1);
}
void McuOscSel(void){
    // select DCO to 8MHz
    CSCTL0_H = CSKEY >> 8;						// Unlock CS registers

    CSCTL1 = DCOFSEL_6;							// Set DCO to 8MHz
    // Set SMCLK = MCLK = DCO, ACLK = VLOCLK
    CSCTL2 = SELA__VLOCLK | SELS__DCOCLK | SELM__DCOCLK;
    CSCTL3 = DIVA__1 | DIVS__1 | DIVM__1;				// ACLK = 10kHz, Set all dividers to 1
    CSCTL4 = HFXTDRIVE_3 | HFFREQ_1 | HFXTOFF | LFXTDRIVE_3 | LFXTOFF;
    CSCTL4 &= ~VLOOFF;							//ACLK ON

    CSCTL0_H = 0;							// Lock CS registers

    return;
}

the same code works fine on MSP430FR5969.

where am I wrong?

thanks for any help

MSP430F6775: Where can I get the source code for the calibration GUI in slaa577g?

$
0
0

Part Number:MSP430F6775

Hello, 

I am interested in reference design slaa577g, since I want to male my own power meter for my house. I downloaded the source code in the document and I even downloaded the Energy Library available by Texas Instruments. 

I understand how the code gets all the data and all the necessary adjustments to get the info from the ADC, but I'd like to understand how the calibration process works. The source code that comes with the application comes with a gui, which is just an executable, but there is no source code for the calibration. If possible I'd like to get  the source code for it, even though the process seems quite simple to understand.

TIDM-WLMOTORMONITOR: Regarding DSP library in firmware package

$
0
0

Part Number:TIDM-WLMOTORMONITOR

Hello!

In the design guide document of wireless motor monitor, it is mentioned that "In the design folder, the DSP library is in the zip file, WMM.zip.This zip file should compile.". But when I open the firmware file of wireless motor monitor, I can not find the WMM.zip file for DSP library. So could anyone help to tell me where I can download this file as mentioned? Thanks.

Best regards,

Jin

MSP430F67751A: clock configuration

$
0
0

Part Number:MSP430F67751A

Hi All,

Can we generate accurate 16Mhz MCLK clock with a 32.768Khz HCMOS TCXO for MSP430F67751A

Does anyone have the register values calculator for quick calculation for it to set up the MCLK

I think the XT1BYPASS to be set to 1 for oscillator input on XIN pin.

What will happen if XT1BYPASS to be set to 0

regards

Subbu

MSP430F6747A: Single Phase Energy Meter Firmware Resources

$
0
0

Part Number:MSP430F6747A

Hello,

We are looking for available firmware resources for Single Phase Energy Meter project using MSP430F6747A chip i.e. Metrology Software, DLMS/COSEM Library, etc.. We are able to find the firmware resources for other MSP430 family but not for the mentioned chip.

May you please share available firmware resources for chip MSP430F6747A to make Single Phase Energy Meter?

Kindly request to revert as soon as possible.

Thanks,

Saurabh Patel

MSP430FR6972: FR6972 software BOR can not clear the peripheral register

$
0
0

Part Number:MSP430FR6972

BOR the MCU every 5seconds,after BOR the peripheral registers such as Timer doesn't clear!!!

but from user's guide BOR will clear majorty of registers , but it seems not,why???

i


IAR-UPDATE: Strange message with IAR version 7.10.4

$
0
0

Part Number:IAR-UPDATE

Good Morning everybody!

This morning, while I was trying to do the debug of my Code in ASSEMBLY with the IAR, the compiler shows me this message:

"Your code is too large. This IAR version has a code limitation of 8192 byte."

This is the first time It happens (I've worked with IAR for many years) and I really don't know why.

I'm working with MSPFR5972 processor.

Can anybody help me with this problem?

Thank You for your attention,

Kind Regards

Luigi Quaglia

MSP430F149: MSP430F149 AD Voltage abnormality

$
0
0

Part Number:MSP430F149

With A1 to A3 four AD acquisition, only the smallest system with the voltage divider resistor, configured into ad's special function pin, A3 port always maintain a voltage of more than 2v, for another chip, began normal, After a period of time the chip can not work, please help me analyze this problem,THANKS!!

MSP430FR6989: BOOST CC2564MODA

$
0
0

Part Number:MSP430FR6989

I am trying to integrate the BOOST CC2564MODA with the MSP430FR6989 and be able to have it talk to a smartphone to send audio data back and forth.  I am looking for some starter code to try and help me get off on the right foot since this is a new area for myself.  

1. I see that the MSP430FR5529 has a lot of example codes for similar applications to what I am looking for.  Besides a different MCU, is the 5529 and 6989 capable of similar things( since they are both launch pads, I can use the 5529 code for my 6989 applications)?

2.  I used this website (http://processors.wiki.ti.com/index.php/CC256x 

page has the examples.  

CC256XMSPBTBLESW software package.  However I am not sure if this is right/ how to use it for CCS v7 since in the article they talk about 5 and it seems pretty outdated.  Is there newer forms on

how to use it? 

4.  Any suggestions on a simple way to get connected to a smartphone via bluetooth using these two boards? 

MSP430FR6989: Connecting a MSP430FR6989 with C2564MODA and some starter examples

$
0
0

Part Number:MSP430FR6989

Hi everyone, 

I just bought both the MSP430FR6989 and CC2564MODA so that I can do bluetooth speakers around my house.  I was hoping to use the A3DP Multi Room example but that seems to be for the MSP430FR5529.  So i have a few questions.  

1. Any examples codes for the MSP430FR5529, can I use them with my 6989? If not, which ones, what is the bottle neck?  I get since they are in the same family, the pin layouts for stacking with other boards should be the same.  

2. Is there some TI written examples codes to interconnect this bluetooth stacked board system to a smartphone and send audio data ( I have the CC 3200 Audio Booster Pack).  I would like to be able to send music from my phone to this board.  I have looked at this website (http://processors.wiki.ti.com/index.php/CC256xhttp://processors.wiki.ti.com/index.php/CC256x_MSP430_TI_Bluetooth_Stack#Flashing_the_Bluetooth_Code

. I currently have the v7 and have been unsuccessful finding some newer forums for the new board (6989).  

3.  Is there any better suggestions on how to get a prototype up quick? I can't find anything that will get me up easily.  I know TI has a lot of examples for simple and common applications, like IoT and audio transfer over bluetooth communication.  

CCS/MSP430G2744: SINGLE BIT MANIPULATION problem

$
0
0

Part Number:MSP430G2744

Tool/software: Code Composer Studio

Hi everybody!

As the title of the post said, I'm trying to manipulate a single bit of my variables but unfortunately I have some troubles with this!

What I want to do is:

--> set a 16bit-register in order to contain 16 different flags

--> manipulate each of these bits: I want to switch on and/or off and also test every bit.

I know that in assembly there are instruction like BIC.B, BIS.B and BIT.B.... but in C?!

How can I do that?

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

In my code I also have a routine for the display (composed by 4 7-segment display) that works perfectly with INT type variables.

Now, I need also to work with the POINT of each display and I tried so many combinations that I lost myself...

Can anyone help me with this problem? I think It is related to the question above about the bit manipulation

(infact the DP is the BIT7 of each display and unfortunately now i'm not able to set it in my routine.-->Why?!)

(Please visit the site to view this file)

Hoping in Your answers,

thank You for the attention

Kind Regards

Maria Angela

 

Viewing all 22002 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>