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

CCS/MSP430F6779: Interfacing EMDC with another MCU over UART

$
0
0

Part Number:MSP430F6779

Tool/software: Code Composer Studio

I want to use the EMDC GUI to configure the MSP430F6779 and then interface the MSP430F6779 with PIC Microcontroller.

We are trying to achieve the following.

Design energy measurement solution using ENERGY Measurement Design Center (EMDC) GUI.
Generate code and deploy it as is (no code changes at all) using JTAG into EVM430-F6779.
Connect PIC Microcontroller ( lets call it Host) via UART.
Read meteorology values from EVM430-F6779 to host MCU. Is it possible ?

We would like to change the default baud rate from 250K to 115200 or 9600.

if we change code that is generated by EMDC to change baud rate. Would the EMDC software work with 115200 baud rate. reason we what to do that is because the device we would like to use does not support 250K baud rate.


MSP430FR6043: Is there any replacement for TMS3723B which is said to be A special flowmeter IC?

$
0
0

Part Number:MSP430FR6043

Is there any replacement for TMS3723B which is said to be A special  flowmeter IC?

We are looking for an IC used as a flowmeter with nonmagnetic measuring method and we searched on the internet that TI has TMS3723B which can do such things.

However, we did not find TMS3723B on TI's site. Is there any scheme Ti propsed to use for flowmeter in nonmagnetic measuring way?

Thank you!

MSP430F6777: About the signal width input to the reset pin.

$
0
0

Part Number:MSP430F6777

Hello,

I have a question about the signal width input to the reset terminal.


The data sheet defines the minimum pulse width for reset (tRESET).
If this pulse width is shorter than specified, what kind of operation will be?
I thought it would not be recognized as a reset, but is that okay?

Regards,
Da

MSP430XXX as USB HOST ?

$
0
0

Dear

      Can I want to find one MSP430 chip that it can be as USB host and access an 32GB USB flash drive with file type.

      THANKS

MSP-GANG: MSP GANG ERROR #23

$
0
0

Part Number:MSP-GANG

Hi,

I have recently set up and connected the msp gang. And having issues with it connecting via error #23.

Our prog. file is hex.

No external power source.

I have done the following from reading up on other forums, is it worth investigating more or returning back for a replacement?

1) Various voltage/reset/JTAG speed adjustments.

2) connected the cap and resistor across the Vcc and RST.

3) Shortened cable length.

Please advise.

MSP430FR6043: gas flow measurements

$
0
0

Part Number:MSP430FR6043

GAS flow measurements are performed on a  pipe with 200-kHz, 400-kHz, and 500-kHz transducers available from Jiakang, Hurricane, CeramTec, and Audiowell.

How do different frequencies affect measurements?Which frequency has the best accuracy theoretically?

And where to download the 3D printable pipe design?

CCS/MSP430F5510: ReplicatorXv2 JTAG ID ISSUE

$
0
0

Part Number:MSP430F5510

Tool/software: Code Composer Studio

Hello .i am working on Replicator Project Xv2 slau320.I have set all ports and Clock according me my Requirements.But when i try to debug the code ,My code gives error on GET JTAG ID .Any one have experience the same problem .Please help me with this .Thank you

CCS/EVM430-F6779: MSP430-F6779 Baudrate setting

$
0
0

Part Number:EVM430-F6779

Tool/software: Code Composer Studio

Hello,


We aim to deploy the code as it generated by EMDC on to MSP430F6779 EVM.

We would like to change the default baud rate from 250K to 115200.

if we change code that is generated by EMDC to change baud rate. Would the EMDC software work with 115200 baud rate. reason we what to do that is because the device we would like to use does not support 250K baud rate.

How to change the default baud rate generated by EMDC? for that which file or register i have to modify

I am very new to TI controllers . So pls provide me detailed explanation


CCS/MSP430I2041: MSP430I2041 is not Programming with isolator ISO1540

$
0
0

Part Number:MSP430I2041

