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

MSP432P411V: module power source

$
0
0

Part Number:MSP432P411V

Hi Experts,

MSP432P411 has several DVCC and GND pins. We want to know which DVCC pin and DVSS pin pairs source the power to each modules.

  ・DVCC1,DVCC2,DVSS1,DVSS2,DVSS3

  ・AVCC1,AVCC2,AVSS1, AVSS2, AVSS3

Could you please share such information?

Regards,

Uchikoshi


MSP432P401R: TCK pull up or down

$
0
0

Part Number:MSP432P401R

JTAG connection pull upp or pull down

It looks strange for me to pull upp something thats pulled down, please comment.

and from 

Application Report
SLAA848–October 2018

CCS/MSP-TS430DA38: MSP430F2252

$
0
0

Part Number:MSP-TS430DA38

Tool/software: Code Composer Studio

hi'

   i have working this board ..my problem is 

if (CALBC1_16MHZ==0xFF) // If calibration constant erased
{
while(1); // do not load, trap CPU!!
}

problem 

1) CALBC1_16MHZ what is the use of this?i need answer.. 

2) 0xFF why here compare it? here said constant erased how it is possible here using == assignment oprator

pls reply

thanking you

siru

CCS/MSP432P401R: TI-RSLK memory map issue

$
0
0

Part Number:MSP432P401R

Tool/software: Code Composer Studio

Hi,

I'm using TI-RSLK, the MSP432P401R launchpad is meeting an issue. when run every code, simple as SineFunction, it will meet the following problem;

Could you please tell me how to solve this problem, thanks.

MSP430FR58471: Preventing additional interrupts

$
0
0

Part Number:MSP430FR58471

Hello,

I'm using MSP430FR59471IRHAT device. There is an interrupt defined on P2.2 input (the interrupt is produced on signal falling  edge). When there are more than one consecutive pulses at P2.2, microcontroller produces series of multiple interrupts. I want microcontroller to produce an interrupt only for the first event. How can I prevent producing interrupts for all following input changes?

I've already tried to disable interrupts by clearing bit 2 in P2IFG register. It does not help.

Here is the relevant ISR code:

 

//Configuration of P2.2 input:

 P2DIR &= ~BIT2; // Set P2.2 to input direction

 P2IES |= BIT2; //interrupt flag is set on the falling edge of P2.2

 P2IFG &= ~BIT2; //clear interrupt flag on P2.2

 P2IE |= BIT2;   //enable interrupt on P2.2

 

//-----------------------------------------------------------------------

//          Port2 interrupt service routine

//-----------------------------------------------------------------------

#pragma vector = PORT2_VECTOR

__interrupt void PORT2_ISR (void)

{

               //P2IE &= ~BIT2;   //disable additional interrupts from P2.2 (does not disable further interrupts)

               input1EventCounter++;

               while(delayTimeCounter)

               {

                    delayTimeCounter--;

              }          

             P4OUT |= BIT1;    //1 => set SW5_CMD  to 'ON' state

             P2IFG = 0; // clear all interrupt flags in P2IFG register

          //P2IE |= BIT2;           //re-enable additional interrupts from P2.2

} //end of the Port 2 interrupt routine

CCS/MSP430F5308: MSP430F5508 USB not detected

$
0
0

Part Number:MSP430F5308

Tool/software: Code Composer Studio

Hi,

We designed a board based on MSP430f5508 micro controller. we use USB in our design to talk to the Host PC. USB device is not detected by the host.

We ran you sample code co_simple_send as well from usb developer package. 

Can you please guide us to resolve this issue ?

Thanks

Satya

MSP-EXP430G2ET: Failed to debug customer board by using MSP-EXP430G2ET

MSP430G2533: Sub-1GHz Low Cost Mesh Network Design Guide / Download Software for GUI

$
0
0

Part Number:MSP430G2533

Hello,
can someone tell me where I can download the GUI software to let me view the data on the uart Interface?
I mean the green window in which the data is displayed (see attachment).


Best Retards
Janusz
(Please visit the site to view this file)

CCS/MSP430I2041: msp430i2041

$
0
0

Part Number:MSP430I2041

Tool/software: Code Composer Studio

Dear all,

I want to send a string via UART, the issue is it only sends the first character, I would really appreciate some help in this regards. The code is attached below:

//Intialisation bit:

    //UART
    P1SEL0 |=   BIT2 | BIT3;                // P1.2/3 eUSCI_A Function
    P1SEL1 &= ~(BIT2 | BIT3);

    UCA0CTL1 |= UCSWRST;                    // Hold eUSCI in reset
    UCA0CTL1 |= UCSSEL_2;                   // SMCLK
    UCA0BR0   = 0xAA;                       // 9600 baud
    UCA0BR1   = 0x06;
    UCA0MCTLW = 0xD600;                     // 16.384MHz/9600 = 1706.6667 (See UG)
    UCA0CTL1 &= ~UCSWRST;                   // Release from reset
    UCA0IE   |= UCRXIE;                     // Enable RX interrupt

    // Setting the DCO to use the internal resistor. DCO will be at 16.384MHz
    CS_setupDCO(CS_INTERNAL_RESISTOR);
    CS_initClockSignal(CS_SMCLK, CS_CLOCK_DIVIDER_1);

// Interrupt routine

void USCI_A0_ISR(void)
{
    switch(__even_in_range(UCA0IV, USCI_UART_UCTXCPTIFG)) {
        case USCI_NONE: break;
        case USCI_UART_UCRXIFG:
            u = 0;
            while (!(UCA0IFG&UCTXIFG)); // USCI_A0 TX buffer ready?
            {
                sprintf(randomstr, "%d", p_results_2);// convert p_result_2 to string
                while (randomstr[u] != '\0')
                {
                    UCA0TXBUF = randomstr[u];
                  
                    u++;
                    //UCA0TXBUF = 0x0a;
                }
                UCA0TXBUF = 0x0a;
               
                UCA0TXBUF = 0x0d;
                u = 0;
            }
            break;
        case USCI_UART_UCTXIFG: break;
        case USCI_UART_UCSTTIFG: break;
        case USCI_UART_UCTXCPTIFG: break;
        default: break;
    }
}

Regards

Neal

CCS/MSP430F5529: SD card interface of memory >4GB

$
0
0

Part Number:MSP430F5529

Tool/software: Code Composer Studio

HI,

I am new to this forum. I am working on Interfacing SD card of memory > 4 GB to MSP430F5529 using SPI communication. Can any one help me with the initialisation sequence(command sequence) of SD card. I am trying with CMD0->CMD8->ACMD51. But I am unable to initiate SD card. I am not getting response from SD card. Please help me with this. It would be helpful if I get some reference.

MSP430F2272: Disabling mass erase upon sending an incorrect BSL password

$
0
0

Part Number:MSP430F2272

I am looking for clarification on the BSL in the MSP430F2272. We are doing firmware updates from the host processor that is communicating with the MSP430. I need to handle the case where the flashing procedure was interrupted. So we might have erased the main memory segment so the data in 0xFFE0 - 0xFFFF would be all 0xFF's. I want to avoid a mass erase if we use the wrong password. So if I were to just try the normal password (the normal contents of 0xFFE0 - 0xFFFF) on a part that wasn't fully flashed, I want to avoid a mass erase that would erase INFO A with calibration data in it.

So the question is, does writing 0x0000 to 0xFFDE on the MSP430F2272? The TI BSL User Guide says "Some devices can disable mass erase on incorrect password. See the device family user's guide" However, I don't see anywhere in the MSP43F2xxx user guide that talks about this. Can anyone confirm that I can indeed disable a mass erase on this specific part?

MSP430FR5962: Alternate hardware debugger for MSP430FR5962?

$
0
0

Part Number:MSP430FR5962

Hi team,

This is a follow-up to my previous question regarding MSP430FR5962:

Now that I have the micro sleeping at LPM3, I find that EnergyTrace doesn’t work well at really low currents.

I'm using the MSP-FET V1.2, and wonder if the later V2.x version is any better with low currents.

Is there a debugger that works with CodeComposer V8 that has better low-current capabilities?

And maybe power debugging capability similar to what IAR has for ARM cores, but for MSP430FRs?

Thanks,

Brian Angiel

Compiler/MSP430F2619: MSP430F2619 USB to Serial Programming Issue

$
0
0

Part Number:MSP430F2619

Tool/software: TI C/C++ Compiler

