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

MSP430F2274: Current Consumption for Spy-Bi-Wire debugging

$
0
0

Part Number:MSP430F2274

Hello Champs,

Would you please kindly help what about the maximum current consumption during Spy-bi-wire debugging? Thanks!

Best Regards,

Linda


MSP432P401R: MSP432 REV C TO MSP432 REV D

$
0
0

Part Number:MSP432P401R

Hello,

This is a question regarding MSP432 Rev C  and its compatibility with the upcoming  MSP432 Rev D micro-controller. Our main concern is that the new Rev D micro-controller will not be compatible with MSP432 Rev C.We have finished our R&D phase with Rev C and started production with Rev C.Everything is fine with Rev C but in Rev D I have noticed that SD card initialization problem as it related to Spi.Does it because of some Spi module upgradation in Rev D or Problem with Mspware compatibility?This would be a risk on our end since we are just now beginning production and have already completed a host of reliability tests with             Rev C micro-controller running MSP432Ware. We have ordered a reel from mouser and We have received Rev D from there.Can I get Rev C from Texas instruments store if any urgency is there and any issue is not solved in Rev D from our side.

Regards,

Pratik Debnath 

MSP430FR2633: How do I define the sensitivity of touch key of MSP430FR2633 Captivate technology

$
0
0

Part Number:MSP430FR2633

Dear Expert

I used MSP430FR2633 Captivate for my design for an automotive touch key inside car.

Currently I am writing a spec for my customer.

How do I define the sensitivity of touch key of MSP430FR2633 Captivate  technology?

Is there any "phraseology" or "unit" to define the sensitivity of  touch key?

Thanks for your comment.

MSP430FR6047: MSP430FR6047

$
0
0

Part Number:MSP430FR6047

i WANT TO DOWNLOAD THE DLMS COSEM LIBRARY SUPPORT FOR MY MSP43FR6047 LOW POWER MCU. cAN ANY ONE HELP ?

MSP430FR6972: Hardware SPI communication problems

$
0
0

Part Number:MSP430FR6972

Hi ti,

Using the hardware SPI to communicate with the slave is.  If the end of the data is 0, after the MCU releases the pin, the level on the IO will slowly pull up, about 20us.

If it is 1, there is no such phenomenon.   May I ask what is the reason?

SPI clock frequency 5M.

MSP430FR6047: Is it possible to generate a square pulses via the PPG?

$
0
0

Part Number:MSP430FR6047

Hello,

I would like to know that is it possible to configure the PPG to generate the square pulses as shown below?

 

Regards,

Mr.Jadhav

MSP430F2252: LFXT1 Oscillator Allowance in HF Mode

$
0
0

Part Number:MSP430F2252

We have found what appears to be a discrepancy in the datasheet of this device.  When I look at the published OAHF value for 4 MHz, I see 800-ohms but this does not match the curves shown in Figure 18.  The other values I see for OAHF match but the 4MHz value is an order of magnitude different.

Please explain the discrepancy and which number is correct.

Thanks,

Stuart

CCS/MSP430FR2355: devlib.h and devlib.c not being discovered in timer routine.

$
0
0

Part Number:MSP430FR2355

Tool/software: Code Composer Studio

Hello everyone,

