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

Compiler/MSP430FR6989: Understand LCD segment Launchpad library for MSP430FR6989

$
0
0

Part Number:MSP430FR6989

Tool/software: TI C/C++ Compiler

Hello,

I want to purchase MSP430FR6989 Launchpad and I want to make a code in Energia.

There are LCD_Launchpad.h is there.Yes,I able to run demo code in Custome LCD in Launchpad.

But If I will drive our own customize LCD on MSP430FR6972 MCU.Then as per my segments which portion of code I need to modify in LCD_Launchpad.cpp and LCD_Launchpad.h.

Here I am attach"LCD_Launchpad.h" and "LCD_Launchpad.cpp" files.

Please give me an idea for our custom LCD programming.

Regards,

Pratik(Please visit the site to view this file)

 


CCS/MSP432E401Y: CCS v8 was used and imported one of the examples from MSP_EXP432E401Y\driverlib\

$
0
0

Part Number:MSP432E401Y

Tool/software: Code Composer Studio

How to change the name of the project that was imported from one of the examples?  Thanks.

BOOSTXL-AUDIO: help in coding

$
0
0

Part Number:BOOSTXL-AUDIO

Hello, I'm using MSP- EXP430FR5994 and BOOSTXL-AUDIO. I want to generate a voice output everytime a switch is pressed. The output of the audio has three sources: (1)DAC on the BOOSXL-Audio;(2)DAC on the Launchpad(MSP430FR5994 don't have DAC);(3)PWM from the Launchpad.  I referred TIDM-VOICEBANDAUDIO  for programming but I couldn't open the .jar file for Audio Loading GUI. I downloaded jarfix and even tried to open with command prompt but none of that is working. 

I don't know how to start programming for audio output, I referred to few more document as Interfacing an I2S Device to an MSP430 Device and tried few example software, but I'm more confused. Can I get some help how should I start programming? What are the available audio library?

MSP430F5659: RTC Month and Calendar Month range conflict

$
0
0

Part Number:MSP430F5659

I just noticed the time in my software is jumping from May 30 to June 1 (Skips May 31).  My hypothesis was that I had a month range error [1-12] instead of [0-11] causing the clock to think its the wrong month and thus the wrong number of days in each month. After testing all of my own libraries, I determined there were no problems.  I then shifted focus to the rtc and calendar datatype, where I discovered the following:

On page 611 of SLAU208P (MSP430F5659 Userguide) the register RTCMON indicates the month range is [1-12]. On page 401 of the mspware driver library users guide (DOCNUM-2.91.03.00) the calendar datatype specifies a month range from [0-11]. Finally, within driverlib/MSP430F5xx_6xx/rtc_b.c, the functions RTC_B_initCalendar() and RTC_B_getCalendarTime() don't account for the month range conversion (See the attached code  and documentation snippets).

It seems like there should be a month translation in the rtc_b functions. Is there merit to my findings, or am I missing something?

void RTC_B_initCalendar(uint16_t baseAddress,
                        Calendar *CalendarTime,
                        uint16_t formatSelect)
{
    HWREG8(baseAddress + OFS_RTCCTL01_H) |= RTCHOLD_H;

    HWREG16(baseAddress + OFS_RTCCTL01) &= ~(RTCBCD);
    HWREG16(baseAddress + OFS_RTCCTL01) |= formatSelect;

    HWREG8(baseAddress + OFS_RTCTIM0_L) = CalendarTime->Seconds;
    HWREG8(baseAddress + OFS_RTCTIM0_H) = CalendarTime->Minutes;
    HWREG8(baseAddress + OFS_RTCTIM1_L) = CalendarTime->Hours;
    HWREG8(baseAddress + OFS_RTCTIM1_H) = CalendarTime->DayOfWeek;
    HWREG8(baseAddress + OFS_RTCDATE_L) = CalendarTime->DayOfMonth;
    HWREG8(baseAddress + OFS_RTCDATE_H) = CalendarTime->Month;
    HWREG16(baseAddress + OFS_RTCYEAR) = CalendarTime->Year;
}

