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

MSP430F47167: deactivating XT1, only use DCO and XT2

$
0
0

Part Number:MSP430F47167

Hi @ all!

I'm porting a project from a MSPF2013 to a MSP430F47167 and need MCLK = 8 MHz (or anything above) and SMCLK = 1MHz. With the MSPF2013 this works without external components (crystal), just by the integrated DCO and dividers.

But I haven't found a solution for doing this with the MSP430F47167 without an external crystal.

Any ideas highly welcome!

So I tried it with an additional 16 MHz resonator (value was just laying around) connected to XT2. The idea is to drive MCLK from XT2CLK. And drive SMCLK from FDCO, configured to 1 MHz.

But I can't use XT2CLK as source of MCLK, because I have no crystal on XT1, so it is not working. This causes the LFOF to remain set, which switches MCLK to the DCO, no matter what I set into SELMx.
 I tried to disable XT1    (    __bis_SR_register(OSCOFF);     ), but then the uC stops working completely.

What I'm doing wrong?

Thanks in advance!


CCS/MSP432P401R: MSP432 LCD I2C communication stops (waiting on tx interrupt that never occurs)

$
0
0

Part Number:MSP432P401R

Tool/software: Code Composer Studio

Hi all,

The problem with the i2c driver is I can't do a write after a single byte read.
I've tested and can read 2, 4, up to 32 bytes after a write, no problem, but if I do a read 1 byte, the next write waits for a transmit interrupt that never occurs.
I can clear the error by doing another write followed by  then write then reading more than 1 byte - which sometimes fails and sometimes does not, and sometimes this takes two write-read cycles to clear.

Using bus pirate to write / read the i2c bus or single byte reads is not a problem (i.e. generating independent ground truth), which more or less leads me to conclude it is a problem with the 432 chip or with the driverlib.

Using this forum, I see other people have had the same or similar problems- that appear unresolved, which leads me to conclude that is just might be a real problem and not me.

Any help - in either direction - from you to me or from me to you?  I can run tests, I can send you code, whatever...

thx,

bob s.

CCS/MSP430FR5969: Driverlib, external clock source didnt work.

$
0
0

Part Number:MSP430FR5969

Tool/software: Code Composer Studio

Hey , good morning Everyone.

I start to work with drivelib for MSP430FR5969 . I put in my board and in Launchpad xtal 14.7456MHz (535-9839-1-ND   Digikey code) with 27pf capacitor. 