I am running into what the more experienced user might sigh..." beginner! "... and they would be right. I am studying using the MSP430FR2355 using the "MSP430 Design Workshop" training material (Revision 4.01, Feb 2015). Its probably dated (it uses the "old API" in places but is still excellent for a beginners (is there a document link somewhere to the latest API?). Ok, now to my issue: 

Code Composer thinks that the timer header declarations in the devlib.h are undefined. in other words, it can't find them.

In particular, I am having trouble with the Timer_A_initContinuousModeParam and the associated function that takes it as a parameter Timer_initContinuousMode(); 

Timer_A_initContinuousModeParam is a typedef declared in the Timer_a.h for a structure holding 4 uint16_t and a bool data type. 

Timer_A_initContinuousMode(); defined in the Timer_a.c takes a the timer's base address (TIMER_A0_BASE) and an instance of the Timer_A_initConitnuousModeParam type.

The image below shows the compiler's error message:

 

Checking the Timer_A.h file shows that the typedef structure is defined. see below

And checking that the  timer_a.c shows that the Timer_A_initContinuousMode() function is also defined (below):

Checking the build's include path shows that the correct device library is in the include path. below

The devlib.h should be discoverable if i understand things correctly. Obviously not, which is why i am reaching out for help on this issue. 

Areas where I need help:

  • why the devlib is not discovered (the path pointer appears correct) and what are the remedies ?
  • is there a more current API description? Crawling through the header and c files isn't much fun.

thank you everyone for your time and consideration

jim


MSP432E401Y: Freeing of pbufs from TX descriptor list in msp432e4if.c port of LwIP

$
0
0

Part Number:MSP432E401Y

The SDK has this line in msp432e4if.c, where LwIP pbufs are freed if their DMA descriptors show that they have been transmitted. My question is why are you checking the 0th bit like that? That pBuf field is a pointer to an LwIP pbuf struct, so it looks like you're checking whether the pointer is an even or odd address. Is that a bug, or am I misunderstanding something about pointers in C? I don't see the term "intermediate pbuf" used anywhere else in the code base, so I don't know what that means. I would think that you just want to check if the pBuf pointer is not NULL, and that indicates it is probably pointing to a pbuf struct that needs to be freed.

typedef struct {
tEMACDMADescriptor Desc;
struct pbuf *pBuf;
} tDescriptor;

/* Yes - free it if it's not marked as an intermediate pbuf */
if(!((uint32_t)(pDescList->pDescriptors[pDescList->ui32Read].pBuf) & 1)) {
  ...
  pbuf_free(...)
  ...
}

MSP430FR5964 Power

$
0
0

Hi,

There is an issue about MSP430fr5964 below:

1.When I powered off the power completely, I found it has 0.8V voltage. I check circuit to find when I removed ADC circuit, the circuit worked nomally.The circirt below:

2.It was similarly as above. When I used IO to enable the LDO,the IO couldn't be low without power,its power was about 1.2V.Cirecuit as below.

The structure of EN as below as similar as ADC:

My question is:

Why do IOs leakage electric?

Thanks!

Qianbo

MSP430FR5994: where to find the GUI for the MSP430FR5994 launchpad demo?

$
0
0

Part Number:MSP430FR5994

I am trying to find the GUI (and installation instructions) for the MSP430FR5994 launchpad board. I searched in the resource explorer's development tools but only found GUI Composer (which is for developing GUI's). The launchpad user's guide said it can be found in the latest MSPWare installation but i haven't been able to find it. any help is appreciated. I am running the desktop CCS v8 IDE. 

thanks

jim

CCS/MSP430FR5994: on new project builds, is there suppose to be option for main with driverlib?

$
0
0

Part Number:MSP430FR5994

Tool/software: Code Composer Studio

I was told by another forum member that when creating a new project, there should be an option to create a new project with main using driverlib. My setup creates a new project which include the msp430 header fiiles. i do not have the option for driverlib.  Is there a way to create a new project using driverlib automatically? if so, how do i get that to appear in my CCS IDE v8? 

thank you

jim

MSP430G2230: SBW Burning :"Error: Unknow Device"

$
0
0

Part Number:MSP430G2230

1. Device:

1) MSP-FET430 UIF;

2) CCS8.3.0.

2. Link:

1) C2/C3 are not connected;

2) MCU is powered by MSP-FET430 UIF.

3. Quedtion:

Press F11 on the CCS interface to enter the de-bug mode, the error shown below appears.

  1) It has been confirmed that the programmer can work normally through other hardware platforms;
  2) Grab the two signals of TCK/TDO through the oscilloscope, you can see that there are signals on the two paths in the step of configuring debugger.

How can I solve the above problem?

Can you please tell me where can I get the list of machine codes for the MSP430 controller? I want to try programming in machine codes without using an assembler and debugger.

$
0
0

