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

CCS/MSP430FR2633: MSP430FR2633 Code Modification

$
0
0

Part Number:MSP430FR2633

Tool/software: Code Composer Studio

Hi TI Experts,

For the MSP430FR2633, i currently tested the EVM using the sample source code.

However, i need to modified/configure the source code. Do i need to modified it and compile using the Code Composer Studio?

Is 3rd party compiler able to do so and program into the MSP430FR2633?

Is there any guidance or documentation to do so?

Please advice.

Thanks,

Br,

Teach Me


About Sigma Delta ADC

$
0
0

Hello.

Do you have any part number whose sigma delta ADC it can be inputted signals from 0V~2.5V in MSP430 MCUs?

There seems to be only MSP430 MCUs whose sigma delta ADC can be inputted signals up to 1.5V.

Regards,

U-SK

MSP430F5227: DSBGA package

$
0
0

Part Number:MSP430F5227

Hi Experts,

According MSP430F5227 Datasheet (table 3-1), it seems, there is MSP430F5227IYFF (DSBGA Package). However, MSP430F5227 DSBGA package is not released yet. Would you have plan to release it, near future?

I’d like to just clarify it.

 

Best regards,

Miyazaki

CCS/MSP430FR5994: MSP430FR5994

$
0
0

Part Number:MSP430FR5994

Tool/software: Code Composer Studio

How can I run multiple program and sync them at a time

How can I run a blynk program and measure the temperature of the board at same time

MSP430F6779A: Energy calculation in datasheet

$
0
0

Part Number:MSP430F6779A

In the datasheet: Implementation of a Three-Phase Electronic Watt-Hour Meter Using MSP430F677x(A) (Rev. G), a formula for calculating the enerqy is presented. According to me this formula is incorrect because it does not take time into account. Also, it seems dependent of the number of samples you take durring one second. Could someone explain why they do it this way and if its correct or not. The formula is in the image below. 

MSP430FR2355: MSP430FR(2355) and FT232 (for BSL FW update) power solution

$
0
0

Part Number:MSP430FR2355

Dear all,
 
I want to provide a USB (UART) BSL FW update capability to FR2355 using FT232. The overall device does not use the USB power for normal
operation and the FT232 should only be powered when connected to USB  from USB.
Does anyone have experience using FT232 in a configuration where FT232  is bus powered and MCPU is powered from 3.3V? How did you solve the
issues arising from connecting powered MCPU pins to unpowered FT232?
 
Please read the info below if unclear.
 
Device:
 1) battery operated w/ FR2355 (3.3V power supply only)
 2) very low power consumption desired
 3) USB only used for charging and (rare) field FW update
 4) necessary FT232 - FR2355 connections for BSL purposes  
     •    (FT232) RXD - TXD (FR2355)
     •    (FT232) TXD - RXD (FR2355)
     •    (FT232) DTR# - RST# (FR2355; normally w/ pull-up)  
     •    (FT232) RTS# - TEST (FR2355; normally w/ pull-down)
 
 The FT232 chip should be powered ON only when the device is connected to USB and from USB. Hence when no USB connection is made,  
FT232 is left without its VCC and VCCIO. The states of its pins are, of course, "undefined" although there probably are internal protection  
diodes (to VDD/VDDIO? and GND).
 
This shouldn't be a problem for RXD, TXD and RTS# pins. RXD, TXD pins on the MCPU side can be switched by MCPU to Output and Low (when detecting  
no USB power), RTS# (TEST) is normally pulled low internally. Thus no current should flow to FT232.
 
However, DTR# pin (RST# pin on MCPU side) has a pull-up connected to MCPU VDD (3.3V) but due to the diode on DTR# the pin will probably be ~ 0.5 V holding  
FR2355 in RST state and possibly back-powering FT232.
 
Notes:
 - I know I can run the FT232 on 3.3V but this will mean consumption of up to 100uA  even in suspend with disabled external oscil - not preferred
 - analog switches perhaps?

Thank you

MSP-FET: Error with IAR workbench 7.12. Can't find the device

$
0
0

Part Number:MSP-FET

Hello,

I'm using IAR workbench for our MSP projects. Changed emulator tool from Olimex (which works wonderfully) to TI's MSP-FET when we upgraded IAR workbench from version 6 to 7. Problem is that MSP-FET doesn't work: Get: "Fatal error: Couldn't find the device". I've connected it according to the user's guide: external Vcc (3.3 V), pin 1 to RST on the target (MSP430G2432) , pin 7 to TEST on target, pin 4 to Vcc -target (3.3V), pin 9 to GND, 