I selected the SMCLK as output in pin P3.4 ( in my board and in Launchpad.  

If I code: CS_initClockSignal ( CS_SMCLK, CS_HFXTCLK_SELECT, CS_CLOCK_DIVIDER_2);   The frequency output is 2.4MHZ but the frequency for this xtal need to be 7.3728MHz. 

if I code  CS_initClockSignal ( CS_SMCLK, CS_DCOCLK_SELECT, CS_CLOCK_DIVIDER_2); with DCOCLK = 8MHZ the frequency output is 4MHZ . 

I check all code generated by Grace and is consistent 

My code is 

void FRCTL_Init(void)
{
FRAMCtl_configureWaitStateControl(FRAMCTL_ACCESS_TIME_CYCLES_1);
}

void Clock_Init(void)
{
/*
* Sets the external clock source for XT1 and XT2. These variables can be used by
* other API functions.
* XT1 Frequency - 32768 Hz
* XT2 Frequency - 14745600 Hz
*/
CS_setExternalClockSource ( 32768, 14745600);

CS_turnOnLFXTWithTimeout(LFXTDRIVE_3, 100000); //Start Low Frequency crystal in low frequency mode


//Start high frequency crystal
//#define CS_HFXT_DRIVE_8MHZ_16MHZ (HFXTDRIVE_1)
CS_turnOnHFXTWithTimeout(HFXTDRIVE_1, 100000);

/*
* Setting MCLK source from CS_HFXTCLK_SELECT with the divider of CS_CLOCK_DIVIDER_1.
*/
CS_initClockSignal (CS_MCLK, CS_HFXTCLK_SELECT, CS_CLOCK_DIVIDER_1);

/*
* Setting SMCLK source from CS_HFXTCLK_SELECT with the divider of CS_CLOCK_DIVIDER_4.
*/
CS_initClockSignal ( CS_SMCLK, CS_HFXTCLK_SELECT, CS_CLOCK_DIVIDER_2); // ( Dont Work) 
//CS_initClockSignal ( CS_SMCLK, CS_DCOCLK_SELECT, CS_CLOCK_DIVIDER_2);  // (Work) 

/*
* Setting ACLK source from CS_LFXTCLK_SELECT with the divider of CS_CLOCK_DIVIDER_32.
*/
CS_initClockSignal (CS_ACLK, CS_LFXTCLK_SELECT, CS_CLOCK_DIVIDER_32);

/*
* Set DCO frequency to 16000000 Hz
*/
CS_setDCOFreq (CS_DCORSEL_0, CS_DCOFSEL_6);

/*
* Clears all oscillator fault flags including global oscillator fault flag
* before switching clock sources
*/
CS_clearAllOscFlagsWithTimeout(100000);

/*
* MCLK clock request enable. Setting this enables conditional module requests for MCLK
*/
CS_disableClockRequest ( CS_MCLK);

/*
* SMCLK clock request enable. Setting this enables conditional module requests for SMCLK
*/
CS_disableClockRequest (CS_SMCLK);

/*
* ACLK clock request enable. Setting this enables conditional module requests for ACLK
*/
CS_disableClockRequest (CS_ACLK);

/* USER CODE START (section: CS_A_graceInit_epilogue) */
/* User code */
/* USER CODE END (section: CS_A_graceInit_epilogue) */
/* Port 3 Port Select Register 1 */
P3SEL1 = BIT4;

/* Port 3 Direction Register */
P3DIR = BIT4;
}

MSP430G2553: SPI (polling) Question

$
0
0

Part Number:MSP430G2553

I recently ran into a problem in using a G2553 in spi mode (polling)
and connected to a 74HC595 shift register. The problem was I was not
getting the bit QA on the 595 to load. I was able to fix the problem
by changing: while((IFG2 & UCA0TXIFG) == 0); to: while(IFG2 & UCA0TXIFG == 0);
Can someone please explain the difference between the two?
Also, I have noticed that: while((IFG2 & UCA0TXIFG) == 0); seems to work in IIC mode
but not in SPI.

Thanks.

MSP430G2553: Getting trouble in programming MSP430G2553 micro-controller using eZ-FET lite

$
0
0

Part Number:MSP430G2553

Hi,

I am using MSP-EXP430F5529LP (eZ-FET lite) as a programmer for programming MSP430G2553 micro-controller through CCS.

I am able to debug the program but as I stop debugging and after disconnecting the launch pad when I reconnect it and power up the controller it doesn't run the code on the controller.

It seems that eZ-FET is not writing flash of MSP430G2553. Is there any way to write flash so that I can use my controller stand alone. I don't have MSP430G2553 Launch Pad, so I want to use eZ-FET lite of MSP430 F5529 launch pad.

Also is there any way to use Energia to program the MSP430G2553 micro-controller using eZ-FET lite. Can I generate some object file by compiling Energia sketch, which can be used directly to program the controller using eZ-FET lite.

Thanks

MSP430F5338: MSP430F5338

$
0
0

Part Number:MSP430F5338

Hello,

We were using one I2C in our previous device, and currently we are planning to increase the feature set. Neither datasheet or User manuel calling out the pin number for the 2 poarts.

Can some one tell me exact pinouts or both I2C available in MSP430F5338?

I called techinical support, they dont have any answer on this.

Thanks

MB

MSP430G2755: MSP430G2755 + DRV8886AT design review and questions

$
0
0

Part Number:MSP430G2755

Hey team,

 

I am working on a motor drive demo board and am using an MSP430G2755 (or MSP430G2744 if that is capable enough) to interface with 6 DRV886AT to control them simultaneously.

 

What I would like to find out now is how we would generate the STEP signals from the MSP430 for the DRV8886AT, and if this particular 430 would be able to generate 6 independent STEP acceleration and deceleration curves to drives the 6 stepper motors? After chatting with the apps engineer from the Motor drive team they said it may be difficult to do and suggested I check with your team to make sure we have the right MCU paired up for this task.

 

Originally we only had 6 step and 6 DIR signals going to the motor drivers, but we might also have 6 additional signals for torque and 6 signals to control the ref voltage so we may need 24 GPIOs, and 6 of them need to be able to be tied directly to the timer to create the timer related step output  – I think the MSP430G2755 should be able to handle this, but wanted to confirm.

 

I would also need to set up the MSP430 to receive a SPI into - If there's an example of the best way to wire that on this MSP430 that would be helpful, I think at the moment the signals required are occupied so I'd have to move some GPIOs around.

 

Please take a look at the design to see if things are wired appropriately. I’d like to get a proper schematic review as well, the Altium design files can be found uploaded to the box here:

Download 1

 

 Thank you For your help with this!

best regards,

Saqib Mohammad

 

MSP430G2955: WHAT IS MSP430G2XXXX JUNCTION TEMPERATURE?

$
0
0

Part Number:MSP430G2955

HI

I USE MSP430G2955 MCU FOR TEMPERATURE TRANSMITTER.

MY PRODUCT'S OPERATING TEMP IS -40~85 DEGREE.

I READ MSP430G2955 DATASHEET. AND T.I RECOMMEND FREE AIR OPERATING TEMPERATURE IS -40~85 DEGREE.

I CAN'T FOUND MSP430G2955 JUNCTION TEMPERATURE.

I WANT TO KNOW MSP430G2955 JUNCTION TEMPERATURE.

AND WHAT IS FREE AIR OPERATING TEMP?

WHAT IS IT MEANING? 


MSP430FR6989: Datasheet of the LCD on MSP-EXP430FR6989

MSP430F5659: gets locked in LPM3, is it an errata?

$
0
0

Part Number:MSP430F5659

Hello everyone,

Working with a new device that uses MSP430F5659 we ran into a problem: in some cases the microcontroller won't wake from LPM3. After going through errata we couldn't find anything that explains this except that it's similar to PMM15. We narrowed to it being that a timer IFG turned true during the ISR for the same timer and after exiting the ISR and going back to LPM3 it didn't reenter the ISR. We solved this by manually clearing and setting the IFG when required. This is error number 1, which I can no longer be sure of because of what's happening now.

Which brings me to error 2.The current code freezes in a way that will no longer service any ISR, nor DMA and does not even reset with the Watchdog.

While testing we found a case where it will get stuck in LPM3. The code has ISRs for 2 timers, both from TB0 at 32kHz, once the timer is set the ISRs set the next timeout band alternate between the timers (one carries ma period, the other shorter operation timeouts). In parallel the main code runs other operations that will yield control to the ISRs. At some point the ISR will return and when it re-enters LPM3 it will not wake up. We tried using a DMA, other interrupts and a Watchdog and nothing works when it gets in this state.

What seems to make the problem go away, is turning off the SVS. We use only SVSH, with SVSL and both SVM off. Also changing from automatic (Full performance/Normal) to manual seems to do the trick too.

The error is extremely code dependent, so we assume timing is important. We are working to reduce the code to something we can upload, but it will take at least another couple days.

Has anyone ran into an error like this?

MSP430F6659: device's usb not enumerated in host

$
0
0

Part Number:MSP430F6659

Hello sir,

i want to use usb module of msp430f6659. i have downloaded MSP430USBDevelopersPackage_5_10_00_17 and installed MSPUSBDescriptorTool-5_00_10_19 as well as HID demo app.

i use H6_SendDataBackground example from above package. Using descriptor tool i generate code as per my setting and overwrite it to files in USB_Config folder.

I have made hardware as per slaa457a datasheet page no 14. In hardware i do not connect any external supply on VUSB  pin as a want to use it from VBUS . I want to use separate power supply for microcontroller(other than USB module) which is external 3.3V supply and it remain on independent of weather usb connected with pc or not.

I want to use VBUS spply only for USB module.

my XT2 crystal is 16.384MHZ.

i have not made any other change in example.I want to use HID interface

when i connect this hardware to pc it shows UNKNOWN DEVICE.

please help me that how can i setup usb so it works properly.

it is required to configure clock and port pin separately or it is included in example ?

please mention the necessary  changes that  i have to do for make it working.

MSP430FR5972: Delay using Timer

$
0
0

Part Number:MSP430FR5972

MSP430FR5972, CCS v7

Hello I need help to generate delay using Timer without ISR but Timer should be use in a single program the functions are

TA0 - Stimulation LED blinking
TA1 - Battery LED blinking
TA2 - ADC sampling
TA3 - Delay timer 100 mS delay)
TB0 - used Delay for Button Debounce 
Plz suggest me or provide some sample code in which TA0, TA1, TA2, TA3 & TB0 used.

