Jump to content

Search the Community

Showing results for tags 'msp430'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • News
    • Announcements
    • Suggestions
    • New users say Hi!
  • Spotlight!
    • Sponsor Spotlight
    • Sponsor Giveaways
  • Energia
    • Energia - MSP
    • Energia - TivaC/CC3XXX
    • Energia - C2000
    • Energia Libraries
  • MSP Technical Forums
    • General
    • Compilers and IDEs
    • Development Kits
    • Programmers and Debuggers
    • Code vault
    • Projects
    • Booster Packs
    • Energia
  • Tiva-C, Hercules, CCXXXX ARM Technical Forums
    • General
    • SensorTag
    • Tiva-C, Hercules, CC3XXX Launchpad Booster Packs
    • Code Vault
    • Projects
    • Compilers and IDEs
    • Development Kits and Custom Boards
  • Beagle ARM Cortex A8 Technical Forums
    • General
    • Code Snippets and Scripts
    • Cases, Capes and Plugin Boards
    • Projects
  • General Electronics Forum
    • General Electronics
    • Other Microcontrollers
  • Connect
    • Embedded Systems/Test Equipment Deals
    • Buy, Trade and Sell
    • The 43oh Store
    • Community Projects
    • Fireside Chat
  • C2000 Technical Forums
    • General
    • Development Kits
    • Code Vault
    • Projects
    • BoosterPacks

Calendars

There are no results to display.