Tool/software: Code Composer Studio

I am trying to program MSP430I2041 with isolator ISO1540 connected between MSP430 ic and  Launchpad MSP-EXP430F5529LP. IC is programming without isolation. But with isolation it is not programming. Below I am attaching the schematic of the ISO1540 set up (The only difference is instead of ISO1541 i am using ISO1540).

 

Please suggest me a solution.

Thanks and Regards,

Deepak

MSP430FR2633: Hysteresys in CapTIvate

$
0
0

Part Number:MSP430FR2633

Hello.

I would like to configure independently positive touch threshold(touch-on) and negative touch threshold(touch-off).

Is it possible?

If yes, could you tell me the procedure?

Regards,

U-SK

MSP430F2011: We are worried about the influence of transmission rate or other interference after the UART line passes through the headset (the length of the headset is about 650mm), please help to evaluate:

$
0
0

Part Number:MSP430F2011

We have a headset, the basic situation is as follows:

1. There will be one MCU on the left and the right (both powered by 3.3v).

2. Communication between two MCU will use UART

3. The UART wire passes through the headset wire (as shown in the figure below and the use of the wire around the headset wire).

 

We are worried about the influence of transmission rate or other interference after the UART line passes through the headset (the length of the headset is about 650mm), please help to evaluate:

1. From your experience in using TI MCU, does it make any difference?If not, why not?

2. If there is any influence, do I need to add a driver BUFFER?If yes, could you please recommend a two-way bus buffer suitable for UART communication?

3. Does UART transmission line need to be protected by a separate shielding line?

MSP430F5529: ADC12 A4 doesn't work

$
0
0

Part Number:MSP430F5529

Hi,

I'm trying to do an ADC single-channel single-conversion of A4 (P6.4) on the MSP430F5529.

I used `MSP430F55xx_adc_05.c` from `slac300k MSP430F55xx_Code_Examples` which samples A0 (P6.0):

int main(void)
{
  WDTCTL = WDTPW+WDTHOLD;                   // Stop watchdog timer
  P6SEL |= 0x01;                            // Enable A/D channel A0
  ADC12CTL0 = ADC12ON+ADC12SHT0_2;          // Turn on ADC12, set sampling time
  ADC12CTL1 = ADC12SHP;                     // Use sampling timer
  ADC12MCTL0 = ADC12SREF_2;                 // Vr+ = VeREF+ (ext) and Vr-=AVss
  ADC12CTL0 |= ADC12ENC;                    // Enable conversions

  while (1)
  {
    ADC12CTL0 |= ADC12SC;                   // Start conversion-software trigger
    while (!(ADC12IFG & BIT0));
    __no_operation();                       // SET BREAKPOINT HERE
  }
}

I tried to run the example and saw that the everything is working and I'm reading 0 when it is connected to GND and 4096 when connected to VCC.

I changed it as follows in order to sample A4 (P6.4):
volatile unsigned int result;

void main() {
//    setup();

    WDTCTL = WDTPW+WDTHOLD;                   // Stop watchdog timer
    P6SEL |= 0x10;                            // Enable A/D channel A0
    ADC12CTL0 = ADC12ON+ADC12SHT0_2;          // Turn on ADC12, set sampling time
    ADC12CTL1 = ADC12SHP;                     // Use sampling timer
    ADC12MCTL0 = ADC12INCH_4 | ADC12SREF_2;                 // Vr+ = VeREF+ (ext) and Vr-=AVss
    ADC12CTL0 |= ADC12ENC;                    // Enable conversions

    while (1)
    {
    ADC12CTL0 |= ADC12SC;                   // Start conversion-software trigger
    while (!(ADC12IFG & BIT0));
    result = ADC12MEM0;
    __no_operation();                       // SET BREAKPOINT HERE
    }
}

However, it doesn't work...
When I read the value in result, I see that the value is 0 always.
Also, when I try and hookup the pin to 3.3V, the board resets...
It looks like I haven't configured the pin right, and that it is tied to GND (it will also explain the reset when hooking up to 3.3V), but I haven't found the mistake in the code...