MSP430F5419A: system going to stuck

$
0
0

Part Number:MSP430F5419A

Hello Everyone,

 1.  I am working on three phase energy meter application with msp430 as Master and Ade7880 as slave using SPI communication.

  2 . working on MCLK= 16 MHZ  DCO clock  and for peripheral we are used XTL2 = SMCLK =4 MHZ.

following thing are facing 

scenario 1:  Without AC supply and load.  (current and voltage are zeros).Only supply Provides to MCU (3.3 V).

                      Whenever switching is doing ON to OFF  Or OFF to ON , problem is not coming ,BUT

scenario 2:  With AC supply and load. 

Whenever switching is doing ON to OFF  Or OFF to ON , microcontroller gets stuck on unexpected random locations

and sometimes stopping the cpu execution on do-while loop , library functions like printf, strstr functions.   

It is stcuking at  very small loads (15 Watt) .

 

Facing problem on scenario 2. 

Is that clock issue or core voltage issue Or any other issue.

please check following code clock init and setting of core voltage.

 

//Clock Intialization ==> MCLK=16MHZ SMCLK=4MHZ ACLK=32KHZ
void clock_init()
{

SetVcoreUp(PMMCOREV_1);
SetVcoreUp(PMMCOREV_2); // Set VCore to 1.8v for 20MHz


P11DIR = BIT2 + BIT1 + BIT0; // P11.2,1,0 to output direction

P11SEL = BIT2 + BIT1 + BIT0; // P11.2 to output SMCLK, P11.1

// to output MCLK and P11.0 to
// output ACLK
P5SEL |= 0x0C; // Port select XT2
P7SEL |= 0x03; // Port select XT1

UCSCTL6 &= ~(XT1OFF + XT2OFF); // Set XT1 & XT2 On
UCSCTL6 |= XCAP_3; // Internal load cap

// Loop until XT1,XT2 & DCO stabilizes
     do
       {
          UCSCTL7 &= ~(XT2OFFG + XT1LFOFFG + XT1HFOFFG + DCOFFG);

// Clear XT2,XT1,DCO fault flags
SFRIFG1 &= ~OFIFG; // Clear fault flags

}while (SFRIFG1&OFIFG); // Test oscillator fault flag

UCSCTL6 &= ~XT2DRIVE0; // Decrease XT2 Drive according to

UCSCTL3 |= SELREF_2; //SELREF__XT2CLK;//SELREF__XT2CLK ; //SELREF_5;

__bis_SR_register(SCG0); // Disable the FLL control loop

UCSCTL0 |=0x0000;

UCSCTL1|=DCORSEL_7;

UCSCTL2 |= FLLD_1 + 488;


__bic_SR_register(SCG0); // Disable the FLL control loop

__delay_cycles(500000);  //settle DCO

UCSCTL4 |= SELA_2 + SELS_5 ;//+ SELM_3;

}

