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

MSP430I2041: Alternative with more memory

$
0
0
Part Number: MSP430I2041
Other Parts Discussed in Thread: MSP430F6745A

Hi team,

My name is Simeon Aleksandrov, I am an FAE intern at TI BeNeLux.

We are looking for an alternative for the MSP430I2041. We need higher flash and RAM, however, we would like to keep the 4 channel 24bit sigma delta ADC.

The closest alternative I could find was the MSP430F6745A, but this is quite a high end part, is there a better suggestion you can point me to?

 

Best Regards,

Simeon Aleksandrov


MSP430F5502: Development board

$
0
0
Part Number: MSP430F5502
Other Parts Discussed in Thread: MSP-TS430RGC64USB

Hi Experts,

Seeking your assistance on this query:

We have finalized microcontroller msp430f5502 for one of our product development. But on product page of msp430f5502, we were not able to find any launchpad for firmware development.

We came across this MSP-TS430RGC64USB
(MSP-TS430RGC64USB - 64-pin Target Development Board for MSP430F5x MCUs).

So is this above dev board sufficient to do code uploading to target MCU and do the debugging job or we need MSP430UIF as well?

If yes, then MSP430UIF is not available, what substitute we should go for?

Thank you.

Regards,
Archie A.

MSP430FR2153: Current consumption of LPM0 at each temperature

$
0
0
Part Number: MSP430FR2153

Hi experts,

Do you have any information on the current consumption of LPM0 at temperatures other than 25°C?

Even if it is just a rough estimate, it would be very helpful, especially at 85°C, 8MHz, VCC=3.0V.

Best regards,
O.H

MSP430FR2355: UART tx issue?

$
0
0
Part Number: MSP430FR2355

Hello...