I got the same behavior using the driverlib.
Also, I get this behavior also on an MSP430F5529 Launchpad and also on some other propriety MSP430F5529 board.



Thanks a lot!

MSP430G2553: MSP430 simple IR communication

$
0
0

Part Number:MSP430G2553

Hi everyone.I am begginer at MSP430.;

I would like to bliknk two different leds via pressing two different buttons using IR.

I think transmitter works propperly.But something is wrong with my receiver. 

RX:

#include <msp430.h>
 
 void init(void);
void configClock(void);

void configTimer(void);
void startTimer(void);
void stopTimer(void);
void clearTimer(void);
unsigned int readTimer(void);
void listen_IR(void);
unsigned int time_in_low;
unsigned int time_in_high;
int A;
 

int main(void)
{
WDTCTL = WDTPW | WDTHOLD; // Stop watchdog timer
    P1DIR = BIT0|BIT6;   
    P1REN = BIT3;   
    P1OUT = BIT3; 
init();

while(1)
{
listen_IR();
}
}


void listen_IR(void)
{
if((P1IN & BIT3)!=BIT3) {   //falling edge
  startTimer();}
if((P1IN & BIT3)==BIT3){   //rising edge
  stopTimer();
  A=readTimer();          //read the timer to detect PWM length
  clearTimer();
  }

if (A>8000 && A<10000){ //if transmitter sends 9ms PWM 
P1OUT^=0x01;  
__delay_cycles(500000);
}
if (A>3000 && A<6000){
P1OUT^=0x40;  // if transmitter sends 4.5ms PWM 
__delay_cycles(500000);
}
 
}


void init(void)
{

configTimer();
configClock();

}

void configClock(void)
{
//1Mhz
BCSCTL1 = CALBC1_1MHZ; // Set range
DCOCTL = CALDCO_1MHZ; // Set DCO step + modulation
}

void configTimer(void)
{
TACCR1 = 20000;
}

void clearTimer(void)
{
TACTL |= TACLR;
}

void stopTimer(void)
{
TACTL = 0;
}

void startTimer(void)
{
TACCTL1 &= ~CCIFG; // clear the time out flag
TACTL = TASSEL_2 + MC_2; // clock source: SMCLK, mode 2: count up to 0xFFFF
}
unsigned int readTimer(void)
{
return TAR;
}

        TX:

#include <msp430.h>
 
 void init(void);
void configClock(void);
void configTimer(void);
void startTimer(void);
void stopTimer(void);
void clearTimer(void);
unsigned int readTimer(void);
void listen_IR(void);



int main(void)
{
WDTCTL = WDTPW | WDTHOLD; // Stop watchdog timer
BCSCTL1 = CALBC1_1MHZ; // Set range
DCOCTL = CALDCO_1MHZ; 
P1DIR = 0x00;
P1REN= 0xFF;
P2DIR = BIT0;
P2OUT=0x00;

int i;

while(1)
{
 if (!(P1IN & 0x08))  { 
for(i=0;i<692;i++){   // 38kHz, 9ms %50 dutycycle PWM signal period=26us
P2OUT^=0x01;  
__delay_cycles(10);
}
}
if (!(P1IN & 0x01) ){
  for(i=0;i<381;i++){  //38kHz, 9ms %50 dutycycle PWM signal, period=26us
  P2OUT^=0x01;  
__delay_cycles(10);
  }
}
}
}

[FAQ] MSP-EM-DESIGN-CENTER: Can the Energy Measurement Design Center (EMDC) measure DC voltages and currents?

$
0
0

Part Number:MSP-EM-DESIGN-CENTER

Hello everyone,

This question came up recently, so I wanted to provide some guidance in case others had the same question. Currently, EMDC supports AC RMS and peak measurements. While we don't explicitly list that DC measurements are supported by EMDC v1.30.00, it's possible with just few minor changes in the EMDC GUI. For this exercise, we'll use the EVM430-i2040S development board, since it supports both AC and DC measurements. For the maximum DC voltage and current, let's assume they are equal to 200V and 10A.