//Configured PMM control registers SVM,SVS Control registers
void SetVcoreUp (unsigned int level)
{
// Open PMM registers for write
PMMCTL0_H = PMMPW_H; //PMM password always 0x45 for writing and 0x96 for reading
// Set SVS/SVM high side new level
SVSMHCTL = SVSHE + SVSHRVL0 * level + SVMHE + SVSMHRRL0 * level;
// Set SVM low side to new level
SVSMLCTL = SVSLE + SVMLE + SVSMLRRL0 * level;
// Wait till SVM is settled
while ((PMMIFG & SVSMLDLYIFG) == 0);
// Clear already set flags
PMMIFG &= ~(SVMLVLRIFG + SVMLIFG);
// Set VCore to new level
PMMCTL0_L = PMMCOREV0 * level;
// Wait till new level reached
if ((PMMIFG & SVMLIFG))
while ((PMMIFG & SVMLVLRIFG) == 0);
// Set SVS/SVM low side to new level
SVSMLCTL = SVSLE + SVSLRVL0 * level + SVMLE + SVSMLRRL0 * level;
// Lock PMM registers for write access
PMMCTL0_H = 0x00;
}

Please help me to solve this stuck problem.

 

Regards,

Sanjay M.

 



Interrupt Vector Table generation on MSP devices

