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

MSP-FET: Best way to connect VCC_TARGET and VCC_TOOL pins?

$
0
0

Part Number: MSP-FET

Hello, guys!

I am designing a custom board where we will use the MSP-FET to develop and debug a new firmware project and I have the doubt about the power pins, vcc_tool and vcc_target?

Which is the best way to connect them? It is probably that sometimes the msp430 would be powered by a battery and another time with the mps-fet vcc_tool pin during the developing. I don't know if the msp-fet internally detects the external voltage so it cuts its own vout, or if i need to use a diode to "separate" the external vcc from vcc_tool.

What do you recommend us?

Many thanks in advance and best regards!

Luis


CCS/MSP432E401Y: AIN16-19 (PK0-3) read value error

$
0
0

Part Number: MSP432E401Y

Tool/software: Code Composer Studio

Hi,

I'm considering ADC of MSP432E401Y.

I use CCS9.2, Smplelink3.30.00.22 and MSP-EXP432E401Y.

I'm correcting a sample program and am reading the adc value of AIN17 (PK1).

ADCbuf was taken up here before, so it was confirmed to be corrected.

However, I select AIN17 (PK1) in Adcbufcontinuous sample, it can't read the true value.

I used below for a sample of ADCbuf.
\ti\simplelink_msp432e4_sdk_3_30_00_22\examples\rtos\MSP_EXP432E401Y\drivers\adcbufcontinuous\tirtos\ccs

And I used below for a sample of ADC.
\ti\simplelink_msp432e4_sdk_3_30_00_22\examples\rtos\MSP_EXP432E401Y\drivers\adcsinglechannel\tirtos\ccs

Advice, please.

Thanks

EVM430-F6736:

$
0
0

Part Number: EVM430-F6736

Hello , 

I have a question regarding single phase energy meter (EVM) . 

 Is this meter can calculate the THD (total harmonic distortion.  And  is this meter can eliminate the  harmomics that is calculated . if not how can we add an additonal system to eliminate that harmonics espacially 3rd harmonic . 

MSP430F5438A: BSL entry via UART

$
0
0

Part Number: MSP430F5438A

Hi,

I read this slau319c document relating to the BSL. However, I am still unsure whether special hardware configuration is needed to ensure BSL entry ? If you have a host connection hanging off a UART connection, can I enter the BSL purely using commands sent across the TX and RX lines or do I need to manipulate the JTAG pins as described in slau319c to ensure BSL entry ?

Regards,

Ian

MSP432P401R: MSP432P401R

$
0
0

Part Number: MSP432P401R

I bought the board for my embedded system lab, i don't know what is wrong with that, board is not acting according to the program written. Have used the same program on different board (friend's board) and that worked. I am using the keil software for this board.

CCS/MSP430FR6047: BOM reduction: 32.768 kHz and 8MHz crystals

$
0
0

Part Number: MSP430FR6047

Tool/software: Code Composer Studio

Hello!

I'm playing with the EVM 430-FR6047 and I'm wondering if it is possible to reduce the BOM getting rid of the 32.768 kHz and 8MHz crystals.

1 - 32.768 kHz crystal

Is it possible to use the internal VLO oscillator or some other timed pin to feed the low frequency timer?  According to the datasheet the VLO provides a frequency around 10 kHz. I've had a look to the library but it seems that it is designed around that specific frequency (32768). If I try to feed it using the LVO with:

- CS_initClockSignal(CS_ACLK,CS_VLOCLK_SELECT, CS_CLOCK_DIVIDER_1);                 in  hal_system_ClockInit(void)   hal_system.c

- USS_LFXT_FREQ_IN_HZ     10000                 in USS_userConfig.h

I can manage to compile and run the code but the design center app keeps showing the following errors:

22 - The output frequency of the HSPLL is invalid

28 - invalid USS crystal setting time.

 

Not sure what kind of implications the low frequency oscillator has on the measurement and I was wondering if it only clocks the operations when the meter is not performing any acquisition to reduce the power consumption. That said, is it possible to easily configure the library in order to use the LVO instead of the external 32.768 crystal?

2 - 8MHz crystal