Calendar RTC_B_getCalendarTime(uint16_t baseAddress)
{
    Calendar tempCal;

    while(!(HWREG16(baseAddress + OFS_RTCCTL01) & RTCRDY))
    {
        ;
    }

    tempCal.Seconds = HWREG8(baseAddress + OFS_RTCTIM0_L);
    tempCal.Minutes = HWREG8(baseAddress + OFS_RTCTIM0_H);
    tempCal.Hours = HWREG8(baseAddress + OFS_RTCTIM1_L);
    tempCal.DayOfWeek = HWREG8(baseAddress + OFS_RTCTIM1_H);
    tempCal.DayOfMonth = HWREG8(baseAddress + OFS_RTCDATE_L);
    tempCal.Month = HWREG8(baseAddress + OFS_RTCDATE_H);
    tempCal.Year = HWREG16(baseAddress + OFS_RTCYEAR);

    return (tempCal);
}

MSP432P401R: Reading MSP432 core registers in C

$
0
0

Part Number:MSP432P401R

How do I access registers,  R0 to R12 & memory in C using IAR workbench...

I tried doing in-line assembly but it doesnt help.

It looks so easy for MSP430 using assembly,,,till practice so tough for MSP432 using C

MSP-GANG: FAILURE ANALYSIS

$
0
0

Part Number:MSP-GANG

CST STATES THIS ITEM SIMPLE WILL NOT TURN ON. NO APPARENT PHYSICAL DAMAGE.


OUR TECH TALKED TO CST TO CONFIRM ALL OTHER OPTIONS HAD BEEN ATTEMPTED
TO VERIFY IT WASNT WORKING.

PLEASE ADVISE ON HOW MOUSER ELECTRONICS CAN SEND THIS TO TI FOR FAILURE ANALYSIS.

MSP430F5528: SPI communication with an XBEE

$
0
0

Part Number:MSP430F5528

Hi everyone,
In my project, I want to read the flow data using the TDC1000-TDC7200EVM and send these data to an Digi's XBEE PRO S2C, exactly the same as the following thread:
https://e2e.ti.com/support/sensor/ultrasonic/f/991/t/660329?TDC1000-TDC7200EVM-Send-output-from-TDC1000-TDC7200EVM-using-RF-Modules-without-the-use-of-GUI-and-connection-between-the-board-and-a-PC

I know that it's possible using the SPI bus coming out from the MSP430, but I have some questions about it:

1) The XBEE module is powered with 3.3V, so the SPI also requires 3.3V signals. The SPI bus from MSP430F5528 would be directly compatible with the XBEE's SPI? Or it would be necessary to convert the signals levels (using a voltage regulator for example)?
2) Is there any code for MSP430F5528's SPI communication avaible? I'm new to the MSP430 and I don't know where to start.
3) To write and compile the code should I use the Code Composer Studio? And to program it in the MSP430F5528 should I use the BSL loader? Is there anything else needed to accomplish what I want?
4) In the thread I mentioned above, it says that I can use any of the unused GPIO on the MSP430 as CS, but how do I configure any of these GPIOs to work as a CS?

I'm a begginer in this area, so I would be very grateful if someone helped me in these initial steps.

Best Regards,
Lucas

MSP430F5529: CAN bus protocol using MSP430F5529

$
0
0

Part Number:MSP430F5529

I want to implement CAN protocol using MCP2515 module by Microchip on TI' MCU i.e. MSP430F5529 but unable to find a library for the same.

P.S. I'm using energia IDE for programming the MCU.

Any help would be really appreciated.


BOOSTXL-AUDIO: CODING HELP

$
0
0

Part Number:BOOSTXL-AUDIO

Hello, I'm using MSP- EXP430FR5994 and BOOSTXL-AUDIO. I want to play a audio voice output everytime a switch is pressed like "temperature 40 degrees". The output of the audio has three sources: (1)DAC on the BOOSXL-Audio;(2)DAC on the Launchpad(MSP430FR5994 don't have DAC);(3)PWM from the Launchpad.  I referred TIDM-VOICEBANDAUDIO  for programming and I want to use  Audio Loading GUI. so I should modify the playback code to make it work on MSP- EXP430FR5994 and BOOSTXL-AUDIO or by changing the target configuration will make the code work? 

TINA/Spice/TIDM-SMARTMETERBOARD3: TI Presents Smart Metering

$
0
0

Part Number:TIDM-SMARTMETERBOARD3

Tool/software:TINA-TI or Spice Models

Hi I am a researcher at DOE national lab. Is there any way to request or purchase a Smart Electrical Meter Development Platform for R&D?

MSP430F5326: ADC collection result error

$
0
0

Part Number:MSP430F5326

    The ADC Channel 5(pin 6.5) is always connected to the GND,ADC mode is Single-channel single-conversion,Gathering many times it will occur a nonzero,the code showing as following.Please help to  confirm.