$
0
0

Dear TI Team,

Currently I´m writing a custom Bootloader for the MSP430G2744 Mcu. When I´m finished with these task, I will start with porting the Bootloader to a MSP430F5528 Mcu.

I have several questions about Linking process on these devices. CCS Versions is 5.5, current Compiler Version is TI v4.2.1

Firstly, I will need a copy of the Vector Table at runtime. Is it possible to make this step automated while flashing the device with SBW? I want that the Linker generates a second Table at a specific Location.  My first attempt was simply to create a second Section for the Copy and write the table to both locations. But the second location is not written and stays with initial FLASH Value of 0xFF

part of my Linker command file:

vect_table : {} > VECTOR_TABLE

vect_table : {} > VECTOR_TABLE_COPY

My Second question is about the Vector Table in the F5xx Devices and the MSP430X Architecture. Where are the Interrupt handlers linked when Large Memory Model for Code is specified? e.g. 20 Bit width pointers

Is it guaranteed that the Interrupt Handlers are always linked to the lower 65K Region due to Hardware limitations? If not, how the Hardware handles the case, if some Handlers are placed in the higher Memory, while others are in the lower Region?

Relocating .text:_isr to FLASH2 in the linker Command File seems not to throw any errors at the Linking process,

but to be honest, i did not run the programm with this modification:

.text:_isr  : {} > FLASH2              /* ISR CODE SPACE                    */

MSP430F5437A: ADC ENOB or SINAD


Compiler/MSP430F5529: USCI_A_UART unresolved symbols remain

$
0
0

Part Number: MSP430F5529

Tool/software: TI C/C++ Compiler

I'm trying to get this program to compile but I can't seem to figure out what's wrong. Uncommenting any of these functions results in a unresolved symbols and linking error...

GPIO_setAsPeripheralModuleFunctionInputPin
USCI_A_UART_init
USCI_A_UART_enable

/*
 * main.c
 * MSP430F5529
 */


#include <msp430.h> // What is this needed for?
#include <stdint.h> // Library needed to use uint8_t uint16_t .. standard variable types
#include <stdio.h> // Library needed for printf() to work. What else does this do?
#include <usci_a_uart.h>
#include <gpio.h>

USCI_A_UART_initParam uartsetup;