Found 262 results

  1. Hello, I'm actually trying to communicate with Gps through Uart. But every time its giving error like this. error: #error This version of SoftwareSerial supports only 20, 16 and 8MHz processors. I don't know how to solve it. so, please help me to finish this project. it's very urgent Thanks in advance.
  2. while integrating GPS with my msp430. I'm getting these errors from the library. so please someone help me out. C:\Users\softdesigners\Desktop\energia-1.6.10E18\libraries\SoftwareSerial\SoftwareSerial.cpp:81:2: error: #error This version of SoftwareSerial supports only 16MHz processors C:\Users\softdesigners\Desktop\energia-1.6.10E18\libraries\SoftwareSerial\SoftwareSerial.cpp: In member function 'void SoftwareSerial::begin(long int)': C:\Users\softdesigners\Desktop\energia-1.6.10E18\libraries\SoftwareSerial\SoftwareSerial.cpp:251:31: error: 'table' was not declared in this scope C:\Users\softdesigners\Desktop\energia-1.6.10E18\libraries\SoftwareSerial\SoftwareSerial.cpp: In member function 'virtual size_t SoftwareSerial::write(uint8_t)': C:\Users\softdesigners\Desktop\energia-1.6.10E18\libraries\SoftwareSerial\SoftwareSerial.cpp:319:26: error: 'XMIT_START_ADJUSTMENT' was not declared in this scope
  3. Compute float number in msp430g2

    Hi everyone, I use the following function to compute the angle from accelerometer: float a =atan2f(-0.143798828, -0.680053711); But it can not return a proper result (a huge number ~10^22). How I can compute the angle directly on the chip. (I used CCS IDE). Thanks!
  4. Serial port does not exist

    Mac OS 10.9.5; MSP-EXP430G2; just downloaded Energia 1.6.10E18; installed MSP430LCPDC 1.0.3b drivers. I installed the drivers and restarted my Mac. I was able to select the /dev/cu.art-XXXXX port, but running Blink gave me a long error, which ended in the selected serial port fet: identify failed does not exist or your board is not connected Power LED on the launchpad works. I've had the board sitting on a shelf for about 3 years, if that makes any difference. I could not locate these drivers on my Mac to verify they were the right ones, but other forum posts leads me to believe that is the right port. Can anyone help me? Thanks.
  5. hi, I am using a MSP430FR4133 launchpad, i am trying to get a float value and send it via sim800. for that i hve to convert the float value to char* or char array. I have tried many conversions but i am not able to get the conversion properly. Even if i get it properly while printing it on the serial. The data is not transmitted in the right format through sim800. for example if i use dtostrf( buff , "%f" , flaotVal); function in serial monitor only "%f" is getting printed. and if i try other type of convertions , while transmitting through sim800 the right side part of the float value gets added to the decimal values . have tried ( itoa(), sprintf(), etc..) for example .. float value = 1.25. and if i tried converting and printing it on serial monitor i am getting it corrrectly as "1.25" . But when i am trying to transmit through sim800 the converted float value is sent as "0.125" instead 1.25 . Can anyone help me with this?.
  6. I'm trying to interface sd card module to msp430f5529 using Energia. I tried these methods https://43oh.com/2013/12/interfacing-the-launchpad-to-an-sd-card-a-walkthrough/ and download sd library from GitHub. both are giving errors. can anyone help me out with this errors?
  7. Is it possible to use asm in energia? I would like to see some short and simple example of how to use it and compile it. I found THIS very nice and useful guide to make it work in code composer studio, but unfortunalley I could not put this code it to work in Energia, and I dont have CCS.. (I downloaded the version 7, but for some reason it did not install, just give errors, tried in 2 pcs) In the other hand, I found something about asm in Energia here in the forum, but is was intended for a more complex stuff, and I could not put it to work, too.. Could someone give me a light? I just want to do something very simple like blink a red led, then a green led, like in the example in the link, just to know how to handle asm in msp430. But in Energia, not CCS.. I am using the msp430g2553 launchpad. I have also a g2452 chip.. ps. my final objective is to make something like THIS in msp430 (the guy provides the emulator asm code for the atmel chip, I guess it would be possible to port it to msp, if you know asm and study the chips very well.... once tha arm emulator runs, I guess the rest will work...)
  8. Hi guys, To train the use of some macros I decided to update/improve a 16x2 lcd library (HD44780) that I adapt many years ago. Possible there are other libraries shared here, but I liked how I managed the configuration of ports and pins using some macros. The use of macros made the library more versatile and easy to adap to new projets without the need to change tons of code lines. The same simples example of use is runnig on MSP430G2553 (old value line launchpad) and MSP430FR2433 (the new value line launchpad). I hope it's useful. https://github.com/agaelema/LCD16x2_MSP43x
  9. UART using MSP430FR2311

    I am using a MSP430FR2311 launch pad and i am trying to send AT commands through RX and TX to SIM800 and Receive Response from the SIM800 module. But am not able to get the response and not able to use SoftwareSerial in Energia for MSP boards. Can Anyone help with this problem ? Thank you in advance. #include <String.h> void setup() { pinMode(RED_LED , OUTPUT); Serial.begin(9600); //Serial.print(F("AT\r")); while(Serial.available()==0); val1 = Serial.readString(); Serial.print(val1); Serial.print("\r"); delay(100); } void loop(){ //do nothing if(Serial.available()) { String val2 = Serial.readString(); line += String(val2); Serial.print(line); if (line.indexOf("OK") >= 0) { digitalWrite(RED_LED,HIGH); } } } Since we cant use both the Debugging UART (Serial Monitor) and Application UART (TX and RX) at the same time , I am checking the received Response for the string "OK" . and if OK is there the RED led goes high.
  10. Hello, I want to design a datalogger and to create USB Mass Storage when I connect board. I did not find Examples related to MSP430F5529 for Energia. So, please suggest me Energia example/SDK related to "MSP430F5529". Thank you. Regards, Pratik Panchal
  11. Can we add MSP430FR2311 Launchpad to energia. The Board Manager isn't Showing this board.
  12. Hello from Fort Worth, Texas

    Hello, Just getting back into the microcontroller development aren. In the nineties I got very familiar with the Intel 8751 all programming in assembly. Times have changed! A lot is easier now, but learning the new IDE and knocking the rust off my C programming. We picked the MSP430 for the low power consumption. Like others I had a little trouble getting Energia running but now no problems. First project completed was a remote oxygen pressure monitor for the airplane. We have also connected the LIS3DH accelerometer and have it working well. I haven't figured out exactly how to import, modify arduino libraries yet so I just wrote directly to the chip following the data sheet. No problems with the I2C. Looking forward to more MSP430 projects. thanks, Valerie
  13. Hi, The new MSP430FR2433 ValueLine Launchpad is with a promotional price. https://e2e.ti.com/blogs_/b/msp430blog/archive/2017/11/08/introductory-price-of-4-30-for-msp430fr2433-mcu-launchpad-kit?HQS=epd-mcu-msp-vline-fb-blog-LPdiscount-wwe&hootPostID=97a463d63a1e96cbf999f3c7a33c703e It seems to be a good replacement to the old ValueLine G2
  14. Hello from France

    Hello, I am Laurent. I am an Electronics engineer from France. I would like to explore MSP430's world.
  15. Full MSP430FR5969 Port

    Is there a full energia porting for msp430fr5969, i.e. all the ports and full mcu functionality (timer, spi, i2c etc) rather than limited as per the launchpad? I have msp430fr5969, custom board connected to bunch of sensors and radio and would like to use energia for this. Any directions or suggestions will be most welcome. Thanks
  16. Fatal error

    I'm using the latest version of Energia and I'm facing some problems with it. I'm a beginner and I tried running an example program on the MSP430G2553. I get this error which says: Energia: 1.6.10E18 (Windows 8.1), Board: "MSP_EXP430G2553LP" In file included from C:\energia-1.6.10E18\hardware\energia\msp430\cores\msp430/Arduino.h:3:0, from sketch\Blink.ino.cpp:1: C:\energia-1.6.10E18\hardware\energia\msp430\cores\msp430/Energia.h:339:26: fatal error: pins_energia.h: No such file or directory compilation terminated. exit status 1 Error compiling for board MSP_EXP430G2553LP. This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences. Please help me in getting rid of this error. Thank you!
  17. Hallo guys, I am working on MSP430 and want to use incremental rotary encoder to control the menu, that I will later make. I decide to try to flicker the both LED first to see if I have the right programm to take input from the rotary encoder. I have the A_Output (CLK) and B_Output (DT) on Pins 2.1 and 2.2 #include "msp430g2553.h" char c_P2IN; void main(void) { WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer P2OUT |= 0x07; P2REN |= 0x07; P1DIR |= 0x41; // Set P1.0 and P1.6 to output direction P2IE |= 0x07; // P2 (Bit0, Bit1 und Bit2) interrupt enabled P2IFG = 0x00; // P2IFG cleared _BIS_SR(LPM4_bits + GIE); // Enter LPM4 w/interrupt while(1) { c_P2IN = P2IN; //Monitoring the P2IN; } } // Port 1 interrupt service routine #pragma vector=PORT2_VECTOR __interrupt void Port_2(void) { if(P2IFG&BIT1) { if (!(c_P2IN&BIT2)) { P1OUT^= BIT6; _delay_cycles(100); P2IFG = 0x00; } } if(P2IFG&BIT2) { if (!(c_P2IN&BIT21)) { P1OUT^= BIT0; _delay_cycles(100); P2IFG = 0x00; } } } It works for maybe 4-5 turns, and then it doesn't for 2 turns, and for the next few turns it works again. Can you please give me idea how to do it?
  18. I was not able to use realloc using energia so I imported the proyect to CSS v7. It seems there is something wrong or not done about realloc under Energia. CSS v7 is using the Ti compiler instead of GCC and it has realloc and it works. But when using CCSv7 with the imported sketch, the Serial.print commands do nothing. Even If I debug step by step it just ignores Serial.print commands without showing anything anywhere. I activated the serial terminals inside CCSv7 to see the output and I also have the normal output and the console. I can work around if I find a function equivalent to micros() for the CCSv7
  19. MSP430F5529LP

    Hello, I am currently working on a project that involves the MSP430F5529LP in conjunction with the Ultimate GPS Breakout module. Right now I using SoftwareSerial in order to read the input from the sensor. The issue that I am having is that the SoftwareSerial library only works with 16MHz processors. Since my MCU runs at 25MHz. I wanted to know if there is a way to make the MCU run at 16MHz. Attached to this post is the code that I currently have running, and the error that I keep getting.
  20. I am currently trying to read a couple of parameters from onboard sensrs on TelosB, then print out on monitor which I am using PuTTY. However, I am not getting any values here. Please could some on hlep me out? I attached my code and corresponding datasheets too THank you 00std_temp.c msp430f1611.pdf telosMote.pdf
  21. Hi All First, I would like to thank @Rei Vilo for providing the Library for the Kentec (BOOSTXL-k350qvg) library with Energia. I copied the code out of https://www.youtube.com/watch?v=XyeUpk6P4kA (as I didn't find the powerpoint or pdf) and got it to work with an MSP430F5529 launchpad. (Energia 18, Windows as the Mac version doesn't work atm). Then I compiled the same code on a MSP432P401R launchpad and it runs a lot slower than on the F5529 (I assume this is a known issue, due to slow SPI speed ( https://github.com/energia/msp432-core/issues/27 ) but also doesn't look the same, the fonts are "skinnier on the MSP432. This discrepancy, I cannot explain. Another question: If I want to write a changing variable, in this case simply the x-coordinate of the touch to the screen, how do I locally clear the screen without redrawing everything (or if I want to make a bar graph that represents eg a changing value of a sensor? Do I always draw a black rectangle, then the bar/text etc? or is there a simpler way that is not immediately obvious to me now? Next step: I have to learn more about state machines to switch screens (settings), do stuff there, come back to main without the program getting into badly readable territory. Thank you very much for your help. //First steps with the Kentec Display #include "SPI.h" #include "Screen_K35_SPI.h" Screen_K35_SPI myScreen; uint16_t colours[6]; uint16_t x; uint16_t y; uint16_t z; uint8_t initFlag; void setup() { Serial.begin(9600); Serial.println(); Serial.println("hello"); Serial.println(); pinMode(RED_LED, OUTPUT); myScreen.begin(); myScreen.clear(); colours[0] = myScreen.calculateColour(255, 0, 0); colours[1] = myScreen.calculateColour(0, 255, 0); colours[2] = myScreen.calculateColour(0, 0, 255); colours[3] = myScreen.calculateColour(255, 255, 255); colours[4] = myScreen.calculateColour(255, 255, 0); colours[5] = myScreen.calculateColour(0, 0, 0); x = 0; y = 0; z = 0; myScreen.setPenSolid(true); myScreen.setFontSolid(false); myScreen.setFontSize(2); initFlag = 1; } void loop() { if (initFlag) { drawHomeScreen(); initFlag = 0; } if (myScreen.isTouch() > 0) { myScreen.getTouch(x, y, z); myScreen.gText(10, 10, btoa(x, 8), colours[3]); Serial.print(x); Serial.print(" "); Serial.print(y); Serial.print(" "); Serial.println(z); } if (z > 100) { if ((x < 160 && x > 0) && (y < 240 && y > 100)) { digitalWrite(RED_LED, HIGH); } else if ((x < 320 && x > 160) && (y > 100 && y < 240)) { digitalWrite(RED_LED, LOW); } else if ((x < 320 && x > 160) && (y > 0 && y < 100)) { drawSettingsScreen(); } } } void drawHomeScreen() { myScreen.clear(); myScreen.gText(30, 50, "TOUCH LCD DEMO", colours[4]); myScreen.rectangle(0, 100, 160, 239, colours[1]); myScreen.gText(50, 180, "ON", colours[0]); myScreen.rectangle(160, 100, 319, 239, colours[0]); myScreen.gText(235, 180, "OFF", colours[1]); myScreen.rectangle(160, 0, 319, 100, colours[2]); myScreen.gText(180, 50, "SETTINGS", colours[3]); } void drawSettingsScreen() { myScreen.clear(); myScreen.gText(10, 10, "TOUCH LCD DEMO", colours[0]); myScreen.gText(10, 30, "TOUCH LCD DEMO", colours[1]); myScreen.gText(10, 50, "TOUCH LCD DEMO", colours[2]); myScreen.gText(10, 70, "TOUCH LCD DEMO", colours[3]); myScreen.gText(10, 90, "TOUCH LCD DEMO", colours[4]); }
  22. Hi all, I am currently just trying to upload a example sketch to my MSP430G2553, all i'm getting is a compile error. The github library is; https://github.com/ibm666/ILI9341libraryforEnergiaMSP430Launchpad what im getting error wise is; In file included from D:\energia-1.6.10E18\libraries\ili9341-arduino-master\examples\drawNumber\drawNumber.ino:8:0: D:\energia-1.6.10E18\libraries\ili9341-arduino-master/TFTv2.h:33:17: fatal error: SPI.h: No such file or directory compilation terminated. Using library ili9341-arduino-master in folder: D:\energia-1.6.10E18\libraries\ili9341-arduino-master (legacy) exit status 1 Error compiling for board MSP-EXP430G2 w/ MSP430G2553. Can anyone tell me what i'm doing wrong? I can upload examples from the SPI library so im assuming it cant be that?! HELP!!! PLEASE!!!
  23. Weird characters in serial monitor

    Dear developers, I am simply using Serial.println(); command, but I get some weird characters in the serial port display window. Code : #include <Wire.h> // HIH6130 I2C address is 0x27(39) #define Addr 0x27 int tzero = 196; int tspan = 17; int hzero = 196; int hspan = 17; void setup() { Wire.setModule(1); Wire.begin(); pinMode(P1_3,OUTPUT); pinMode(P1_2,OUTPUT); pinMode(P1_6,OUTPUT); Serial.begin(9600); Serial.println("OK"); delay(300); } void loop() { unsigned int data[4]; // Start I2C Transmission Wire.beginTransmission(Addr); // Select data register Wire.write(0x00); // Stop I2C Transmission Wire.endTransmission(); // Request 4 bytes of data Wire.requestFrom(Addr, 4); // Read 4 bytes of data // humidity msb, humidity lsb, temp msb, temp lsb if (Wire.available() == 4) { data[0] = Wire.read(); data[1] = Wire.read(); data[2] = Wire.read(); data[3] = Wire.read(); } // Convert the data to 14-bits float humidity = ((((data[0] & 0x3F) * 256) + data[1]) * 100.0) / 16383.0; float temp = ((data[2] * 256) + (data[3] & 0xFC)) / 4; float cTemp = (temp / 16384.0) * 165.0 - 40.0; // Output data to serial monitor Serial.print("Relative Humidity :"); Serial.println(humidity); Serial.println(" %RH"); Serial.print("Temperature in Celsius :"); Serial.println(cTemp); Serial.println(" C"); Serial.println("=============================================================== "); int VcTemp = map(cTemp, -5, 125, tzero, tspan ); int vhumidity = map (humidity, 0, 100, hzero, hspan); analogWrite(P1_2, VcTemp); analogWrite(P1_6, vhumidity); delay(1000); } Serial Output : (in one single line, means it keeps printing these characters in just one line on and on.picture : Thax.
  24. Energia running very slow

    I don't know why but my energia is running very slow. All the other apps are running at good speed. I am using windows 10 64-bit version. I am using Energia V17. Pictures from my task manager are attached here, please take a look at it. Thax and peace.
  25. Hello everyone, I have a project which requires GPS + Wi-fi capability and fastest clock speed mcu possible. For GPS capability I came across CC4000 which seems alright, but I'm confused on which launchpad board to select that has Wifi capability also. I have worked on Arduino but new to TI's Launchpad. Please suggest me for what should I buy. link for the CC4000 gps module kit : http://www.ti.com/tool/cc4000gpsem?keyMatch=gps&tisearch=Search-EN-Everything#descriptionArea
×