I am taking I2C register reads and transferring them to the PC over a UART at 19200 (using RealTerm).  I have verified that TXIE is set and that cntr and uart_tx_cntr always seem to be the correct value....I also am confident in the itoa function.  I have checked that the val[] is correct also.  I am however not seeing good data on the port.  For example I write 0x34 to a register and the UART after readback shows 30 (followed by some strange character.....As mentioned all the variables look correct in CCS so I am inclined to think it is code.  

1.  Any thoughts on what I am doing wrong?

2.  should I be loading the TXBUFFER prior to setting TXIE or is it ok to do as I have? (set TXIE, enter ISR then set TXBUFFER).....Seems that this must be ok as my first byte 3 looks correct....

Thanks

I have the following ISR tx UART code:  

          if (cntr == uart_tx_cntr)
          {
              applicationUART.pSysCommsA->UCAxTXBUF = 0x13;
              applicationUART.pSysCommsA->UCAxIE &= ~UCTXIE;
              cntr = 0;
          }
          else if (!(cntr % 2)) //even
              applicationUART.pSysCommsA->UCAxTXBUF = itoa((val[cntr] >> 4) & 0xF);
          else
              applicationUART.pSysCommsA->UCAxTXBUF = itoa((val[cntr]) & 0xF);

          cntr++;
          break;

Main code:

        if (Mutex.UART_tx)
        {
            /*
             * send register to UART
             */
            i2cstate = I2CIDLE;
            Mutex.UART_tx = F;
            applicationUART.pSysCommsA->UCAxIE |= UCTXIE;
        }

MSP430FR2675: VREG necessary to populate on MSP430FR2675?

$
0
0
Part Number: MSP430FR2675

Hello,

I am new to TI products and had a question that I could not resolve in the datasheet or application notes. 

On the MSP430FR2675 there is a pin called VREG. The datasheet gives a values for a capacitor to place next to this pin in order to use the capacitive features of the MCU. My question, is it necessary to add this capacitor if the project will not be using the capacitive features of the device?

Resources used when I tried to answer the question on my own

https://www.ti.com/lit/ds/symlink/msp430fr2675.pdf?ts=1658425682408

https://www.ti.com/lit/ug/slau857a/slau857a.pdf?ts=1658398877269&ref_url=https%253A%252F%252Fwww.ti.com%252Fsitesearch%252Fen-us%252Fdocs%252Funiversalsearch.tsp%253FlangPref%253Den-US%2526searchTerm%253Dtouch%2Bsensor%2526nr%253D1953 

page 14

I appreciate your help,

David

MSP430FR2155: MSP430FR2155

$
0
0
Part Number: MSP430FR2155

Hi 

I have question regarding the coding.

Is it possible that i can send an i2c request inside an ISR routine?

In other word, program already in ISR and  will send a request trigger another ISR.

I try that and it seems ok to me, however, just to confirm this with TI expert here.

Thanks

MSP430FR5043: USS GUI with MSPFR5043

$
0
0
Part Number: MSP430FR5043

Hi Team,

We are trying to run the USS Water Demo on MSP430FR5043. We have modified the project as given here:  link. However, we are seeing random values reflected on USS GUI's ADC Capture, the Capture window doesn't respond, always 0 on all waveforms. We are testing this with transducers kept in still water. What could be causing this? What part we have to modify it for GUI to work? As seen in some of the threads, some users have successfully used USS GUI with MSP430FR5043.

Regards,

Kamlesh

MSP430FR5889: How to make this MCU to be clock source to other part like an External ADC.

$
0
0
Part Number: MSP430FR5889

- MSP430FR5889(64-pin) operates with Internal Clock (DCO, 16MHz).

- External clock source (like crystals, oscillators) should not be used.

- I want to set the MCU to feed clock to the External part.

- Is it possibe with MSP430FR5889?

- If it is, I'd like to know how and get some similar example codes fot it.


MSP430F5502: Hardware Tools (Dev board) required for Code upload and Debugging of MCU MSP430F5502

$
0
0
Part Number: MSP430F5502
Other Parts Discussed in Thread: MSP-TS430RGC64USB, MSP430F5529, MSP-FET

Hello,

We have finalized microcontroller msp430f5502 for one of our product development.

But on product page of msp430f5502, we were not able to find any launchpad for firmware development.

We came across this MSP-TS430RGC64USB
(MSP-TS430RGC64USB - 64-pin Target Development Board for MSP430F5x MCUs).

So is this above dev board sufficient to do code uploading to target MCU and do the debugging job or we need MSP430UIF as well?

If yes, then MSP430UIF is not available, what substitute we should go for?

MSP430FR2676: CapTIvate scan period

$
0
0
Part Number: MSP430FR2676

Hi,

I have questions from my customer for CapTIvate.
Customer understood scan period can be configured by.ui16ActiveModeScanPeriod parameter.
But it seems the minimum value is 1msec.

Q1)
Suppose CapTIvate is configured as below,
Mutual, 1 TX, 8 RX
Conversion Count=500
Frequency divider=1
No oversampling
Scan Time Estimation in CapTIvate Design Center GUI shows below.
Sensors Total is only 0.165msec.

Customer wonders if he can minimize Scan Period less than 1msec.

Q2)
CapTIvate GUI can output the scan data to CSV file.
Customer got the CSV data with above configuration.
.ui16ActiveModeScanPeriod is set to 1msec.
With this configuration, scan rate should be 1msec, but the CSV data shows only 835 scans in 3016msec, i.e 3.6msec average scan rate.
Does the CSV file include all scan data?
Or some data are decimated by some reasons?


Thanks and regards,
Koichiro Tashiro

MSP430FR2355: MSP430FR2355TRHAR _ Maximum current consumption

$
0
0
Part Number: MSP430FR2355

Dear Sir / Madam,

We are using MSP430FR2355TRHAR microcontroller in our design. Supply voltage is 3.3VDC. The MCLK, SMCLK clock frequency is 12MHz. 

Peripherals are UART1, ADC, DAC, GPI ( 6 nos.), GPO (05 no.s), JTAG.

With above peripherals and clock frequency, we want to find out the current consumption of MSP430FR2355 Microcontroller.

What is procedure to find out the current consumption of Microcontroller ? 

Thanks & Regards

Rohidas Sawant

MSP430F2001: MSP430F2001

$
0
0
Part Number: MSP430F2001
Other Parts Discussed in Thread: MSP-FET430UIF

Hi

New to this forum....

