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

MSP430F5342: XT2BYPASS adn

$
0
0

Part Number:MSP430F5342

Dear TI:

        First,

        Now I am doing some test on MSP430F5342.

        According to the slau208q, I am in doubt about something.

        UCSCTL6 Register

        

        It says that "and XT2 is not in bypass mode of operation". If I use the XT2BYPASS mode, for example,24MHz oscillator(not crystal), it seems that i can't use the XT2OFF according to the XT2OFF bit highlight.

        If I want to turn off the XT2 oscillator(not crystal) in the XT2BYPASS mode, how can I do?Can I use the XT2OFF = 1?

        If I want to turn on the XT2 oscillator(not crystal)  in the XT2BYPASS mode, can I use the XT2OFF = 0?

 

        Second

       


EVM430-FR6047: Put the device to sleep and activate it from a uart interrupt.

$
0
0

Part Number:EVM430-FR6047

Hello,

I working with the water demo and I am trying to set the device to sleep and wake it up when I send a byte through uart. I have tried using the __bis_SR_register(LPM4_bits); to set to sleep and enabling the uart interrupts. I am a beginner in all of this and any advice would be most welcome.

Thank you for your time 

Panagiotis 

MSP430FR5739: Driverlib I2C Example Question

$
0
0

Part Number:MSP430FR5739

Hi, 

Apologies if this has been asked on here before but I couldn't find a specific answer.

Firstly, I am new to MSP430, I've only previously worked with ST Arm MPUs for about 6 months. 

I am trying to use I2C to communicate with the FDC1004 capacitance sensing chip. I have been looking at the Driverlib examples, and there is one thing that doesn't seem to make an sense to me.

In the examples, TX functions have a parameter, like the following filled with  "transmitData". Initially I thought this was the data that you want to send to the slave. The problem is then, how do you specify what address to write to in the slaves registry?

EUSCI_B_I2C_masterSendSingleByte(EUSCI_B0_BASE, transmitData); 

For reference, this is the inside of that function

void EUSCI_B_I2C_masterSendSingleByte (uint16_t baseAddress,
    uint8_t txData
    )
{
    //Store current TXIE status
    uint16_t txieStatus = HWREG16(baseAddress + OFS_UCBxIE) & UCTXIE;

    //Disable transmit interrupt enable
    HWREG16(baseAddress + OFS_UCBxIE) &= ~(UCTXIE);

    //Send start condition.
    HWREG16(baseAddress + OFS_UCBxCTLW0) |= UCTR + UCTXSTT;

    //Poll for transmit interrupt flag.
    while (!(HWREG16(baseAddress + OFS_UCBxIFG) & UCTXIFG)) ;

    //Send single byte data.
    HWREG16(baseAddress + OFS_UCBxTXBUF) = txData;

    //Poll for transmit interrupt flag.
    while (!(HWREG16(baseAddress + OFS_UCBxIFG) & UCTXIFG)) ;

    //Send stop condition.
    HWREG16(baseAddress + OFS_UCBxCTLW0) |= UCTXSTP;

    //Clear transmit interrupt flag before enabling interrupt again
    HWREG16(baseAddress + OFS_UCBxIFG) &= ~(UCTXIFG);

    //Reinstate transmit interrupt enable
    HWREG16(baseAddress + OFS_UCBxIE) |= txieStatus;
}

According to another question on here, it seemed like in the example, transmitData is set at 0x01 and is actually the pointer to the register to write to. However, if this is the case, then what is the data that is sent to it?

Apologies if this is a stupid question. Maybe I am lacking understanding of I2C. 

Thanks, 

Damien

RTOS/MSP432E401Y: IO PIN RESPONSE ISSUE ON INTERRUPT

$
0
0

Part Number:MSP432E401Y

Tool/software: TI-RTOS

Hello,

I am using Toggle switches on IO's in my applications and i have two doubts:

1. When i am using GPIOMSP432E4_PE0 & GPIOMSP432E4_PE1 in combined, the code seems to  be hanging somewhere.

   However if i use each IO's individually, my code working properly.

   I am connecting these i/o's to the push buttons on launchpad.

  and in the msp432e401y.c & msp432e401y.h files i have initialised in sequence as mentioned in the header file.

   What might be the problem here?