thanks

#include "msp430f5326.h"

typedef unsigned char u8;
unsigned int adsample[200];

void main(void)
{
	WDTCTL = WDTPW + WDTHOLD;                 // Stop WDT
	
	REFCTL0 &= ~REFMSTR;                      // Reset REFMSTR to hand over control to 
	// ADC12_A ref control registers
	ADC12CTL0 = ADC12ON+ADC12SHT13+ADC12SHT03+ADC12REFON+ADC12REF2_5V;
	// Turn on ADC12, Sampling time
	// On Reference Generator and set to
	// 2.5V
	ADC12CTL1 = ADC12SHP + ADC12CSTARTADD_5;    // Use sampling timer
	ADC12MCTL5 = ADC12SREF_1+ ADC12INCH_5;      // Vr+=Vref+ and Vr-=AVss
	
	for (int i=0; i<0x30; i++);                  // Delay for reference start-up
	
	ADC12CTL0 |= ADC12ENC;                     // Enable conversions
	ADC12IE = BIT5;
	P6SEL |= BIT5;                            // P6.5ADC option select
	P1DIR |= BIT1;                            // P1.0 output
	
	while (1)
	{
		ADC12CTL0 |= ADC12SC;                   // Start sampling/conversion
		
		__bis_SR_register(LPM0_bits + GIE);     // LPM0, ADC12_ISR will force exit
		__no_operation();                       // For debugger
	}
}

#pragma vector = ADC12_VECTOR
__interrupt void ADC12_ISR(void)
{
	static u8 samplecount = 0;
	switch(__even_in_range(ADC12IV,34))
	{
	case  0: break;                           // Vector  0:  No interrupt
	case  2: break;                           // Vector  2:  ADC overflow
	case  4: break;                           // Vector  4:  ADC timing overflow
	case  6: break;                           // Vector  6:  ADC12IFG0
	case  8: break;                           // Vector  8:  ADC12IFG1
	case 10: break;                           // Vector 10:  ADC12IFG2
	case 12: break;                           // Vector 12:  ADC12IFG3
	case 14: break;                           // Vector 14:  ADC12IFG4
	case 16: 																	// Vector 16:  ADC12IFG5
		
		adsample[samplecount++] = ADC12MEM5;
		if(samplecount>= 160)
			samplecount = 0;
		
		if (ADC12MEM5 >= 10)                 // ADC12MEM >=10
			P1OUT |= BIT0; // Program will stop here
		else
			P1OUT &= ~BIT0;                       // P1.0 = 0
		
		__bic_SR_register_on_exit(LPM0_bits);   // Exit active CPU
		
		break;                           
	case 18: break;                           // Vector 18:  ADC12IFG6
	case 20: break;                           // Vector 20:  ADC12IFG7
	case 22: break;                           // Vector 22:  ADC12IFG8
	case 24: break;                           // Vector 24:  ADC12IFG9
	case 26: break;                           // Vector 26:  ADC12IFG10
	case 28: break;                           // Vector 28:  ADC12IFG11
	case 30: break;                           // Vector 30:  ADC12IFG12
	case 32: break;                           // Vector 32:  ADC12IFG13
	case 34: break;                           // Vector 34:  ADC12IFG14
	default: break; 
	}
}

CCS/MSP430F5659: debug error: no source available for..

$
0
0

Part Number:MSP430F5659

Tool/software: Code Composer Studio

Hi TI Expert,

I use MSP430F5659. CCS v. 6.0.0.00190.
The project is from my colleague but he is away.
project can pass build and it can generate out file.
when launch debugger, it shows
 "No source available for "0xfffffffe".

There is no problem if I create a new project.
the problem is only in the working project.But because this is company project, I can't share it to public to you.

How to solve it?


Jun

MSP430FR5849: Internal Temperature sensor precision

$
0
0

Part Number:MSP430FR5849

Hi Sir,

Customer are using internal temperature sensor. They used to use F2132 with stable 1~2C variation for every chip. But when porting to FR5849, they found the temperature will be variant 2~5C with different chip at same condition.

They are not sure if it is normal or not. Or any software tips for this?

Best regards

Jacky Xu

MSP430F6779A: MSP430F6779A Boot loader Design Help

$
0
0

Part Number:MSP430F6779A

Hi,