I've read somewhere that it is possible to use the USSXT_BOUT to drive the Clock system (CS) through HFXIN. Once the output on USSXT_BOUT is enabled and phisically connected to HFXIN, is it possible to leave all the other firmware settings of the library unaltered?  I'm also considering to replace the ceramic resonator with a 8MHz crystal. Does it improve the accuracy of the meter?

3 - Library implementation

Is there any other implementation of the library which includes only the fundamental setting of the USS module?

Thanks,

Dario

MSP430F5529: MSP430F5520 PWM with Timer B

$
0
0

Part Number: MSP430F5529

Need some help with Timer B for PWM on MSP-EXP430F5529 LaunchPad.  I've setup PWM with Timer A, with output to P1.2 with no issues.  When I try to set the same thing up for Timer B P3.5 I don't get any PWM signal.  Below are the codes for both the Timer A and Timer B.  the data sheet for the MSP430F5529 shows the CCR5 for the time block.  I'm sure I'm missing something but not sure what.  Any help/suggestions would be appreciated.

#include <msp430f5529.h>

int main(void) {
    WDTCTL = WDTPW + WDTHOLD;           //Disable the Watchdog timer for our convenience.
    P1DIR |= BIT2;                      //Set pin 1.2 to the output direction.
    P1SEL |= BIT2;                      //Select pin 1.2 as our PWM output.
    TA0CCR0 = 7000;                     //Set the period in the Timer A0 Capture/Compare 0 register to 7000 us.
    TA0CCTL1 = OUTMOD_7;                //TACCR1 reset/set mode
    TA0CCR1 = 350;                      //The period in microseconds that the power is ON. It translates to a 5% duty cycle.
    TA0CTL = TASSEL_2 + MC_1;           //TASSEL_2 selects SMCLK as the clock source, and MC_1 tells it to count up to the value in TA0CCR0.
//    __bis_SR_register(LPM0_bits);   //Switch to low power mode 0.
}
#include <msp430f5529.h>

int main(void) {
    WDTCTL = WDTPW + WDTHOLD;           //Disable the Watchdog timer for our convenience.
    P3DIR |= BIT5;                      //Set pin 3.5 to the output direction.
    P3SEL |= BIT5;                      //Select pin 3.5 as our PWM output.
    TB0CCR0 = 7000;                     //Set the period in the Timer B0 Capture/Compare 0 register to 7000 us.
    TB0CCTL1 = OUTMOD_7;                //TBCCR1 reset/set mode
    TB0CCR5 = 350;                      //The period in microseconds that the power is ON. It translates to a 5% duty cycle.
    TB0CTL = TBSSEL_2 + MC_1;           //TBSSEL_2 selects SMCLK as the clock source, and MC_1 tells it to count up to the value in TB0CCR0.
//    __bis_SR_register(LPM0_bits);   //Switch to low power mode 0.
}

CCS/MSP432E401Y: Rebuild mbedtls to use it with CCS

$
0
0

Part Number: MSP432E401Y

Tool/software: Code Composer Studio

Hi,

I'm using simplelink_msp432e4_sdk_3_20_00_10 and I'm trying to make changes in mbedtls config.h file.

I removed some #defines but CCS is still executing the piece of code under ifdefine. 

I guess i'll have to rebuild mbedtls with changes in config.h

Can anyone tell me how to do it? So that I get a correct ti/lib/ccs/m4f/mbedtls.a linlker file. Or is there any other way to make changes in config.h and execute it properly.

Regards,

Deepak


MSP430F449: How to check compatibility of MCU with EVM and ADC

$
0
0

Part Number: MSP430F449

Hi,

I was wondering how I check the compatibility between ADC/EVM configurations and MCU made by TI. I am planning on using a Pt100 RTD with a ADS1247 and ADS1247EVM and I was wondering what TI MCU to use. In the guide it says 

"The digital control signals can be applied directly to J7 (top or bottom side). The modular ADS1247EVM can also be connected directly to a DSP or microcontroller interface board, such as the 5-6K Interface or HPA-MCU Interface boards available from Texas Instruments, or the MMB3 if purchased as part of the ADS1247EVM-PDK. For a list of compatible interface and/or accessory boards for the EVM or the ADS1247, see the relevant product folder on the TI web site."