2. If i use a two pole toggle switch,with three terminals, one end terminal is connected to PE0, other end to the PE1 and centre terminal to the GND. So automatically one terminal will be connected to the ground              initially. 

    so here i would like to send command on uart as per the switch position.  I have written the code similar to the gpiointerrupt.c.

    I have configured io pins as 

    

    GPIO_setConfig(Board_GPIO_1, GPIO_CFG_IN_PU | GPIO_CFG_IN_INT_RAISING);

    GPIO_setConfig(Board_GPIO_2, GPIO_CFG_IN_PU | GPIO_CFG_IN_INT_RAISING);

    In call back functions i have used one flag, based on that flag i am sending command on uart.

  It is  also not working?.

 Since either of the pin is grounded in hardware as per the switch position, what must be the ideal configurations for the IO pins for writing an interrupt basedprogram.

Thank you

Regards

Kalyan.

   

    

     

    

MSP430FR5969: Use FRAMCtl_write8 to write in 20Bit Area

$
0
0

Part Number:MSP430FR5969

Hello everybody,

I want to write data to the range 0x10000-0x13FFF.

Can I use the function FRAMCtl_write8?
If I pass a value greater than 0x10000, the framPtr is zero or something else. :-/

Bsp:

uint32_t u32DestAddress = 0x10000;

FRAMCtl_write8(*ppu8SrcAddress, (uint8_t*) u32DestAddress , u16NumberOfBytes);

I also tested the following with the same result:

uint32_t __data20* pu32test = (uint32_t __data20*)0x10000;

FRAMCtl_write8(*ppu8SrcAddress, (uint8_t*) pu32test, u16NumberOfBytes);

Can someone help me find a solution? :-)

MSP430F2254: Part compatibility between MSP430F2254TDA and MSP430F2254TDAR. SW isn't working.

$
0
0

Part Number:MSP430F2254

Hello,

I take over the existing product from other site and verify flashing and debugging.

The product has MSP430F2254TDA with efuse blown which I couldn't flash. I couldn't find the part from distributor and TI, so got MSP430F2254TDAR and replaced it.

I  programmed the existing SW after then, but it didn't work correctly. Now I am compiling and flashing SW into the board(MSP430F2254IDAR), but the program doesn't rum correctly nor can't be debugged because it stuck on __data16_memzero. I can't see this program jump to main(). The SW was compiled by IAR.   

I'm not sure this problem with TI part difference or  not. Can you please take a look at the issue and give me any comments.

I attached the screenshot for debugging .

Thank you, HJ

RTOS/MSP432E401Y: NDK start thread aborts with returncode -2 on custom board

$
0
0

Part Number:MSP432E401Y

Tool/software: TI-RTOS

Hi,

we have a custom board with MSP432E401 (designed very closely to the MSP-EXP432E401Y).

I am trying to run a program based on the example "httpserver_MSP_EXP432E401Y_tirtos_ccs_syscfg". The RTOS starts up and I am able to run a task for controlling LEDs.

The Problem: The NDK stack aborts in function "ndkStackThread" at this point:

/*  Boot the system using this configuration
*
*  Loop until the function returns 0. This facilitates a reboot command.
*/
do
{
    rc = NC_NetStart(hCfg, networkOpen, networkClose, networkIPAddr);
    /* call user defined stack reboot hook */
    gtw_ndk_stack_reboot_hook(hCfg, rc);
} while (rc > 0);

The do/while is exited with rc == -2.

The exactly same project runs with no problem on the launchpad. As of now we have not been able to find a hardware/component placement error (we tested 3 boards, all the same).

Is there any description to errorcode -2? Do you have ideas for the cause of this behaviour or how to troubleshoot?

Thanks in advance & best regards,
Christian

P.S.

Please find attached our schematics.


RTOS: SImplelink HttpGet hostname resolution failed with static IP

$
0
0

Tool/software: TI-RTOS

Hello,