Have reported error to IAR but they don't know. The IAR workbench do communicate with the emulator - first thing it did was to upgrade firmware, but no luck after that. 

Anyone who knows?

MSP432P401R: How to use MSP-FETFlash enumalation tool for first time

$
0
0

Part Number:MSP432P401R

Hi,

I am new to TI MCU. I have a MSP432P401R custom board. ALso I have MSP-FETFlash Enumalation tool. I have connected this enumalator (14 pin connector) to the MSP432 J-TAg pins.  Unfortunately I am unable to see the device in Keil microvision tool.  I have uniflash installed on my desktop. There I can see the MCU name but Im unable to go furthur. Do I need to use any other softwares?.

Also I wanted to connect the Bluetooth to the MSP432 and flash the firmware to BLE RAM via MSP432. How can I achieve this?.Thank you.


CCS/MSP430G2553: Tina Ti software

$
0
0

Part Number:MSP430G2553

Tool/software: Code Composer Studio

Hey,

I am use Tina Ti software for simulation but one dought we will require a apply a 7V AC how to apply AC voltage in this software that means which symbol use?

MSP430F5510: ADC10 interrupt not triggering

$
0
0

Part Number:MSP430F5510

Hello,

I am having trouble getting the ADC10 interrupt for the msp430f5510 to trigger. Once I call the function lectura_ADC, to read a value from channel 0, the CPU doesn't "wake up" since the interrupt doesn't get triggered, and consequently I can't get a safe value from the ADC.

Code below...

#include <stdint.h>
#include <msp430.h>
#include <stdlib.h>
#include <Timer.h>


void init_adc10(void)
{
P6SEL |= BIT0 | BIT1;
ADC10CTL0 = ADC10SHT_12 | ADC10ON | ADC10IE | ADC10SREF0 | ADC10SC;

ADC10CTL1 |= ADC10SSEL_0 + ADC10SHP;

ADC10CTL2 |= ADC10RES;

}

unsigned int lectura_ADC(int canal){

unsigned int conv = 0;
ADC10CTL0 &= ~ADC10ENC;
ADC10MCTL0 = ADC10INCH0;
delay_ms(10);
ADC10CTL0 |= ADC10ENC | ADC10SC ;

__bis_SR_register(CPUOFF + GIE);
conv = ADC10MEM0;
delay_ms(10);
return conv;

}

#pragma vector = ADC10_VECTOR
__interrupt void ADC10_ISR(void)
{

__bic_SR_register_on_exit(CPUOFF);


}

CCS/MSP430FR5739: How to set pin assignments

$
0
0

Part Number:MSP430FR5739

Tool/software: Code Composer Studio

Hi!

This is my first time working with a non-Arduino microcontroller, and I'm having a lot of difficulties.

I've been assigned the task to set some particular pins on this microcontroller as GPIO outputs, as well as to set some as ADC inputs. I also need to set up a UART on the chip's pins.

I did some research, and it looks like Code Composer Studio is what I should be using for programming this chip. I found some example code, which indicated that I need to use the DriverLib library. I'm trying to set up my project to assign a few pins as outputs. My code looks like:

#include <msp430.h> 
#include "driverlib.h"

/**
 * main.c
 */
int main(void)
{
	WDTCTL = WDTPW | WDTHOLD;	// stop watchdog timer
	GPIO_setAsOutputPin(
	        GPIO_PORT_P1,
	        GPIO_PIN0
	        );
	GPIO_setAsOutputPin(
	        GPIO_PORT_P3,
	        GPIO_PIN0
	        );
	GPIO_setAsOutputPin(
	        GPIO_PORT_P3,
	        GPIO_PIN1
	        );
	GPIO_setAsOutputPin(
	        GPIO_PORT_PJ,
	        GPIO_PIN0
	        );
	GPIO_setAsOutputPin(
	        GPIO_PORT_PJ,
	        GPIO_PIN1
	        );
	return 0;
}

When I try to build this with the little hammer icon in the upper left, I get this error, repeated a whole bunch of times for different particular files in the driverlib folder.


file "./driverlib/MSP430FR57xx/adc10_b.obj" specifies large code memory model, which is not compatible with small code memory model specified in a previous file or on the command line null: file "./driverlib/MSP430FR57xx/adc10_b.obj" specifies large code memory model, which is not compatible with small code memory model specified in a previous file or on the command line

What am I doing wrong here? I've been trying at this for three days and making very little progress...

TSS521: protection resistors at Bus terminals

$
0
0

Part Number:TSS521

Hi,