Can you please tell me where can I get the list of machine codes for the MSP430 controller? I want to try programming in machine codes without using an assembler and debugger.

MSP432P401R: LCD- U8G LIBRARY ST7920 FOR 32-bit ARM?

$
0
0

Part Number:MSP432P401R

Hi, i am making a project and i need to visualize data on an LCD 12864 ZW with ST7920 ..   i previously used this with the U8G library for arduino and had success...

the problem is i cant find a compatible libray for msp432 and when i try to compile with the library i used in arduino i get the: 

U8g.h: No such file or directory error,though the library lies in the proper folder in Libraries...

So, is there a way to use this lcd WITH ENERGIA with a compatible library for the msp432?

Energia 1.8.7E21
Windows 10 x64


THANKS, GIO.


MSP430F155: MSP430

$
0
0

Part Number:MSP430F155

I need to implement high order Bessel filter with least delay and phase shift of the input signal. Output has to be filtered version of the input. Input is 50Khz samples of 420 Hz signal. Essentially the idea is to recover the 420 Hz tone from the samples without any substantial phase shift.So if the cut-off freq of a 10th order Bessel is approx 5 Khz, I suspect phase shift on 420 Hz will be < deg or so. You would  think so?

Output also has to be "real time" meaning least delay.

Can this be implemented by using WDSP filter design techniques?

Then I need a DAC in the MCU.

I only find MSP430F155IPM, an LPQF 64 leadless device.

Isn't there a smaller device with DAC & with gull wing pins? As  you see, I do not strictly need an ADC.

This will go in a miniature product with lots of such capabilities. So a small device will suffice.

Any help in selecting the right device will be appreciated.

CCS/MSP430FR5994:

$
0
0

Part Number:MSP430FR5994

Tool/software: Code Composer Studio

Dear Sirs:

     I have a simple wizard generated program that has the fram located automatically by the compiler.

     I’m trying to put the function, BFunc(), at location 0x4000 using the following code:

 

 

#pragma CODE_SECTION(BFunc,"FRAM")         //or "FRAM"

intBFunc(int x)

{

staticint result;

     result = result +x +1;

     result = result* 5;

   return result;

}

 

   Well FRAM is being put at 0x4000 but the BFunc is being put at 0xa.

 

Can you tell what’s wrong?

 

Thanks,

John(Please visit the site to view this file)

MSP430F5659: MSP430F5659 Configure the DAC to work with the DMA.

$
0
0

Part Number:MSP430F5659

I have been trying to get the DAC to trigger an interrupt to the DMA so that there will be as little latency in the data transfer as possible. My current setup is working, but does not produce a desirable result from the output of the DAC as there is a 10us delay between each of the sine waves. The DAC0 output is on CH1, the other channels are irrelevant. I expect that is delay is being created by the way that I am triggering the DMA in software. Any help would be appreciated.

#include <msp430.h> 
#include <math.h>
#include <stdlib.h>

//=====================================================================================================================================================================
//                                                                  Global Variables
//=====================================================================================================================================================================
unsigned char MST_Data_index = 1;
unsigned char MST_Data[2];
/**
 * main.c
 */

void digital_pot_clt(unsigned int ctl, unsigned int val, unsigned char *ctl1, unsigned char *ctl2) {

    unsigned int to_convert;
    unsigned int tmp_val;
    unsigned int tmp_ctl;
    unsigned int pot_cmd;
    //0. Check if the resistance value is greater than 1023.
    if (val > 1023) {
        tmp_val = 511;
    }
    else {
        tmp_val = val;
    }

    //1. Check the control value.
    if (ctl <= 6 & ctl >= 0) {
        tmp_ctl = ctl << 10;
    }
    else
        tmp_ctl = 0;

    //2. Convert the 16 Bit Control Value to Two 8 Bit Values
    pot_cmd = tmp_ctl | tmp_val;

    ctl1[0] = pot_cmd;
    ctl2[0] = pot_cmd >> 8;

}