I have a following problem with the getting started project called: 

httpget_MSP_EXP432E401Y_tirtos_ccs_syscfg

when I change the IP address to static, and set external DNS server the hostname resolution failes. Same error with https example but SNTP connection failes first.

SimpleLink MSP432E4 SDK - v:3.10.00.11
Compiler: TI v18.12.2.LTS

Please see the attached project. Only the DHCP and the DNS settings are changed compared to the original example.

(Please visit the site to view this file)


EVM430-FR6047: Newly added parameter in GUI

$
0
0

Part Number:EVM430-FR6047

Hello,

In the Advanced Parameters tab there are now two new values: Envelope Crossing Threshold and Search Range. These variables are not described in my version of the Ultrasonic Design Center user's guide (SLAU720B). Is there a new version of the guide, or are these parameters explained online somewhere?

Thanks,

Andre'

MSP432P401R: Start to programming

$
0
0

Part Number:MSP432P401R

Hi there,

i'm a newbie in MSP432 programming. So, would like to ask what is the best way to start with it? I have a MSP432P401R Launchpad (red) and CC1310 Launchpad.

I've been searching for good specifc books, but without success yet. If you can indicate a literature or other method to accelerate my learning, i'll appreciate.

thanks 

Fred Saraiva

MSP-EXP430FG4618: MSP-EXP430FG4618

$
0
0

Part Number:MSP-EXP430FG4618

hello everyone,

i'm a newbie to this board.i am using CCS and i have a task to turn on the buzzer by pressing the push button (s1)

which turn on the buzzer twice then turn off (0.5 second then turn it off and again turn it another 0.5 sec and turn it off).

any help please 

MSP432E401Y: Firmware Update

$
0
0

Part Number:MSP432E401Y

hi 

I am working with MSP432E401Y.

I tried to execute the boot_serial_emac_flash_MSP_EXP432E401Y_nortos_ccs example

What I did is upload the boot_serial_emac_flash_MSP_EXP432E401Y_nortos_ccs example using simple usb debugger in the ccs ide.

Then in the bsl scripter command line interface, I wrote the command C:\ti\BSL-Scripter\ScriptExampleWindows\E4xx_ethernet\script_1.txt 

 In return, BOOTP RECEIVED message was shown.

In next step I wrote the command C:\ti\BSL-Scripter\ScriptExampleWindows\E4xx_ethernet\script_2.txt

Again for which RECEIVED REQUEST was shown 

In the third step, I generated the hex image of the      timerled_MSP_EXP432E401Y_tirtos_ccs_syscfg  example and move it to the E4xx_ethernet folder of the BSL scripter folder.

Then I replaced the file name in script_3.txt to the above    timerled one.

And executed script_3.txt for which request received was shown.

Now according to the documents, the timer led program should start executing on the device right? but nothing happened 

I don't know if I have skipped any step? 

What may have went wrong?

Thanks

MSP430G2553: Differences among the variants

MSP432P401R: Achieve maximun sample rate (1 MSPS) using dma and multiple ADC channels

$
0
0

Part Number:MSP432P401R

I have been working with the MSP432 in order to sample the data from 12 ADC channels at a constant sampling rate of 30 KSPS per channel, as can be seen in the FFT image of two ADC channel, it was possible to achieve 30 KSPS, two signals, one of 1 KHz and another of 10 KHz where correctly sampled.

Here is the PWM configuration:

#define SAMPLE_CLOCK_FREQUENCY  24000000
#define SAMPLE_FREQEUNCY        360000/*.0f*/

Timer_A_PWMConfig pwmConfig =
{
 .clockSource = TIMER_A_CLOCKSOURCE_SMCLK,
 .clockSourceDivider = TIMER_A_CLOCKSOURCE_DIVIDER_1,
 .timerPeriod = (SAMPLE_CLOCK_FREQUENCY/SAMPLE_FREQEUNCY),
 .compareRegister = TIMER_A_CAPTURECOMPARE_REGISTER_1,
 .compareOutputMode = TIMER_A_OUTPUTMODE_SET_RESET,
 .dutyCycle = (SAMPLE_CLOCK_FREQUENCY/SAMPLE_FREQEUNCY)-19
};