Which the 5-6k is another EVM and the HPA-MCU is no longer in use. I am fairly new to this so any help would be appreciated. 

What I am trying to accomplish is using the RTD 4 wire setup with 1247 ADC and EVM, I want to collect the data using a MCU on site and then use the MCU to send the data via internet to a server so the need of connecting a computer and using software is not required in order to analyze/look at the data being gathered.

I saw that someone had been using this MCU earlier with their setup but I wanted to make sure this is compatible with the ADC and EVM mentioned above.

Thanks, Sid

Compiler/MSP-EXP430FR6989: MSP430 TI CGT 18.12.3.LTS does not include unistd.h

MSP430FR5969: ROM checksum

$
0
0

Part Number: MSP430FR5969

For my application, I need to compute a CRC32 of the ROM sections of my code during build time, then on startup have the MSP430 make the same calculation. The MSP430 will then report the computed checksum and an external control system will compare them.

The related question offers some information but doesn't address a PC side utility or fully explain how to checksum an entire memory section.

From what I understand, checksumming ROM is a very common practice with embedded systems, but I had difficulty finding good information relevant to the MSP430. I'd appreciate any insights.

CCS/MSP430FR5992: Code running speed vs MSP430FR5969

$
0
0

Part Number: MSP430FR5992

Tool/software: Code Composer Studio

Dear team

My customer is using MSP320FR5992. Before this chip,they use MSP430FR5969.

They found the Code running speed of MSP320FR5992 is lower than MSP430FR5969 when use the same code. 

The following is the code

#include "io430.h"
typedef unsigned char uchar;
typedef signed char schar;
typedef unsigned int uint;
typedef signed int sint;
typedef unsigned long int ulint;
typedef signed long int slint;
#define PI 3.14515926

void delay(uint i)
{
while(i--);
}


void clk_init(void)
{
// LED1_CLOSE;
FRCTL0=0XA500+NACCESS0+NACCESS1+NACCESS2;
//FRCTL0=NACCESS0;
PJDIR=0x00;
PJOUT=0;
PJREN=0xFF;
PJSEL0=PJSEL0_6+PJSEL0_7;
PJDIR|=(BIT5+BIT7);
CSCTL0=0xA500;//password
CSCTL1=DCOFSEL0+DCOFSEL2+DCORSEL;
CSCTL2=0;
CSCTL2=SELS0+SELS2+SELM0+SELM1;
CSCTL3=0;
CSCTL4=VLOOFF+LFXTDRIVE0+LFXTDRIVE1+HFXTDRIVE0+HFXTDRIVE1+HFFREQ1+LFXTOFF;//关闭VLO


CSCTL5=0;
CSCTL6=ACLKREQEN+MCLKREQEN+SMCLKREQEN+MODCLKREQEN;//
// LED1_OPEN;
do
{
PM5CTL0 &= ~LOCKLPM5;
CSCTL0=0xA500;//password
CSCTL0_H=0xa5;
CSCTL5 &= ~(LFXTOFFG+HFXTOFFG);
SFRIFG1&=~OFIFG;
delay(0x8f);
}
while(CSCTL5&HFXTOFFG);//SFRIFG1&OFIFG

}




void timerA0_init(void)
{

TA0CTL=TASSEL1+MC0+ID1+ID0;//+TAIE; 12M 12/8=1.5
TA0CCR0=1500;//32
__bis_SR_register(GIE);

TA0R=1499;TA0CCTL0=CCIE;
}

uint count=0;
#pragma vector = TIMER0_A0_VECTOR
__interrupt void TimeA0(void)
{
count++;

}





uint ii,jj;
float f1[100],f2[100],f3[100];



int main( void )
{
// Stop watchdog timer to prevent time out reset
WDTCTL = WDTPW + WDTHOLD;

clk_init();
delay(65530);
timerA0_init();

for(ii=0;ii<100;ii++)
{
f1[ii]=PI;
f2[ii]=2*PI;
f3[ii]=f1[ii]*f2[ii];
}
do
{
count=0;
for(jj=0;jj<100;jj++)
{
for(ii=0;ii<100;ii++)
{
f3[ii]=f1[ii]*f2[ii];
}
}

}
while(1);

return 0;

}