int main(void)
{
    //0. Setup a sin function in memory.
    unsigned int v[27];
    //40kHz

    v[0] = 2046;
    v[1] = 2554;
    v[2] = 3031;
    v[3] = 3446;
    v[4] = 3772;
    v[5] = 3991;
    v[6] = 4087;
    v[7] = 4056;
    v[8] = 3898;
    v[9] = 3623;
    v[10] = 3250;
    v[11] = 2801;
    v[12] = 2305;
    v[13] = 1792;
    v[14] = 1296;
    v[15] = 846;
    v[16] = 472;
    v[17] = 196;
    v[18] = 37;
    v[19] = 3;
    v[20] = 98;
    v[21] = 315;
    v[22] = 641;
    v[23] = 1055;
    v[24] = 1531;
    v[25] = 2039;
    v[25] = 2046;

    //1. Configure the WDT to stop working.
    WDTCTL = WDTPW | WDTHOLD;

    //2. Configure the DAC to,
    //a. Configure the input range to full scale output.
    DAC12_0CTL0 = DAC12IR;
    //b. Configure the DAC reference voltage to AVCC.
    DAC12_0CTL0 |= DAC12SREF_1;
    //c. Configure the DAC Amplifier Setting -> Input Buffer: HS/HC & Output Buffer: HS/HC
    DAC12_0CTL0 |= DAC12AMP_5;
    //d. Enable Conversion.
    DAC12_0CTL0 |= DAC12ENC;
    //e. Turn on Calibration.
    DAC12_0CTL0 |= DAC12CALON;
    //f. Select the load trigger for the DAC.
    //DAC12_0CTL0 |= DAC12LSEL1;
    //g. Turn on the dac ie. //DAC12IFG will not be set if this is enabled.
    //DAC12_0CTL0 |= DAC12IE;


    //3. Configure the DMA controller
    //a. Source address.
    __data16_write_addr((unsigned short) &DMA0SA, (unsigned long) &v[0]);
    //b. Destination Address
    __data16_write_addr((unsigned short) &DMA0DA, (unsigned short) &DAC12_0DAT);
    //c. Set the block size.
    DMA0SZ = 26;
    //d. Repeated Single Transfer.
    DMA0CTL = DMADT_5;
    //e.  Source address is incremented.
    DMA0CTL |= DMASRCINCR_3;
    //f. Destination address is unchanged.
    DMA0CTL |= DMADSTINCR_0;
    //h. Enable DCA Interrupt
    //DMACTL0 |= DMA0TSEL_25;
    //g. Enable DMA0
    DMA0CTL |= DMAEN;
    //i. Global Interrupt Enable
    __bis_SR_register(GIE);
    //DAC12_0CTL0 = DAC12IFG;


    //4. SPI Configuration
    //a. Configure the pins for SPI output
    //i. Port 8 Pins,
    //PIN1 (UCA1CLK)
    //PIN2 (UCA1SIMO)
    //PIN3 (UCA1SOMI)
    P8SEL = 0b00001110;
    P8DIR = 0b00000000;

    //ii. Port 2 Pins
    //===PIN2 U10 RST===
    //Set the direction.
    P2DIR = 0b00000100;
    //Set the pull up resistor (disable).
    P2REN = 0b00000000;
    //Set the drive strength (full).
    P2DS = 0b00000100;
    //Set the pin function (gpio).
    P2DS = 0b00000000;
    P2OUT = BIT2;
    //===PIN0 U10 SYNC===
    //Set the direction.
    P2DIR |= 0b00000001;
    //Set the pull up resistor (disable).
    P2REN |= 0b00000000;
    //Set the drive strength (full).
    P2DS |= 0b00000001;
    //Set the pin function (gpio).
    P2DS |= 0b00000000;
    P2OUT |= BIT0;
    //===PIN1 U10 RDY===
    //Set the direction.
    P2DIR |= 0b00000000;
    //Set the pull up resistor (enable).
    P2REN |= 0b00000000;
    //Set the drive strength (full).
    P2DS |= 0b00000000;
    //Set the pin function (gpio).
    P2DS |= 0b00000000;

    //iii. Univ. Serial Comm Module (SPI)
    // **Put state machine in reset**
    UCA1CTL1 |= UCSWRST;
    // 3-pin, 8-bit SPI master
    // Clock polarity high, MSB
    UCA1CTL0 |= UCMST|UCSYNC|UCCKPL|UCMSB;
    // SMCLK
    UCA1CTL1 |= UCSSEL_2;
    // /2
    UCA1BR0 = 0x02;
    UCA1BR1 = 0                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ;
    // No modulation
    UCA1MCTL = 0;
    // **Initialize USCI state machine**
    UCA1CTL1 &= ~UCSWRST;
    // Enable USCI_A0 RX,TX interrupt
    //UCA1IE = UCRXIE;
    //iv. Setup the SYNC POT input.
    P2OUT |= 0;

    //v. Wait for slave to initialize
    __delay_cycles(100);

    //vi. Create the POT data.
    digital_pot_clt(4, 1, &MST_Data[0], &MST_Data[1]);

    //vii. Send the POT data.
    while (!(UCA1IFG&UCTXIFG));               // USCI_A0 TX buffer ready?
     UCA1TXBUF = MST_Data[MST_Data_index];                     // Transmit first character
    MST_Data_index--;
    while (!(UCA1IFG&UCTXIFG));               // USCI_A0 TX buffer ready?
          UCA1TXBUF = MST_Data[MST_Data_index];                     // Transmit first character

    P2OUT &= BIT2;

    P2OUT |= 0;

   //v. Wait for slave to initialize
   __delay_cycles(100);

   //vi. Create the POT data.
   digital_pot_clt(2, 512, &MST_Data[0], &MST_Data[1]);

   //vii. Send the POT data.
   while (!(UCA1IFG&UCTXIFG));               // USCI_A0 TX buffer ready?
    UCA1TXBUF = MST_Data[MST_Data_index];                     // Transmit first character
   MST_Data_index--;
   while (!(UCA1IFG&UCTXIFG));               // USCI_A0 TX buffer ready?
         UCA1TXBUF = MST_Data[MST_Data_index];                     // Transmit first character

       P2OUT &= BIT2;

    for(;;) {
        DMA0CTL |= DMAREQ;
    }

	//return 0;
}