Have a MSP430F2001 connected as a 2-Wire JTAG Communication (Spy-Bi-Wire)  to a MSP-FET430UIF and using the CCS  Version: 11.2.0.00007.

From CCS get the error :

Error connecting to the target:
Unknown device

The debugger Power LED on and the Mode LED flickers until the error appears then is solid until cancel is pressed.

Have cheked the wiring - all OK

MSP430F2001is know to be good as programmed using windoows XP and Flash programmer.

Running CCS  Version: 11.2.0.00007 on Windows 10 - can see the Debuger in device drivers -

Is their a particular driver which need to be intalled ?

Any recommdations on getting this Debug I/F working ?

Thanks

MSP430FR2355: UART not working above 19200??

$
0
0
Part Number: MSP430FR2355

Good afternoon...

I am using an MSP430FR2355 development board connected to a PC.  Using RealTerm on the PC side...

I can set the baud rate to 19200 and 9600 and all works fine but if I set it above 19200 I am getting the wrong characters.  I have verified the following registers are set per the  user guide at multiple baud rates above 19.2.  for instance

1.  smclk 8mhz (verified on P1.0), also verified SMCLK is being used within UART control register setting

2. verified also against table 22.5 of user manual settings :  UCOS16, UCBR, UCBRF, UCBRS...

3.  verified RealTerm is set up to correct baud.

A breakpoint at the beginning of the ISR verifies right at the front end of the ISR that RXBUFFER is erroneous which makes me think there is something missing in the setup??