I am working with a Smart Energy Meter design with MSP430F6779A micro controller. As per the smart meter specification ,it's mandatory to have a remote firmware update(OTA) provision.  From my understanding, as we are using MSPF6XX series , BSL can be modified for our requirement. For our requirement the new image will be downloaded to a SPI flash , after successful download the application has to invoke boot loader and load the new image from SPI flash.

1) Can i Implement this with a custom BSL?

2) Do you have any example addressing this requirement?

Please help.

Thanks and Regards

Sreekanth MK

ti DLMS COSEM library

$
0
0

I have connected through the DLMS Director of medium authentication with V4.6 cosem library code , can we get real time voltage current power from that library or we have to add any other code to that librar.

as i m now getting the dummy data like 230v and 10A.

and also i want to get real time and date is that possible with that code or else i have to change any code and where 

can u please help me out.

Thanks


CCS/MSP430FR5969: adxl345 accelerometer

$
0
0

Part Number:MSP430FR5969

Tool/software: Code Composer Studio

 Hello All,

        I am working with adxl345  accelerometer . I  have doubts regarding this concept

1. Two interrupts in this adxl345 is same or not.If it is different in what way it differs.

2. For what purpose interrupts are used here.

Regards,

sandhya 

CCS/MSP430FR2033: MSP430FR2033 ADC Jitter

$
0
0

Part Number:MSP430FR2033

Tool/software: Code Composer Studio

Dear Sirs,

I am using MSP430FR2033 to acquire ADC value, however I found that my ADC value is "jumping" around 40 step, which is about 100mV.

My ADC input is a power supplier and I also check my VDD is no jitter by oscilloscope. According to my experience on other MCU, the ADC value should be very stable.

When I test this issue, I didn't switch to different channel and get data every 10ms, but still see this issue.

Here is my configuration:

ADCCTL0   &= ~ADCENC;                       
ADCCTL0   |= ADCSHT_2 | ADCON;              
ADCCTL1   |= ADCSSEL_3 | ADCSHP;            
ADCCTL2   |= ADCRES;                        

ADCIE     |= ADCIE0;                        

PMMCTL0_H  = PMMPW_H;                       
PMMCTL2   |= INTREFEN;                      
while(!(PMMCTL2 & REFGENRDY));              

Any suggestions ?

CC430F5137: Higher current at startup

$
0
0

Part Number:CC430F5137

We use in our product a CC430F5137 MCU, and we see the following problem. Some MCU’s draw around 2 mA more than others at startup. Our product is battery power so this extra current is a problem. When a MCU whit this problem is powered up shortly after the first time the current which is drawn is normal again. If we leave the product with no power for an hour or so the problem is back. Has anyone a idea what the cause of this extra current is caused by?

CCS/MSP432E401Y: MSP432E401Y

$
0
0

Part Number:MSP432E401Y

Tool/software: Code Composer Studio

Hello,

I am trying to figure out how to use multiple sdk plugins to accomplish a task on the MSP432E401Y.  I have attached a cc1350 launchpad as a coprocessor and need to send data received via sub-GHz to the cloud.  I was thinking of using the collector sdk plugin offered in the TI Resource Explorer and use a connectivity program included in the sdk as well to perform both tasks.  I am confused as to how to interface two sdk programs in CCS cloud.  Any help or guidance is greatly appreciated.

Thank you

MSP430F6726: MSP430F6726 Consumption current increase

$
0
0

Part Number:MSP430F6726

Hi community member,

There was a phenomenon that the consumption current of MSP430F6726 was too high on my customer's board.

Looking at the thermography of the board, only the microcomputer had a fever.

So I guess that we are consuming electricity with the microcomputer.

However, I am in trouble because I do not know the cause.

Could you give me some advice?

◆ Phenomenon Environment

Phenomenon board: customer board
Consumption current: 13 mA to 50 mA max
Theoretical consumption current of board: 15uA

◆ Unused pin processing

All unused pins are set to Low output setting (PxDIR.y = 1, PxOUT.y = 0)

◆ Symptom situation

The microcomputer's operation was normal even on boards with high current consumption.
If reset input is made to the reset terminal, consumption current may become about 15 uA.

Consumption current is high right after power on.
Especially this phenomenon is easy to occur if it is a new battery.

◆ Circuit diagram

The circuit diagram around the power supply is as follows:

Batteries are connected directly to microcontroller, peripheral circuit Vcc.
battery:Cell Type CR17335E-R

◆ Thermography image

Best regards.

Cruijff

Viewing all 22224 articles
Browse latest View live