Assuming you've downloaded and installed EMDC v1.30.00, open the EMDC GUI and then open the pre-configured EMDC example project, "EVM430-i2040S_SH_1V_1C_50Hz".

Update sensor parameters

First, we'll need to adjust the voltage and current sensor parameters in the EMDC GUI, since they have been implemented for RMS inputs and are automatically converted to peak units for easily comparing the sensor output voltage with the maximum ADC input voltage. However, our DC values already have peak units, so we'll need to convert from peak to RMS units by multiplying the DC values by the square root of 2. Conceptually, a RMS DC value doesn't make sense, but remember we're doing this to offset the automatic conversion between units. This ensures that EMDC selects the correct GAIN settings for absolute maximum inputs.

Convert DC voltage to RMS.

200V DC --> 200 / sqrt(2) = 141.421V = ~142V (RMS)

Convert DC current to RMS.

10A DC --> 10 / sqrt(2) = 7.071A = ~8A (RMS)

Enter these "RMS" values into the voltage and current sensor parameter windows in EMDC. Notice the current sensor here is a shunt. This is because current transformers and rogowski coils cannot measure DC current.

Update library configuration

Next, modify the microcontroller's library configuration inside the controller's property window in EMDC. Starting with the "Results" tab, click the "Deselect All" button, and then manually select the following results:

  • VRMS (use this result for our DC voltage measurement)
  • IRMS (use this result for our DC current measurement)
  • Active Power
  • Active Energy

The other parameters don't apply to DC measurements. Click the "Save" button before continuing.

Next, under the "ADC Channels" tab, disable the DC filters for all ADC channels by deselecting them.

Check for errors, generate the code and program the target microcontroller. You can find detailed instructions on how to do this in the EMDC Technology Guide.

Perform system calibration for DC measurements

Assuming you've soldered on the wires for the high voltage DC connections and made the isolated EMDC communication connections (described here in the EMDC Technology Guide), configure your high voltage DC test source to provide the DC voltage and current desired for calibration, such as 200V and 1A.

Next, open the microcontroller's properties window and navigate to the "Calibration" tab. Then, select your phase(s). Here, it's "PHASE_A". Most importantly, we'll only need to perform GAIN calibration for DC measurements, so click "Gain" under "Step 2". For VRMS, enter the DC voltage, 200V. For IRMS, enter the DC current, 1A. Keep "Phase Angle" equal to zero. Click "Start" and then "Apply" to complete calibration. In the pop-up window, click "Yes" to save the calibration factors to Flash memory or click "No" to keep them in RAM. More details about the overall calibration process can be found in the EMDC Technology Guide.

View the DC measurements

In the microcontroller's properties window, click the "Results" tab to view the measurements. Again, remember that we're using VRMS and IRMS values for DC voltage and current respectively. Also, the other results are blank because we didn't select them during the library configuration.

Conclusion

That's it! We're planning to integrate this functionality into a future EMDC release to make everything easier, but in the meantime, these instructions should help you use EMDC to measure DC. If you have any questions or feedback, please feel free to comment below. After a few days, the thread will lock, so you can ask your question in a new thread. Thanks!

MSP430FR6047: No signal detected in UPS channel only

$
0
0

Part Number:MSP430FR6047

Hello,

I am using the EVM430-FR6047 with 2 steminc 1MHz sensors.  The DNS channel seems to be receiving a signal (indicated by the expected ADC waveform and no errors) but the UPS channel is not. This is indicated by error code 125 and the ADC signal is saturated high (2047) as shown here:

Here are my current settings:

The UPS channel ADC waveform is not affected by the GUI Based Gain Control.  I've also tried to switch the transducer polarity as mentioned elsewhere on the forums with no effect.  Any suggestions are greatly appreciated.