in the datasheet of TSS521, we detail protection resistors of 220 ohm at the bus terminals. How can my customer determine if indeed 220 ohm are required or some other value might be more suitable?
Specifically, my customer is interested in using lower values. What conditions must be met to use other (smaller) values?

Thanks and best regards,
Phil

CCS/MSP432WARE: Driver library dma.c does not compile when DEBUG is defined

$
0
0

Part Number:MSP432WARE

Tool/software: Code Composer Studio

In projects that set DEBUG (e.g. through the Predefined Symbols), several ASSERT statements fail in dma.c because they look for the DMA pointer. Instead, it looks like these should test for DMA_Control (for MSP432).

The fix is pretty easy for the MSP432 (Just change DMA to DMA_Control in the ASSERT statements), but it might take some more thinking to make sure this works well with the MSP430 as well.

MSP430FR5994: Are all of the EZ-FET components required for USB communication?

$
0
0

Part Number:MSP430FR5994

Hello,

Just wondering if all of the components of the EZ-FET are required for USB communication & programming. I'm designing my own custom board and my conclusion is that all the components are required for what I want to do, but I just wanted to double check. Additionally, if I wanted to program the EZ-FET I would just use the firmware already provided by TI and use the MSP-430UIF, right? 

Thanks!

Edit: The custom PCB would have an EZ-FET on it if that's necessary for USB communication from a computer to the msp430.

MSP430FR5994: MSP430FR5994 Launchpad BOM and layout

$
0
0

Part Number:MSP430FR5994

I have successfully connected a camera which stores images to the micro SDCard using the MSP430FR5994 Launchpad. I want to move the design to a custom PCB and make it available to students that I mentor. My experience with crystals is that they can be finicky and I would like to copy the launchpad layout and component selection as closely as possible.

In particular I would like to know how the Launchpad arranged its power domains and a parts list so that I can use the same parts (caps with the same ESR and frequency responses, etc). Is it possible to get the layout files (or gerbers) and the parts list (BOM)? 

thanks

jim


MSP-EXP430G2ET: Guide to make MSP-EXP430G2 based firmware/PCB jumper setup compatible with MSP-EXP430G2ET

CCS/TIDM-1019: Acoustic length

$
0
0

Part Number:TIDM-1019

Tool/software: Code Composer Studio

Hi,

Our acoustic length is 62 while in the code it is set to 70.

1) Should we change it to 62 OR will we be able to obtain accuracy even with acoustic length set to 70?

2)What all parameters must i change, if i set acoustic length to 62?

Best regards,

Divya Harikumar

MSP430F5529: Computer freezes instantly as USB MSP430 is inserted

$
0
0

Part Number:MSP430F5529

Hello,

I have two brand new MSP430F5529 Launch Pads. The moment I connect either of the two Launch Pads to a host computer via the USB cable, the host computer instantly freezes. The very moment I un-plug the USB cable, my computer unfreezes. I have another MSP430 (same model, but have had it for several years), and have had no issues connecting it to a computer – including the very computer that freezes with the newer MSP’s.

I have tried updating the MSP USB driver (MSP Application UART1), with no luck. I have also updated CCS, again to no avail.

Has anyone encountered this before?

RTOS: Explain TI RTOS ADCBufMultiChannel example from SDK for MSP_432E401

$
0
0

Tool/software: TI-RTOS

Hi friends,

I am trying to enable and read multiple adc channel through a single trigger. I was referring to the example provided with SDK "simplelink_msp432e4_sdk_2_40_00_11",  adcbufmultichannel_MSP_EXP432E401Y_tirtos_ccs.

Kindly forward this query to respective forum if this is not the correct place.


I would like to know about the following queries

1. Should each channel which is configured should have separate Sample buffer or the same sample buffer for all ?

2. In the example the second channel doesnot have  any sample buffer specified. Why so ?

3. Will there be multiple callback after reading ADC for each channel or it will be a single callback for every channel, when buffer is full ?

4. If it is a single callback for all channels together, how will i identify each channel data from "completedADCBuffer" (pointer) ?

Thanking everyone in advance for your guidance.

Code Snippet:

/* Configure the conversion struct for two channels on same sequencer */
continuousConversion[0].arg = NULL;
continuousConversion[0].adcChannel = Board_ADCBUF0CHANNEL0;
continuousConversion[0].sampleBuffer = sampleBufferOne;
continuousConversion[0].sampleBufferTwo = sampleBufferTwo;
continuousConversion[0].samplesRequestedCount = ADCBUFFERSIZE;