Does anyone have any ideas as to what I may be missing or something to try as I am all out of ideas as to why I cannot go faster?  (the code (in main) does nothing except LPM3 (I see no improvement in LPM0).  It waits for UART characters to come in then acts.

The ISR is quite simple (with a timeout armed inside it in case characters stop)

      case USCI_UART_UCRXIFG:
          buffer[mssgLength] = UCA1RXBUF;
          mssgLength++;
          if (monitor == 0)
              TimerCC_Delay(TIMER0, CC_ZERO, ONE_SECOND);

          monitor = 1;
          if (UCA1RXBUF == 0x0D)
          {
              mssgLength--;
              ISR.UARTmssgRcvdFlag = T;
              LPM3_EXIT;
          }
          break;

thanks

MSP430G2553: CCS trampoline error

$
0
0
Part Number: MSP430G2553

I get an error that makes no sense to me. Offending code:

void WaterEvent( void )
{
RemainingFlowS -= 10; // this is declared as an unsigned int
}

error:

href="file:/C:/ti/ccs1110/ccs/tools/compiler/dmed/HTML/10099.html">#10099-D</a>  program will not fit into available memory, or the section contains a call site that requires a trampoline that can't be generated for this section. run placement with alignment fails for section ".data" size 0x31.  Available memory ranges: {error message ends}

if I replace RemainingFlowS with a different unsigned int, the error goes away

Energia. Where do I get documentation?

$
0
0
Other Parts Discussed in Thread: ENERGIA, MSP430WARE

Hello!

I'm trying to use Energia as a way to teach to an Arduino user.

I'm using the FR5994 board, and I found a tutorial somewhere, saying that the board's red led

can be accessed with the definition RED_LED. I tried the blink code, and it works.

Now, where can I find definitions for other items. For instance, let's suppose that I want to use

UCA0 in SPI mode. What would be the configuration?

I checked in Energia's examples. There are serial examples, but none of these specifies

which port is used.

Beside this, for example if I want to set P2.5 high, how do I do? All the examples are with RED_LED,

GREEN_LED, but what about a port / pin chosen randomly like P2.5?

Any hint about how to proceed?

Thanks,

Pascal


MSP430FR5964: Interleaving UART usage with printf support in CCS

$
0
0
Part Number: MSP430FR5964

I've been using a printf based trace to try and get to the bottom of some MSP430 code issues. This is working fine unless the logic also happens to use a UART, which it does for some functions.. 

The mechanism used to return console writes such as printf's back to the CCS console is a bit opaque, but understand this is using some sort of uart to generate the serial stream transmitted via the JTAG. I'm guessing that the console writes and the logics own uart use are somehow in conflict.

Apologies if it's a dumb question, but I'm struggling to figure out how this works, where/how it can be configured (and if I'm even on the right track!)

Does console write commandeer a physical uart, or is this done in software? If it does utilise a physical uart, can the device used be configured. Any other ideas of what could cause these issues.

Thanks for any insight - Andrew (CCS 11.2.0, GNU toolchain)

MSP430FR2153: About RTC, WDT and VLO at LPM4

$
0
0
Part Number: MSP430FR2153

Hi experts,

Can RTC and WDT be driven by using VLO as the source during LPM4?

My customer is considering the MSP430 for a low power consumption product. As far as we have tested, we have confirmed that the RTC and WDT work when the source of RTC and WDT is set to VLO during LPM4. As far as the UG is concerned, it does not appear to switch to LMP3 since VLO can be driven during LPM4.

However, from the datasheet "Table 6-1. Operating Modes", it is stated that WDT and VLO are turned off during LPM4, so we would like to confirm this.

Best regards,
O.H

e2e.ti.com/.../msp430fr235x_5F00_RTC_5F00_RTC_5F00_VLO_5F00_LPM4.ce2e.ti.com/.../msp430fr235x_5F00_WDT_5F00_VLO_5F00_LPM4.c

MSP430FR2355: Receive data bytes on SPI in the wrong order

$
0
0
Part Number: MSP430FR2355

I'm given a 24-bit ADC and I'm trying to communicate through SPI on a MSP430FR2355 LaunchPad for my prototype.  The operation is fairly straightforward:

Once a button press triggers an IRQ, the MCU's SIMO first sends a command byte (0b01000101) to the slave ADC input by writing to the MSP430's UCA0TXBUF register.  In reply to the command byte, the ADC first outputs a status byte (0x17) to MCU's SOMI line, followed by a config byte 0x33 that gets repeatedly sent as long as I keep writing to the UCA0TXBUF (with a dummy byte) while keeping the STE line active (which I did manually on a GPIO).  In my code, I send three dummy bytes following the command byte, and I expect to read the UCA0RXBUF in the following order

(1) write command byte (0x01000101) to UCA0TXBUF, read 0x17 in UCA0RXBUF and save in receive[0]
(2) write 1st dummy byte (0x00) to UCA0TXBUF, read 0x33 in UCA0RXBUF and save in receive[1]
(3) write 2nd dummy byte (0x00) to UCA0TXBUF, read 0x33 in UCA0RXBUF and save in receive[2]
(4) write 3rd dummy byte (0x00) to UCA0TXBUF, read 0x33 in UCA0RXBUF and save in receive[3]

When I debug the program in CCS and step over line by line, I did get what I expect - variable array receive[4] = {0x17, 0x33, 0x33, 0x33}.  

But if I let debug runs and arbitrarily suspend the program after the SPI event to read my buffered variable, I get receive[4] = {0x33, 0x33, 0x17, 0x33} <-- wrong order

I repeated several times and these results are consistent.  Could someone help explain why this is happening and how can I go about troubleshooting it?

#include <msp430.h> 

char send[] =
{
    0b01000101,                 // command
    0x00, 0x00, 0x00            // dummy
};

unsigned int position;
unsigned int receive[4];

int main(void)
{
    WDTCTL = WDTPW | WDTHOLD;   // stop watchdog timer

    UCA0CTLW0 |= UCSWRST;       // put eUSCI_A0 into SW reset

    UCA0CTLW0 |= UCSSEL__SMCLK; // choose 1MHz SMCLK as BRCLK
    UCA0BRW = 10;               // 1MHz divide by 10 = 100kHz

    UCA0CTLW0 |= UCSYNC;        // set bit to SPI mode
    UCA0CTLW0 |= UCMST;         // set bit to SPI master mode
    UCA0CTLW0 |= UCMSB_1;       // UCMSB_0=LSB; UCMSB_1=MSB
    //UCA0CTLW0 |= UCMODE1;       // 0b10:4-pin with STE active LOW
    //UCA0CTLW0 &= ~UCMODE0;      // ..
    //UCA0CTLW0 |= UCSTEM;        // enable STE output pin
    UCA0CTLW0 &= ~UCMODE1;       // 0b00:3-pin SPI (handle P1.4 STE manually as a port)
    UCA0CTLW0 &= ~UCMODE0;
    UCA0CTLW0 &= ~UCSTEM;

    P1SEL1 &= ~BIT5;            // P1.5 (UCA0SCLK)
    P1SEL0 |= BIT5;             // P1.5 ..
    P1SEL1 &= ~BIT7;            // P1.7 (UCA0SIMO)
    P1SEL0 |= BIT7;             // P1.7 ..
    P1SEL1 &= ~BIT6;            // P1.6 (UCA0SOMI)
    P1SEL0 |= BIT6;             // P1.6 ..

    //P1SEL1 &= ~BIT4;            // P1.4 (STE)
    //P1SEL0 |= BIT4;             // P1.4 ..
    P1DIR |= BIT4;              // P1.4 set as output (manual STE)
    P1OUT |= BIT4;              // P1.4 stays HIGH by default (to be cleared LOW to initiate SPI)

    P4DIR &= ~BIT1;             // P4.1 (SW1) clear as input
    P4REN |= BIT1;              // P4.1 (SW1) enable pull-up/down resistance
    P4OUT |= BIT1;              // P4.1 (SW1) pull-up
    P4IES |= BIT1;              // P4.1 (SW) interrupt edge select: high-to-low transition

    PM5CTL0 &= ~LOCKLPM5;       // get out of LPM
    UCA0CTLW0 &= ~UCSWRST;      // get out of SW reset

    P4IFG &= ~BIT1;             // P4.1 (SW1) clear IFG
    P4IE |= BIT1;               // P4.1 (SW1) enable IRQ

    UCA0IFG &= ~UCTXIFG;        // clear SPI Tx IFG
    UCA0IE |= UCTXIE;           // enable SPI TX IRQ

    __enable_interrupt();

    while(1)
    {
        // do nothing
    }

    return 0;
}

#pragma vector = PORT4_VECTOR
__interrupt void ISR_Port4_S1(void)
{
    position = 0;
    P1OUT &= ~BIT4;             // P1.4 (manual STE) pull LOW to initiate SPI
    UCA0TXBUF = send[position];
    receive[0] = UCA0RXBUF;

    P4IFG &= ~BIT1;
}

#pragma vector = EUSCI_A0_VECTOR
__interrupt void ISR_EUSCI_A0(void)
{
    position++;
    if(position < sizeof(send))
    {
        UCA0TXBUF = send[position];
        receive[position] = UCA0RXBUF;
    }
    else
    {
        UCA0IFG &= ~UCTXIFG;

        // add delays to ensure last UCA0RXBUF is read before P1.4 (STE) is set HIGH
        // P1.4 (manual STE) set HIGH to stop SPI
        __delay_cycles(200);
        P1OUT |= BIT4;
    }
}

MSP430-GCC-OPENSOURCE: Previous versions still not available

$
0
0
Part Number: MSP430-GCC-OPENSOURCE

I am trying to download version 7.3.1.24 of this compiler, but it looks like the link is broken to download previous versions.

Here is how this error can be reproduced:

1. Go to this page MSP430-GCC-OPENSOURCE IDE, configuration, compiler or debugger | TI.com

2. Under "downloads", click the link to "view all versions".

Rather than redirecting to previous versions of the compiler, the link redirects to itself.

Please note that Marko created a thread for this issue about 6 months ago in this post:

(+) MSP430-GCC-OPENSOURCE: Previous versions not available - MSP low-power microcontroller forum - MSP low-power microcontrollers - TI E2E support forums

Unfortunately, the thread has been locked and it appears the issue was not resolved.

Thank you!

-John

MSP430G2553: Watchdog reset MCU on timeout

$
0
0
Part Number: MSP430G2553

Hi Team,

I would like the MCU to reset if the Watchdog is not periodically reset. How can this be done please?

I have all the example about the watchdog, but none of them show how to do this.

Thank you.

Regards,
May

Viewing all 22173 articles
Browse latest View live