CCS/EVM430-FR6047: HSPLL and SAPH error

$
0
0

Part Number:EVM430-FR6047

Tool/software: Code Composer Studio

Hi,

I was using the previous version of demo code (UltrasonicWaterFR604x02_10_00_07) and previous version of application(USS_1_70_00) with which i could successfully connect the evaluation module to the USS app and everything was working fine.

Since there was a new update to both the app and demo code.I decided to use the updated demo code and USS app.

While I was working on the new version,I got errors which i had never seen before.I am attaching a screenshot of the error

Could i get help regarding this issue as soon as possible?

Best Regards,

Divya H

MSP430F5659: Not Executing After Flashing Using MSP430 USB Firmware Upgrade

$
0
0

Part Number:MSP430F5659

Hi All,

We are facing some flashing related issue in a custom board of MSP430F5659. MCU flashed using MSP430 USB Firmware Upgrade V1.3.1, the TI-TXT file generated using CCS.

After Flashing it wont executing. We flashed the same using MSP-FET 430 JTAG in CCS but it works fine.

What might be the reasons for USB Firmware Upgrade wont work ?

Attaching the log of USB Firmware Upgrade :-

""" Starting
Password Sent Successfully
Sending RAM BSL v00.07.08.38
Done RAM BSL v00.07.08.38
Erasing memory segments  
Sending C:\Users\name\Desktop\Application_test2.txt
Firmware Sent
Verifying memory
Memory successfully verified
Total programming time is 2s  
Resetting Device...
Starting application
Done! """

Is the issue related to Boot Loader Version ? How can flash the Boot Loader to MCU ?

If the Boot Loader version changed can it reverted to old version ?

While Flashing  Boot Loader , if a power failure is occurred can we revert it to back ?

Kindly Help !

Regards,

Renjith

Viewing all 22002 articles
Browse latest View live


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