Hello TI,

We are using MSP430F2619 and in order to programmer it via USB we have added the UART to Serial converter, FT232RL (circuit snapshot is attached below).

We are using TI bootloader with demo code. We can see the PORT coming up briefly on PC and then it resets. We are not sure why this is not stable. USB signals are routed properly in differential manner with short traces. We have tried to swap the resistors R33, R20 & R34, R41 but it is also not helping. Can you please review the circuit diagram and suggest if anything that we can do on it?

I will be looking to your kind reply.

Thanks,

Muhammad Awais

MSP430G2553: Flash memory sectionalization

$
0
0

Part Number:MSP430G2553

Hi,

I am using MSP430G2553 for my project. In this project I have to take in the user data which is of 256 bytes and store it in non-volatile memory. Also, there are some commands of 256 bytes which I need to store in non-volatile memory. I can't make use of memory segment B,C and D because of the small size. I have heard that we can sectionalize the flash memory for storing the using data with the use of linker commands. Can anyone help me out in sectionalizing and guiding on how to use these linker commands. Or if there is any example for the same.

Thanks

Nitish

MSP-GANG: MSP-GANG Vrs MSP430 GANG

$
0
0

Part Number:MSP-GANG

(Please visit the site to view this file)Earlier we are using  MSP430 gang programmer to program the IC MSP430FG4619
As MSP430 phased out we brought MSP-GANG programmer to program this IC.


But we have observed this IC is getting programmed but Application is not working.


Please help is I need to set additional settings in MSP-GANG programmer?


CCS/MSP430G2553: SPI Communication with LMP91200: UCB0RXBUF Always 0

$
0
0

Part Number:MSP430G2553

Tool/software: Code Composer Studio

Hello! I am new to working with SPI communication/the MSP430G2xx3 and am simply trying to read pH sensor values from the LMP91200 evaluation board. However, while I am trying to receive the three bytes in the interrupt section, UCB0RXBUF always has value 0. Would appreciate guidance on how to resolve this issue!

//******************************************************************************
//                       MSP430G2xx3
//                    -----------------
//                /|\|              XIN|-       MSP430 3.3V  (J1.13 +3.3V DUT)
//                 | |                 |        MSP430 GND   (J1.10)
//                   |             XOUT|-
//                   |                 |
//                   |                 |
//                   |                 |
//                   |             P1.6|<- Data In (UCB0SOMI) (J1.27 SMSO B)
//                   |                 |
//  (J1.23)ADC SEL <-|P1.3         P1.5|-> Serial Clock Out (UCB0CLK) (J1.25 SCK_B)
//
//******************************************************************************
#include <msp430.h>
#define DUMMY   0xFF

unsigned int RxByteCtr = 2;
unsigned int ReceiveIndex = 0;
unsigned char RxWord;
unsigned char ReceiveBuffer[2] = {0};   //[0] MSB, [1] LSB
unsigned char MST_Data;

int main(void)
{
  volatile unsigned int i;

  WDTCTL = WDTPW + WDTHOLD;                     // Stop watchdog timer
  P1OUT = 0x00;                                 // P1 setup for LED & reset output
  P1DIR |= BIT0 + BIT3;                         //

  P1SEL = BIT5 + BIT6 + BIT7;
  P1SEL2 = BIT5 + BIT6 + BIT7;
  UCB0CTL0 |= UCCKPL + UCMSB + UCMST + UCSYNC;  // 3-pin, 8-bit SPI master
  UCB0CTL1 |= UCSSEL_2;                         // SMCLK
  UCB0BR0 |= 0x01;                              // /1 = 1MHz, 4.5 max, 0.9 min
  UCB0BR1 = 0;                                  //
  UCB0CTL1 &= ~UCSWRST;                     // **Initialize USCI state machine**
  IE2 |= UCB0RXIE;                          // Enable USCI0 RX interrupt

  P1OUT |= BIT3;                                // deselect ADC
  __delay_cycles(50);
  P1OUT &= ~BIT3;                           // select/enable ADC
  __delay_cycles(50);


    UCB0TXBUF = DUMMY;      // transmit first byte

  __bis_SR_register(LPM0_bits + GIE);           // CPU off, enable interrupts
}