continuousConversion[1].arg = NULL;
continuousConversion[1].adcChannel = Board_ADCBUF0CHANNEL4;
continuousConversion[1].sampleBuffer = NULL;
continuousConversion[1].sampleBufferTwo = NULL;
continuousConversion[1].samplesRequestedCount = ADCBUFFERSIZE;

/***************** This is the callaback function ***********************************************/

void adcBufCallback(ADCBuf_Handle handle, ADCBuf_Conversion *conversion,
void *completedADCBuffer, uint32_t completedChannel) {
uint_fast16_t i;
uint16_t *completedBuffer = (uint16_t *) completedADCBuffer; //how to differentiate different channel data

for (i = 0; i < ADCBUFFERSIZE; i++) {
outputBuffer[i] = completedBuffer[i];
}

/* post adcbuf semaphore */
sem_post(&adcbufSem);
}

With regards

Dennis

MSP430F5529: SPI not performing well. MISO continuously sends 0x01, 0x02, 0x03

$
0
0

Part Number:MSP430F5529

Hi all,

I am using the MSP430F5529LP to connect with the wiz550io (w5500 ethernet chip) over SPI. Now I have the following problem. The wiz550io keeps sending the following bytes 0x01, 0x02, 0x03. see the picture.

As i understand this might be a problem at the slave device and not in the MSP430F5299. Yet the thing i don't understand is why they keep sending bytes at the exact same time and why the MOSI line is high between the bytes 0x1F and 0x4C. Also, the mcu doesn't enter the ISR of the receive interrupt when the bytes 0x01, 0x02, 0x03. Could these bytes be some sort of dummy bytes the slave device send? because when i disconnect the MOSI line, it keeps sending these bytes.

This is the code i use to initialize the spi and how the port functions to interface with the w5500 library.

uint8_t init_spi(void)
{
    //Set P2.7 for slave select
    GPIO_setAsOutputPin(GPIO_PORT_P2, GPIO_PIN7);

    //Set P2.7 high for slave deselect
    GPIO_setOutputHighOnPin(GPIO_PORT_P2, GPIO_PIN7);

    //P3.0,1,2 select for SPI configurations
    GPIO_setAsPeripheralModuleFunctionInputPin(GPIO_PORT_P3, GPIO_PIN0 + GPIO_PIN1 + GPIO_PIN2);

    //Initialize Master
    USCI_B_SPI_initMasterParam param = {0};
    param.selectClockSource = USCI_B_SPI_CLOCKSOURCE_SMCLK;
    param.clockSourceFrequency = UCS_getSMCLK();
    param.desiredSpiClock = SPICLK;
    param.msbFirst = USCI_B_SPI_MSB_FIRST;
    param.clockPhase = USCI_B_SPI_PHASE_DATA_CAPTURED_ONFIRST_CHANGED_ON_NEXT;
    param.clockPolarity = USCI_B_SPI_CLOCKPOLARITY_INACTIVITY_LOW;

    if(USCI_B_SPI_initMaster(USCI_B0_BASE, &param) != STATUS_SUCCESS){

        return STATUS_FAIL;
    }

    //Enable SPI module
    USCI_B_SPI_enable(USCI_B0_BASE);

    // Enable USCI_B1 RX interrupt
    USCI_B_SPI_clearInterrupt(USCI_B0_BASE, USCI_B_SPI_RECEIVE_INTERRUPT);
    USCI_B_SPI_enableInterrupt(USCI_B0_BASE, USCI_B_SPI_RECEIVE_INTERRUPT);

    //success
    return STATUS_SUCCESS;
}

void wizchip_select ( void )

{

while (USCI_B_SPI_isBusy(USCI_B0_BASE));

GPIO_setOutputLowOnPin(GPIO_PORT_P2, GPIO_PIN7);

__delay_cycles(2);

}

void wizchip_deselect(void)

{

while( USCI_B_SPI_isBusy(USCI_B0_BASE));

__delay_cycles(2);

GPIO_setOutputHighOnPin(GPIO_PORT_P2, GPIO_PIN7);

}

uint8_t wizchip_read()

{

while( USCI_B_SPI_isBusy(USCI_B0_BASE));

return USCI_B_SPI_receiveData** (USCI_B0_BASE);

}

void wizchip_write( uint8_t wb)

{

//USCI_B1 TX buffer ready?

while(!USCI_B_SPI_getInterruptStatus(USCI_B1_BASE, USCI_B_SPI_TRANSMIT_INTERRUPT));

USCI_B_SPI_transmitData(USCI_B0_BASE, wb);

return;

}

I really hope someone here has used the msp430 with the w5500 as well and can help me with this problem!

Thank you in advance,

Caspar

Viewing all 22172 articles
Browse latest View live


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