CCS/MSP430F5529: 4 WIRE SPI COMMUNICATIONS WITH ACS71020 FOR MEASURING VOLTAGES AND CURRENT

$
0
0

Part Number: MSP430F5529

Tool/software: Code Composer Studio

Dear sir,

This is Vikash chandra Raman from Comcon-Industries. I am doing a project related to measure the current as well as voltages. For measuring the current and voltages i am using a MSP430F5529 controller interfacing with spi communications( 4 wire communications).

I have to send 32 bit data and also recieve the 32 bit data on SOMI(RX) pin.

I have send the data of 32 bit along with address , but when i recieve the data it only recieve 8 bit data on somi pin. I request you kindly check my code or give me some idea how to recieve 32 bit data on somi pins.

For setup SPI communication i am using the following registers as well as whole codes

#include <msp430.h>

short int arry[32]={0};
short int *value=arry;
unsigned int i=0,size=0,Flag=0;

void PinSetup()
{
/*CS1*/
P4DIR|=BIT0;
/*CS2*/
P3DIR|=BIT7;
P3OUT|=BIT7;
/*CS3*/
P3DIR|=BIT6;
P3OUT|=BIT6;

}
void init_UCB1(void)
{
P4SEL|=BIT1+BIT2+BIT3;
UCB1CTL1 |= UCSWRST;
UCB1CTL0 = UCCKPH + UCCKPL + UCMST + UCMODE_1 + UCSYNC; //UCB0CTL0 |= UCMST+UCSYNC+UCCKPL+UCMSB;
UCB1CTL1 = UCSSEL_2;
//UCB0BR0 = 255;
UCB1CTL1 &=~UCSWRST;
UCB1IE |= UCRXIE;
}
void send( int data,int i)
{
int l;
__disable_interrupt();
l=data;
l=l>>8;
while(i){
while(!( UCB1IFG & UCTXIFG));
UCB1TXBUF = l;
l=data;
i--;
}
while(UCB1STAT & UCBUSY);
__enable_interrupt();


}
void send_8bit( int data,int i)
{
__disable_interrupt();
while(i){
while(!( UCB1IFG & UCTXIFG));
UCB1TXBUF = data;
i--;
}
while(UCB1STAT & UCBUSY);
__enable_interrupt();
}


void main(void)
{

WDTCTL = WDTPW + WDTHOLD;
PinSetup();
init_UCB1();

/*Custmer access code (0x4F70656E) WITH ADDRESS 0x2F*/
P4OUT&=~BIT0;
/*READ_1 && WRITE_0*/
send_8bit(0x2F,1);

send(0x6E65,2);
send(0x704F,2);
// P4OUT|=BIT0;

while(1){
// __delay_cycles(1234);
P4OUT&=~BIT0;
send_8bit(0xA0,1);//? READ OR WRITE??
send(0x0000,2);
send(0x0000,2);
// __delay_cycles(4321);
// P4OUT|=BIT0;
value=arry;

}

}

#pragma vector=USCI_B1_VECTOR
__interrupt void USCI_B1_ISR(void)
{
switch(__even_in_range(UCB1IV,4))
{
case 0:break; // Vector 0 - no interrupt
case 2: // Vector 2 - RXIFG
// for(i=0;i<32;i++)
// {
// if(i==32){
// Flag=1;
// UCB1IFG &=~ UCRXIFG;
// break;}

while (!(UCB1IFG & UCTXIFG));
*value = UCB1RXBUF;
value++;
// }
// __bis_SR_register(GIE);
break;

case 4:break; // Vector 4 - TXIFG
default: break;
}
}

Kindly suggest me a answer so that i am able to read 32 bit data on SOMI pins.

waiting for your positive response

Vikash chandra raman

Comcon industries

New -Delhi

TIDM-BPM: adding bluetooth or wifi interface to this design

$
0
0

Part Number: TIDM-BPM

for adding bluetooth and wifi interface is there any inbuilt library function available. can you provide code modification for that if required.