int main(void) {

    WDTCTL = WDTPW | WDTHOLD;	// Stop watchdog timer

    //P3.4,5 = USCI_A1 TXD/RXD
    //GPIO_setAsPeripheralModuleFunctionInputPin(GPIO_PORT_P3, GPIO_PIN3 + GPIO_PIN4);

    uartsetup.selectClockSource = USCI_A_UART_CLOCKSOURCE_SMCLK;
    uartsetup.selectClockSource = USCI_A_UART_CLOCKSOURCE_ACLK;
    uartsetup.clockPrescalar = 3;
    uartsetup.firstModReg = 0;
    uartsetup.secondModReg = 3;
    uartsetup.parity = USCI_A_UART_NO_PARITY;
    uartsetup.msborLsbFirst = USCI_A_UART_LSB_FIRST;
    uartsetup.numberofStopBits = USCI_A_UART_ONE_STOP_BIT;
    uartsetup.uartMode = USCI_A_UART_MODE;
    uartsetup.overSampling = USCI_A_UART_LOW_FREQUENCY_BAUDRATE_GENERATION;

    USCI_A_UART_init(USCI_A0_BASE, &uartsetup);

    //USCI_A_UART_enable(USCI_A0_BASE);

	for(;;){

		printf ("Hey! \n");

	}

}


**** Build of configuration Debug for project F5529_Sandbox ****

"C:\\ti\\ccsv6\\utils\\bin\\gmake" -k all
'Building file: ../main.c'
'Invoking: MSP430 Compiler'
"C:/ti/ccsv6/tools/compiler/ti-cgt-msp430_4.4.7/bin/cl430" -vmspx --abi=eabi --data_model=restricted --use_hw_mpy=F5 --include_path="C:/ti/ccsv6/ccs_base/msp430/include" --include_path="C:/ti/ccsv6/ccs_base/msp430/lib/MSP430F5xx_6xx" --include_path="C:/ti/ccsv6/tools/compiler/ti-cgt-msp430_4.4.7/include" --advice:power=all -g --define=__MSP430F5529__ --display_error_number --diag_warning=225 --diag_wrap=off --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --printf_support=full --preproc_with_compile --preproc_dependency="main.pp" "../main.c"
"../main.c", line 23: remark #1546-D: (ULP 15.1) Detected consecutive bitfield assigns. Recommend using bit mask instead
"../main.c", line 24: remark #1546-D: (ULP 15.1) Detected consecutive bitfield assigns. Recommend using bit mask instead
"../main.c", line 25: remark #1546-D: (ULP 15.1) Detected consecutive bitfield assigns. Recommend using bit mask instead
"../main.c", line 26: remark #1546-D: (ULP 15.1) Detected consecutive bitfield assigns. Recommend using bit mask instead
"../main.c", line 27: remark #1546-D: (ULP 15.1) Detected consecutive bitfield assigns. Recommend using bit mask instead
"../main.c", line 28: remark #1546-D: (ULP 15.1) Detected consecutive bitfield assigns. Recommend using bit mask instead
"../main.c", line 29: remark #1546-D: (ULP 15.1) Detected consecutive bitfield assigns. Recommend using bit mask instead
"../main.c", line 30: remark #1546-D: (ULP 15.1) Detected consecutive bitfield assigns. Recommend using bit mask instead
"../main.c", line 31: remark #1546-D: (ULP 15.1) Detected consecutive bitfield assigns. Recommend using bit mask instead
"../main.c", line 39: remark #1532-D: (ULP 5.3) Detected printf() operation(s). Recommend moving them to RAM during run time or not using as these are processing/power intensive
'Finished building: ../main.c'
' '
'Building target: F5529_Sandbox.out'
'Invoking: MSP430 Linker'
"C:/ti/ccsv6/tools/compiler/ti-cgt-msp430_4.4.7/bin/cl430" -vmspx --abi=eabi --data_model=restricted --use_hw_mpy=F5 --advice:power=all -g --define=__MSP430F5529__ --display_error_number --diag_warning=225 --diag_wrap=off --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --printf_support=full -z -m"F5529_Sandbox.map" --stack_size=160 --heap_size=320 --cinit_hold_wdt=on -i"C:/ti/ccsv6/ccs_base/msp430/include" -i"C:/ti/ccsv6/ccs_base/msp430/lib/5xx_6xx_FRxx" -i"C:/ti/ccsv6/tools/compiler/ti-cgt-msp430_4.4.7/lib" -i"C:/ti/ccsv6/tools/compiler/ti-cgt-msp430_4.4.7/include" --reread_libs --warn_sections --diag_wrap=off --display_error_number --xml_link_info="F5529_Sandbox_linkInfo.xml" --use_hw_mpy=F5 --rom_model -o "F5529_Sandbox.out" "./main.obj" "../lnk_msp430f5529.cmd" -l"libmath.a" -l"libc.a"
<Linking>