Thanks,
Dave


MSP430F6736A: Reset voltage

$
0
0

Part Number:MSP430F6736A

Hi

I have some high frequency noise on the power input to my circuit. That noise is causing the MCU to reset.

What i would like to know is....

When the supply voltage at the MCU drops to a sufficiently low level, is there a note anywhere that details (or from which one may establish) the minimum length of time it must remain at, or below that voltage, before the MCU registers that it:

a) has a brown out.
b) that the voltage is too low to continue.

Or perhaps my question should be...how long can the voltage remain below 1.8V before the CPU stops operating?

thanks

MSP-EXP430FR2311: High current draw, longer then expected after LPM3/4

$
0
0

Part Number:MSP-EXP430FR2311

Hello All!

Would really appreciate your help in this.  I've been very confused for about 4 days on this problem now. Re-read all documents and no luck.

I have following requirements:

*Simple IoT sensor application. 

*Wake up MSPFR2311 every ~5s, communicate with sensor for ~5ms through I2C, back to sleep.

*Every 1hr transmit through SPI to wireless chip for ~50 ms and back to sleep.

*Battery life is critical, which is why I am trying to use LPM4 to sleep for ~5s (timing not critical in slightest).

However, the issue I am seeing is that the CPU is awake for far too long. I am very very confused as I have timed with GPIOs all available code and it runs much shorter then the power draw.  My ISR runs for ~30 uS and code runs at max for ~50ms. However current measurements with EnergyTrace reports that my activemode current is way too long (and variable too!) It's sometimes as long as a full second somehow.


I narrowed my program to do the minimum possible that still repros this on at least 2 boards.

#include "io430.h"

int main( void )
{
  // Stop watchdog timer to prevent time out reset
  WDTCTL = WDTPW + WDTHOLD;
  //set pins to low power mode.
 P1OUT = 0x00;
 P2OUT = 0x00;
 P1DIR = 0xFF;
 P2DIR = 0xFF;
 //unlock pins
 PM5CTL0 &= ~LOCKLPM5;
 //set RTC to trigger ~8 seconds
 RTCMOD = 10000UL;
 RTCCTL = RTCSS_3 | RTCSR | RTCPS_1 | RTCIE;
  

 

 while(1)
 {
   //pretend to do work for 5000 / 2MHz = 2.5 mS
   unsigned volatile long wait_var = 5000;
   while(wait_var>1)
     wait_var--;
   
   __bis_SR_register(LPM4_bits | GIE);
 }
  return 0;
}

#pragma vector=RTC_VECTOR
__interrupt void RTC_ISR(void)
{
  (void)RTCIV; //clear interrupt
  __bic_SR_register_on_exit(LPM4_bits);  //return to main program
  return;
}

Here is the energy trace showing mysterious long delays everywhere. How could this?

MSP430F6736: MSP430F6736

$
0
0

Part Number:MSP430F6736

Hi,

A project design with MSP430F6736

the debugging program can be debugged normally at first. After some modifications of the program, the compilation is OK. but when debugging,  the program go wrong and lead to reset.

After , I  had a breakpoint debugging,    find some problems, and  modifications and debug again.  The model does not match the hardware, indicating that the hardware is MSP430F6658. If I continue to download, the program go wrong,again.

(With the same simulator, other MSP430 can be debugged normally,and the MSP430F7636 sample is from TI )

MSP430G2553: Thermal Resistance value

$
0
0

Part Number:MSP430G2553

Could you please share the junction to ambient thermal resistance value (ΘJA)of the part  MSP430G2553IPW20R

CCS/EVM430-F6779: EMDC supported platform

$
0
0

Part Number:EVM430-F6779

Tool/software: Code Composer Studio

The Energy Measurement Design Center can be used on a PC with the following minimum requirements:

  • Windows 7+ operating system with Java version 1.7+

Whether Energy Measurement Design Center supports Windows 7 Professional or NOT?

Viewing all 22051 articles
Browse latest View live


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