MSP-GANG430: ERROR 396:WARNING:Code from file is out of range in selected MCU

$
0
0

Part Number: MSP-GANG430

Hi All:

when i have programmed *.txt file into msp430afe253 by GANG430,got this error,dunno why and how to solved.Help plz?thx..

1)msp430-txt format is selected when code is linked.

2)when i open GANG430 sofrware,and select *.txt,all others is ok(connected:com7,related settting.) except ERROR 396.

3)target is connected to GANG430 as following:

target-----------------|sbw/target|-----gang430---------------|com7|---------------PC

4)I can debug code by MSP-FET430UIF by follwing connection.

target---------------sbw/target|----------msp-fet430uif----------------|com7|-------pc.

Any suggestion?

RGDS.

Jonny


EVM430-FR6047: EVM430-FR6047:

$
0
0

Part Number: EVM430-FR6047

Hi,

 I have purchased EVM430-FR6047 kit and able to check its performance with PC based USS GUI tool.

I have downloaded "MSP430FR6047EVM_USS_Water_Demo" project and able to compile the project using CCS 8.2.0 

Please guide me the steps how to program the EVM and debug the code.

I have also downloaded Uniflash 5.1.0 , please send me the steps how to connect EVM to this utility and program the code with standalone utility.

Thanks and Regards,

Suhas

MSP430FR5994: Booting inconsistency, provided Same RC value on RESET line as per datasheet

$
0
0

Part Number: MSP430FR5994

Hello All,

We are using MSP430FR5994IPNR on our one of the product & observed board Booting inconsistency (two to four times failing out of 10 times boot). where the GPIO didnt behave as expected, but other times its working fine. 

provided Same RC value on RESET line ( 470 uSec Same as Datasheet, minimum 2 uSec ). But as per Launchpad its mentioned as 47uSec. 

I'm hereby enclosing RESET schematic screen shot for ur ref, 

Any of you this community faced issue like this.

MSP432P4011: MSP-FET load firmware using SWD interface

$
0
0

Part Number: MSP432P4011

Hello everyone,

I am new to TI products and am have difficulty navigating through all the possible MSP debuggers/programmers. Can you please help me on this?

I would like to program/load my firmware onto the MSP432P4011 microcontroller. I am looking into the MSP-FET programmer using the SWD interface. Before I buy the MSP-FET Programmer, I would like a confirmation from the TI experts that I am getting the right MSP-FET Programmer to load my firmware to the microcontroller using the SWD interface.

What make me post this question is, in the documentation (MSP Debugger User Guide SLAU647M-July 2015 Revised February 2019), although SWD is mentioned, I am not able to see the SWDIO, SWCLK pins listed in the document. For example, in section 5.6.6.3, Table 9, JTAG and SWD Interface Specification, I do not find the SWDIO or SWCLK pins listed.

Also what is 'SimpleLink'?

Thanks in advance for your answer.

yours sincerely,

Huck Lim

MSP-GANG: unlock the MSP432 MCU by MSP-GANG

$
0
0

Part Number: MSP-GANG

I have  a MSP-GANG Programmer  and I want use this device to unlock a MSP432 MCU which was locked by set JTAG_SWD_LOCK_SECEN.

I know use MSP-GANG window software can unlock it by click "Clear Locked Device" button .

But in this way , I need install the windows software. 

I want just use the MSP-GANG device like the Standalone mode to unlock the MCU.

Is it possible that I make an image just do unlock the MCU process and download it into MSP-GANG?

Or any other ways to unlock the MCU just use the MSP-GANG device . 

Thanks!

MSP430FR2633: Implementing Numeric keypad using CapTIvate Technology

$
0
0

Part Number: MSP430FR2633

Hi,

I have designed keypad PCB for MSP430FR2633 microcontroller and tried to implement the Cpativate phone demo code after modifying it.

But am not able to detect if the key is pressed or not.

Am not using haptic driver features, I simply just want to implement capacitive touch keys.

Please suggest me the solution.

I have attached code which I installed in MSP430FR2633 microcontroller.(Please visit the site to view this file)

Viewing all 21975 articles
Browse latest View live


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