remark #10371-D: (ULP 1.1) Detected no uses of low power mode state changing instructions
undefined first referenced
remark #10372-D: (ULP 4.1) Detected uninitialized Port A in this project. Recommend initializing all unused ports to eliminate wasted current consumption on unused pins.
symbol in file
remark #10372-D: (ULP 4.1) Detected uninitialized Port B in this project. Recommend initializing all unused ports to eliminate wasted current consumption on unused pins.
--------- ----------------
remark #10372-D: (ULP 4.1) Detected uninitialized Port C in this project. Recommend initializing all unused ports to eliminate wasted current consumption on unused pins.
USCI_A_UART_init ./main.obj
remark #10372-D: (ULP 4.1) Detected uninitialized Port D in this project. Recommend initializing all unused ports to eliminate wasted current consumption on unused pins.

error #10234-D: unresolved symbols remain

error #10010: errors encountered during linking; "F5529_Sandbox.out" not built
>> Compilation failure
gmake: *** [F5529_Sandbox.out] Error 1
gmake: Target `all' not remade because of errors.

**** Build Finished ****

MSP430FR2311: Printing Pin Value to Console/Screen

$
0
0

Part Number:MSP430FR2311

Hi,

I've very new to embedded systems and especially the MSP430 (I'm a coop student and have only worked with arduino before). I was hoping someone can help me print the value of the A5 (P1.5) pin to console. I am trying to set up the TIA and would like to see if I am getting the results I expected. 

What I thought to do was set the pin to a variable and then print the variable using printf(). Is this a good way to approach? Also, how do I declare the pin (P1.5)? I've tried looking online but haven't found anything concrete.

Any help is much appreciated! 

MSP430FR4133: library for 2.4" touchscreen LCD TFT and temperature sensor

$
0
0

Part Number:MSP430FR4133

It is not having library for 2.4" touchscreen LCD TFT and temperature sensor LM35AT & LM35DT is not giving the correct output after burning the program on the launch pad.

MSP432P401R: BoostXL-Sensors

$
0
0

Part Number:MSP432P401R

I am using the MSP432P401R board along with the Sensor BoosterPack. I downloaded the GUI_ET and configured it correctly, however, it just stucks in waiting data. Do you have any suggestion what it might be?

I am using the black board version of MSP432.

Thanks.

Carmen

CCS/MSP430FR2633: i2c confusion with MSP430FR2633

$
0
0

Part Number:MSP430FR2633

Tool/software: Code Composer Studio

I am a newbie swapping over from PIC and just getting started with CCS and MSP430.

My first problem is with I2C, the "suggested" I2C library within CCS (resource centre) for MSP430FR2633 is DriverLib which has quite a complex implementation of I2C (coming from PIC!) using EUSCI_B_I2C...... API but the MSP430 family user guide uses  UCBx...API. As far as I can see both of these refer to the same hardware implementations but come at I2C in very different ways, and to be honest the MSP430 family user guide is a lot more accessible to a newbie getting their feet wet. Can someone explain the reason for two quite different ways to implement I2C and which is the preferred option.

Many Thanks

Viewing all 21948 articles
Browse latest View live