The SAMPLE_FREQUENCY constant is 360000. As a result, the sampling frequency for each ADC channel is 360000/12 = 30 KHz; the problem is that I cannot even double this sampling frequency to 60 KHz. Once I change the  SAMPLE_FREQUENCY constant to 360000*2 the FFT figure shows the aliasing of both signals, indicating an incorrect sampling this also happens when I use a SAMPLE_CLOCK_FREQUENCY of 48000000, I am still using the two signals, one of 1 KHz and another of 10 KHz. 

In theory, the maximum sampling rate of the MSP432 is 1 MSPS, using 12 channels it should result on a sampling rate of 83333.33 samples per second at each channel, but as can be seen, is not even possible to obtain 60000 samples per second. I am using scatter-gather DMA for sampling. The data is transmitted through serial at a baud rate of 230400; I used a Matlab script that once executed initiates the analog acquisition at the MCU.

How can I solve this issue?is it possible to obtain 1 MSPS while using 12 ADC channels?

In this link you will find the CCS project and the MatLab script:

github.com/.../MSP_DMA_12-CH

MSP430F2272: DCO cablibration without external crystal.

$
0
0

Part Number:MSP430F2272

Hello.

I am using DCO without external crystal at MSP430F2272.

Timer times are different for each product and there is a big difference between the tolerances when I measured SMCLK out for each MCUs.

The example code to calibrate DCO on the web is needed external clock but my board is not connected with external crystal.

Is there a way to calibrate a DCO without an external crystal?

Thank you


CCS/TIDM-1019: DToF correlation error

$
0
0

Part Number:TIDM-1019

Tool/software: Code Composer Studio

Hi,

I installed the new USS and firmware.

I seem to get a error saying DToF - correlation threshold error while using default configuration.

I didnt ever get such an error in previous versions.

What could be the issue?

Best Regards,

Varsha V

MSP430F6736A: msp gang programmer dll

$
0
0

Part Number:MSP430F6736A

Hi all

I'm writing an app to instruct the MSP Gang to download a firmware image to a msp430f6736A chip using the GANG430.dll (ver 01.03.01.00)

All appears to be ok EXCEPT i dont seem to be able to cause it to write to infoA (nor for that matter infoB although infoC & D have no issues).

I imagine the issue with infoA has to do with its special status, so where would i look to mimic the 'unlock infoA' functionality just like the gang does?

thanks

moshe

CCS/MSP430F5529: Help me to choose

$
0
0

Part Number:MSP430F5529

Tool/software: Code Composer Studio

Hello TI team, 

I'm using MSP430F5529 MCU in my project. 
My question is : what is the better msp430 MCU who can offer a better low current consumption and a good performance at the same time. 
Thank you .  

MSP430FR5969: TEST/SBWTCK and RST/NMI/SBWTDIO Pin connection

$
0
0

Part Number:MSP430FR5969

Hi,

It is recommended to left the TEST pin floating, but if that pin goes up it will cause the device to enter to JTAG mode, isn't it?

In noisy environment or ESD test the internal 35K pull down could be too week.

Is there any recommended instructions how to connect the TEST/SBWTCK and RST/NMI/SBWTDIO Pins to support normal and programming requirements?

Thanks

Asaf

MSP430F5342: Errata PORT24

$
0
0

Part Number:MSP430F5342

Dear TI experts

Now I have some problems when I test the MSP430F5342.

According to the slaz278ab,errata PORT24 says that there will be an increased current consumption because of the internal floating pads.

And Workaround gives the code in C to avoid the increased current consumption.

But the "#define INIT_MEMORY_ADDR  0x0204" in the slaz278ab->PORT24,as follow:

which differs from the "#define INIT_MEMORY_ADDR1 0x0206" in the slac504g\MSP430F534x_Code_Examples\MSP430F534x_LPM3_01.c,as follow:

Which one should I choose for the solution to the errata PORT24.

Thanks in advance for your help.

Best Regards.

Viewing all 22172 articles
Browse latest View live


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