// Test for valid RX and TX character
#if defined(__TI_COMPILER_VERSION__) || defined(__IAR_SYSTEMS_ICC__)
#pragma vector=USCIAB0RX_VECTOR
__interrupt void USCIB0RX_ISR(void)
#elif defined(__GNUC__)
void __attribute__ ((interrupt(USCIAB0RX_VECTOR))) USCIB0RX_ISR (void)
#else
#error Compiler not supported!
#endif
{
    volatile unsigned int i;
    while (!(IFG2 & UCB0RXIFG));              // USCI_B0 RX buffer ready?
    RxWord = UCB0RXBUF;

    if (RxByteCtr > 0)
    {
        ReceiveBuffer[ReceiveIndex] = RxWord;
        ReceiveIndex++;
        RxByteCtr--;
        while (!(IFG2 & UCB0TXIFG));              // USCI_B0 TX buffer ready?
        UCB0TXBUF = DUMMY;      // transmit the second & third bytes
    }
    if (RxByteCtr == 0)
    {
        RxByteCtr = 2;
        ReceiveIndex = 0;
        P1OUT |= BIT3;  // deselect ADC
        __delay_cycles(50);
        P1OUT &= ~BIT3; // select ADC
    }
}

MSP430I2040: What is the need for HID interface to generate Energy meter code

$
0
0

Part Number:MSP430I2040

Hi,

we have  used Energy measurement design center to generate code and flashed it successfully in the MSP430I2040 chip. There is already UART port is available in the board but after programming it doesn't send any data to GUI. Does MSP-EXP430F5529LP is needed for generating source code in design centre?

Link - In this link I have found that launchpad is used in between PC and MSP430 device.

MSP430G2402: MSP430G2402?

$
0
0

Part Number:MSP430G2402

Hi

Looking for low cost MCU with below requirements:

  • Minimum of 12 GPIO
  • 0.5KB RAM
  • 8KB/4KB ROM/FLASH
  • Minimum 256B Internal runtime reprogrammable FLASH
  • Minimum 1x16bits timer (from internal clock minimum 4MHz)
  • Watchdog timer
  • Sleep mode
  • Minimum operating voltage is 2V or less
  • Minimum external components for normal operation required
  • Commercial grade
  • UART is nice to have
  • Is MSP430G2402 is the right solution?
  • Any other recommendation?

MSP430FR6047: EVM430-6047 Volume nedd

$
0
0

Part Number:MSP430FR6047

Hello

I'm using EVM430-6047 & Custom Board, UltrasonicWaterFR6047_02_10_00_05 Firmware, Custom Spool Piece.

Both of all can measure Volume Flow Rate well. (40L/h,20L/h... etc)

But Volume is not correct. for example, When I receive 10L of water at 40L/h VFR, Measure Volume Data is 10L and receive 10L of water at 20L/h, Volume Data is 9L.

Q1. Is there any work to be done before flow measurement? 

Q2. How can i calibrate Volume Data that each Volume Flow rate? Is it the user's part? or Is it supported by TI Program?

And I know that Release UltrasonicWaterFR604x_02_20_00_04 Version include Calibration function. But it calibrate only Volume Flow Rate. Is that right?

MSP430FR2311: The purpose of 2 input to the gas chamber

$
0
0

Part Number:MSP430FR2311

Hi guys

I have a question in regards to how does the system work for the gas chamber, emitter and receiver diodes.
So based on the references design, it has 1 input GPIO to the emitter and 1 input GPIO to the receiver.

May I question what is the purpose of using two GPIO inputs, P2.7 and P1.6?

I would like to confirm whether the following theory is correct.
1. MCU will activate P1.6 to receiver to get the voltage level with no light, no smoke.
2. MCU will activate P2.7 and P1.6 to get voltage level with no light, no smoke.
3. MCU will activate P2.7 and P1.6 to get higher voltage level with light, got smoke.

So MCU will compare between (2). and (3). to check if there is smoke?
If so, is it possible to have a common GPIO to activate both P2.7 and P1.6 at the same time?
OR, just having 1 input at P2.7 is sufficient, without the input of P1.6?

Sorry if my explanation is bad, I want to know the theory behind this concept and the purpose for 2 GPIO inputs.

Viewing all 21975 articles
Browse latest View live