Jump to content

Search the Community

Showing results for tags 'msp430g2553'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • 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


There are no results to display.

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start



Website URL





Found 150 results

  1. Hey Guys, I am new user of Energia. Currently, I am using MSP430G2553 chip to write data in SD card. I found code that works on USCIB0 SPI communication. Here is the link for the code. This code works completely fine. But, I wanted to know how can I change the code to use USCIA0 SPI instead of USCIB0 to do this? I tried going into pins_energia.h and just changing the pins. But it didn't work. Can anybody help me with this problem? Here is port assignment for different SPI buses USCIB0: (Code is using it) P1.6 -> master in slave out (MISO) P1.7 -> master out slave in (MOSI) P1.4 -> slave transit enable P1.5 -> clock input USCIA0: (This is what we want to use) P1.1 -> master in slave out (MISO) P1.2 -> master out slave in (MOSI) P1.5 -> slave transit enable P1.4 -> clock input
  2. Hi, everyone. I want to do a light web server (show temperature value and port control) with MSP430g2553 and ENC28j60 Breakout Module. At this forum, there are many examples about this issue using Energia lib. But I want to use IAR Embedded Workbench as IDE, not using Energia lib.So probably MSP430 and ENC28j60 communicate using SP?. How I do this project at IAR Embedded Workbench.Thank you
  3. Hi guys. For those who like 7-segment led displays, here is easy to use booster pack with digits! It has driver ic to control display and read buttons using I2C. Also is can be topped up with on board EEPROM, TMP102 sensor, Seiko RTC Crystal and 3.3V regulator. And this booster pack can be used standalone also. If you like it and want to get one, please support at Tindie.com Pictures are from prototype.
  4. Hi, everyone! (I'm completely newbie, so excuse me if my questions are stupid) I made my first "device" (pic related). It works fine for a short period of time (like an hour or something like that), but then it goes crazy: led start blinking all the time and device don't respond when I change temperature. Could you please tell me, what's wrong? (I tried both - CR3024 battery and 3.3V power supply) #include <msp430.h> #include <RTCplus.h> RealTimeClock rtc; //initialise the global RealTimeClock instance int sensorPin = A3; // select the input pin for the potentiometer int ledPin = P1_1; // select the pin for the LED int sensorValue = 0; #ifdef RTCWITHDATE const char Months[]="JanFebMarAprMayJunJulAugSepOctNovDec"; #endif void DisplayTime() //routine to format & print the time to the serial port { #ifdef RTCWITHDATE const char * MonthText; #endif if (rtc.RTC_hr<10) Serial.write('0'); Serial.print(rtc.RTC_hr); Serial.write(':'); if (rtc.RTC_min<10) Serial.write('0'); Serial.print(rtc.RTC_min); Serial.write(':'); if (rtc.RTC_sec<10) Serial.write('0'); Serial.print(rtc.RTC_sec); #ifdef RTCWITHDATE MonthText=Months+(rtc.RTC_month-1)*3; Serial.write(32); if (rtc.RTC_day<10) Serial.write(32); Serial.print(rtc.RTC_day); Serial.write(32); Serial.write(*(MonthText)); Serial.write(*(MonthText+1)); Serial.write(*(MonthText+2)); Serial.write(32); Serial.print(rtc.RTC_year); #endif Serial.println(" "); } void setup() { Serial.begin(9600); //initialise Serial pinMode(ledPin, OUTPUT); rtc.begin(); //initialise the RTC rtc.Set_Time(23,59,0); //Set the time to 23:56 #ifdef RTCWITHDATE rtc.Set_Date(2013,2,28); //Set the date to 28 Feb 2013 #endif }; void loop() { DisplayTime(); //call our routine that outputs the time digitalWrite(ledPin, LOW); if (rtc.RTC_min < 5) { // CRYSTAL TEST //digitalWrite(ledPin, HIGH); //delay(25); //digitalWrite(ledPin, LOW); //delay(1975); } else { // THERMISTOR TEST sensorValue=analogRead(sensorPin); digitalWrite(ledPin, HIGH); // turn the LED on (HIGH is the voltage level) delay(25); digitalWrite(ledPin, LOW); // turn the LED off by making the voltage LOW delay(sensorValue); }; }; RTC_ISR(void) { rtc.Inc(); // Update chunks }; (The overall purpose of this device is just to log temperature on SD card)
  5. Hi Everyone, I am using LED blinking program of Arduino on MSP430. I have configured compilers etc. Now the led turns on but it is not blinking. I have tried changing delay/sampling rate. Can someone point me the issue here?
  6. Hello, I am trying to have my MSP430G2553 on a launchpad (Rev.1.5) show anything on the serial monitor using the following code: void setup() { Serial.begin(9600); } void loop() { Serial.println("Test"); delay(1000); } I have downloaded the drivers http://energia.nu/Guide_Windows.html I have switched the jumpers http://energia.nu/img/LaunchPadMSP430G2553-V1.5.jpg I'm just not sure what is wrong. I can load the Blink example and get it to work and even making it do other things but when it comes to reading values and serial the launchpad doesn't want to do anything.
  7. Hi! I tried to connect GPRS Shield from Arduino to msp430g2553 with SoftwareSerial library. But I faced with the problem. When the size of sketch exceeds 5590 bytes, global variables do not work. I just add one variable (global string) and the program stops executed correctly. Here is the code: /* When new serial data arrives, this sketch adds it to a String. When a '!' character is received, the loop prints the string "Hello world!" */ #include <SoftwareSerial.h> SoftwareSerial mySerial(P2_0, P1_5); String inputString = ""; // a string to hold incoming data boolean stringComplete = false; // whether the string is complete String string1 = "Hello "; String string2 = "Just string"; String string3 = "Another string"; //String string4 = "Another string"; // If we uncomment this line, code will not work void setup() { Serial.begin(9600); mySerial.begin(19200); } void loop() { if (stringComplete) //if the incoming character is a '!' { inputString = ""; stringComplete = false; Serial.print(string1); Serial.println("world!"); } } /* SerialEvent occurs whenever a new data comes in the hardware serial RX. This routine is run between each time loop() runs, so using delay inside loop can delay response. Multiple bytes of data may be available. */ void serialEvent() { while (Serial.available()) { char inChar = (char)Serial.read(); inputString += inChar; if (inChar == '!') { stringComplete = true; } } } Somebody knows where is my problem? SoftwareSerialEnergia.ino
  8. I have the MSP430G2553 on the launchpad and a CC2530DK_EM on an EM Adapter BoosterPack (BOOST-CCEMADAPTER). I was wondering what is the best way to code these devices. Should I be using CCStudio or Energia, and where can I find more information about programming these devices so they can use Zigbee communication?
  9. Hi all, I was playing around with the MSP430G2553 and the UART at the weekend, then remembered I had a cheap HC06 bluetooth module. The result being a basic Android app that you can control your launchpad using voice control, it's far from polished but a bit of fun all the same Project tutorial. C code and Android App http://coder-tronics.com/msp430-voice-control-over-bluetooth/ Video demonstration https://www.youtube.com/watch?v=8Z5ixK30Ddc Cheers, Ant
  10. EDIT: Now on Tindie I have 2 new boards coming soon: GPS BoosterPack and standalone board. They will (most likely) come with pre-soldered and tested GPS module, and possibly as a kit. Standalone board has a socket and all necessary part to use it with MSP430G2553. The price of BP is $22, SA board will cost ~$25 (MCU not included.)
  11. hello friends, I have a big problem with small MSP430G2553, I would like to make a capture samples at P1.2 of the microcontroller, but my code does not work, what am I doing wrong, can someone help me. My code: unsigned int adcValue = 0; int i, BPM[10]; int maior = BPM[0]; int menor = BPM[0]; int contagem =0; /*****************************************************************/ /********* LOCAL FUNCTIONS *********/ /*****************************************************************/ void ADC_ConfigAnalogInput(void){ P1DIR2IN(BIT0); ADC10CTL0 &= ~(ENC); ADC10CTL1 = (INCH_0 + ADC10DIV_0); ADC10CTL0 = (SREF_0 + ADC10SHT_3 + ADC10ON + ADC10IE); ADC10AE0 |= BIT0; ADC10CTL0 |= ENC; } void ADC_ReadAnalogInput(void){ ADC_ConfigAnalogInput(); while (ADC10CTL1 & BUSY); // WAIT IF BUSY ADC10CTL0 |= ADC10SC; __bis_SR_register(CPUOFF + GIE); // LPM0, ADC10_ISR will force exit adcValue = ADC10MEM; } /* * */ unsigned int ADC_GetValue(void) { return adcValue; for (j=0;j<timer; j++){ BPM[j]=adcValue; if(maior < BPM[i]){ maior = BPM[j]; } if(menor > BPM[j]){ menor = BPM[j]; } } if(contagem>59) contagem =0; else contagem++; } /*****************************************************************/ /********* END *********/ /*****************************************************************/
  12. Hello guys, I'm building a Holter ECG, and would like put one symbol on the LCD. Need to inform the user the level of charge that the battery has. And I would put the battery symbol so that information was given. But I am not getting, someone can give me an example of how I can put a symbol in a particular line of lcd
  13. I loved the eZ430-Chronos. On the Internet many projects made ??on the basis of this development tool. But one thing I did not like is that you need a computer to manage their programs. And without a computer Chronos watch can not control anything. So I bought Anaren CC110L RF BoosterPack (868 Mhz). But this kit does not work with Chronos. I looked a lot of information and code on this forum and on the internet. But always something was wrong, I did not want to rewrite the SimpliciTi protocol. And finally... I did emulation of RF USB dongle. The project uses the unmodified Chronos Control Centre and firmware of sportswatch. But blurobin and wireless firmware update does not work. To me, this part is not important. I used code composer studio. And now I have a working SimpliciTI on msp430g2553 with CC110L. And Run many examples which are in SimpliciTi installation directory. Here is a video how it works. p.s. Thanks to @gwdeveloper, with post SimpiciTI Tutorial for CC2500 p.p.s. Project attached CCS SimpliciTI MSP430 CC110L Anaren busterpack.rar
  14. First of all a question, I just have to change the jumpers J3 connections if I use serial communication right? Hello, I've a project where the msp430g2553 makes an access control by password. The launch pad receives a password from a matrix keypad, and turns on a motor to lock the door, or to lock the door if a button is pressed from inside the "room" The project works fine, but sometimes the dc motor doesn't stop working, and it is happening randomly. can somebody help me? sorry for my terrible english the code and a circuit layout: /*lock door control*//* matrix keypad: S
  15. Hai I'm a complete newbie to Energia and MSP430. I would like to get some help on a problem that I'm facing while interfacing MSP430 launchpad using I2C(it's not "a" problem, rather it is "THE" problem). As mentioned above I'm using a MSP430-g2553 launchpad ver1.5 and currently I'm working on a project that requires interfacing two MSP430s with a Raspberry Pi. The protocol that I've chose is I2C due to it's simple hardware requirement and it's support for many devices at the same time. But then till now interfacing two MSP430s has been a faliture. I tried interfacing two MSPs on two launchpads. I've used the programs given as the example under the Wire menu (both the master sender-slave reciever and the master reciever-slave sender) and also another one that I've used with arduinos. I've tried connecting the two MSPs on the launchpads directly without pullups, with pullups on SCL line, SDA line and also with pullups on both the lines but in vain. And yes I've connected the ground pins of both the launchpads together. Again yes, both the boards with the MSPs work fine with normal i/o programs, pwm programs and serial communication programs(with the computer). Also I tried to connect each MSP to a Raspberry Pi and to a bus pirate(both of them working perfectly with an arduino), with negetive results. Had I missed something that I should've done..? Or am I doing something that is absolute stupid...? There are a couple of jumpers on the launchpad like RX,TX,test etc etc. Should I do something with them(based on my readings what I've understood is that they are used in the case of serial communication and not I2C). If anyone has interfaced MSPs together, please if you can help, it would be great. Anything like hints, tips, suggestions, advice etc etc(negetive or positive), anything, would be highly appriciated. Thanks in advance
  16. Can I use AIR430Boost Library for CC2500 module with MSP430G2553. Or do I need to change it? I tried to run WirelessControl example but nothing happened. I hooked up the module to the same pins as of CC110L. I am using Energia 0101E0012.
  17. Hello everyone ! I started to use Energia to create simple projects using MSP430G2553 LaunchPad and somehow I've succeded until now! Today I encountered a problem as I was trying to read values from a HIH-4000-001 humidity sensor.The sensor is powered with 5V and can return a value ranging from 0.826 V to 3.976V coresponding to 0 - 100 % RH. Because 3.976 V is much more than the MSP430 can manage I used a 1:2 resistive divider to scale down the signal.Moreover the sensor needs an load resistance of minimum 80kohms so the resistors I used for my divider were R1= 36kohms and R2=68kohms.NOW comes the error : Regarding that , the RH level is normally around 50% that would corespond to a value of 1.3 V after the scale-down so in terms of ADC readings that would be around 445 and that is the value I get but, if I take multiple readings 1 sec apart of each other this is what happens : 445 442 443 0 0 0 443 440 ..................... Why 0 ? Can anyone tell me ? If I measure for some period of time the output of the sensor, the multimeter indicates a constant value of 1.3 V so I assume that the ADC is the problem! Please help me solve this issue as I need to create a functional project for my Bachelor Degree ! Thanks in advance !
  18. chicken


    Just came across this Kickstarter that features the MSP430G2553 LaunchPad and Energia: PicassoBot, the Portrait Sketching Robot Kit. https://www.kickstarter.com/projects/educatedrobot/picassobot-the-portrait-sketching-robot-kit
  19. Hi All, I am using Energia 0101E0012, MSP430G2553, Launchpad G2 Rev 1.4, on a mac. When I run the example MspFlash program, it appears like I erase and write to flash correctly, but when I try to read the "Hello World" written into flash, the only thing that prints out is
  20. ive compiled and uploaded my code (below) and when plug my msp430g2553 in it goes to the programmed angle it should when plugged in, but when i run the exe that is supposed to change its angle it doesnt do anything. the exe is programmed to connect to com4, and the msp430 application uart is set to com4. i know the exe can detect it because it wont run unless it can, it just isnt responding. im am using energia 0101E0010 to compile and upload. any help would be appreciated. here is the code: #include <Servo.h> Servo myServo; const int servoPin = 9; // the pin the servo is connected to int val = 0; // a value accumulated from data on the serial port int angle = 90; // the current angle of the servo void setup() { Serial.begin(9600); myServo.attach(servoPin); myServo.write(angle); // center the servo } void loop() { if ( Serial.available()) { char ch = Serial.read(); if(ch >= '0' && ch <= '9') // is ch a number? val = val * 10 + ch - '0'; // yes, accumulate the value else if(ch == '-') // is this the minus sign? { angle = angle - val; if(angle < 0) angle = 0; myServo.write(angle); // write the new angle val = 0; } else if(ch == '+') // is this the plus sign? { angle = angle + val; if(angle > 180) angle = 180; myServo.write(angle); // write the new angle val = 0; } } }
  21. Hi Everyone, I have been looking for about an hour online and haven't been able to find the answers to these questions. - Can I use floating point with the msp4302553 ? the watch expression on CCS don't seems to like floating point for sure. - Can I use math.h to do trigonometry calculus on the msp430g2553 ? Let me tell you guys what I am trying to do so that it is more clear: I am scanning a signal with an ADC. I would like to do an atan() on the signal and output the signal with an DAC. Right now I can scan the signal and send it to the DAC. This works well. But I can't get the trigonometric conversion to work. Is it possible to do it? And if yes could I get a little help from you guys ? Thanks in advance for your help. Thomas PS: I saw about these Qmath functions that came out recently but couldn't get it to work either http://www.ti.com/tool/MSP430-iqmathLIB?DCMP=ep-mcu-msp-iqmath-en&HQS=ep-mcu-msp-iqmath-pr-sw2-en
  22. Setup : Portable PC Windows XP Launchpad MSP-EXP430G2 Rev 1.5 Board Program : Eamples/Basic Blink Compiler : Energia Board : Launchpad w/ MSP430g2553 Serial Port : Port 3 Processor Fitted to Board : M430G2553 I downloaded the Energia compiler today and tried to run it for the first time with the setup above . Compilation ok until I got the following linker error c:/program files/energia/energia-0101e0011/hardware/tools/msp430/bin/../lib/gcc/msp430/4.6.3/../../../../msp430/bin/ld.exe: cannot open linker script file memory.x: No such file or directory collect2: ld returned 1 exit status It looks like it cannot find the memory.x script file . I found a memory .x file in the following directory - C:\Program Files\Energia\energia-0101E0011\hardware\tools\msp430\msp430\lib\ldscripts\msp430g2553 I compiled it into the same path as the linker - C:\Program Files\Energia\energia-0101E0011\hardware\tools\msp430\msp430\bin I still got the same error . For some reason the linker is not finding the memory.x file it seems Aslo, I think the Com ports are not seeing Launch Pad board. I get the same Com port list when I select Tools --> Serial Port when the LaunchPad board is plugged in and when it is unplugged . Ther are no Com ports on this portable PC normally . Anyone know what I can do to resolve this issue ?
  23. hi all, I'm trying to use an Ethernet module that i bought called "Ethernet LAN Module for Arduino / microcontrollers with SPI (ENC26J80)". I found a few example for it for different MSP430's but i cant get it to work. Does anyone know how to make it work? witch pins to connect and example code would be great. thanks, Ofer.
  24. Hello, I try to comunicate with ADXRS450 via SPI. But receive data is always is same. All detail and code: #include "msp430.h" #include <signal.h> #define CS_DIS {P1DIR|=BIT3;P1OUT|=BIT3;} #define CS_ENA {P1DIR|=BIT3;P1OUT&=~BIT3;} void SPI_Write(unsigned char Data_for_write); void SPI_Disable(void); void SPI_Init(void); int SPI_Read(void); void ADXRS450_Init(void); unsigned char Byte; long Measure_byte_first; long Measure_byte_second; long Measure_byte_third; long Measure_byte_four; long Measurement; int main() { WDTCTL = WDTPW + WDTHOLD; CS_DIS; SPI_Init(); __delay_cycles(10000); ADXRS450_Init(); while((UCB0STAT&UCBUSY)); for(; { CS_ENA; while((UCB0STAT&UCBUSY)); SPI_Write(0x20); SPI_Write(0x00); SPI_Write(0x00); SPI_Write(0x00); while((UCB0STAT&UCBUSY)); CS_DIS; __delay_cycles(50000); CS_ENA; while((UCB0STAT&UCBUSY)); SPI_Write(0x00); Measure_byte_first = UCA0RXBUF; SPI_Write(0x00); Measure_byte_second = (UCA0RXBUF<<8); SPI_Write(0x00); Measure_byte_third = (UCA0RXBUF<<8); SPI_Write(0x00); Measure_byte_four = (UCA0RXBUF<<8); while((UCB0STAT&UCBUSY)); CS_DIS; Measurement = (Measure_byte_first | Measure_byte_second | Measure_byte_third | Measure_byte_four); Measurement = (int)((Measurement & 0x3FFFC00) >> 10); Measurement = ((Measurement) / 80); __delay_cycles(50000); } } void SPI_Init(void) { P1SEL = BIT1 + BIT2 + BIT4; P1SEL2 = BIT1 + BIT2 + BIT4; UCA0CTL1 = UCSWRST; UCA0CTL0 |= UCMSB + UCMST + UCSYNC + UCCKPL; // 3-pin, 8-bit SPI master UCA0CTL1 |= UCSSEL_2; // SMCLK UCA0BR0 |= 0x02; // /2 UCA0BR1 = 0; UCA0MCTL = 0; // No modulation UCA0CTL1 &= ~UCSWRST; // **Initialize USCI state machine** } void SPI_Write(unsigned char Byte) { while (!(IFG2 & UCA0TXIFG)); UCA0TXBUF = Byte; } void SPI_Disable(void) { UCB0CTL1 |= UCSWRST; } int SPI_Read(void) { while (!(IFG2 & UCA0RXIFG)); UCA0TXBUF = 0x00; return UCA0RXBUF; } void ADXRS450_Init(void) { __delay_cycles(150000); CS_ENA; SPI_Write(0x20); SPI_Write(0x00); SPI_Write(0x00); SPI_Write(0x03); CS_DIS; __delay_cycles(150000); CS_ENA; SPI_Write(0x20); SPI_Write(0x00); SPI_Write(0x00); SPI_Write(0x00); CS_DIS; __delay_cycles(250000); CS_ENA; SPI_Write(0x20); SPI_Write(0x00); SPI_Write(0x00); SPI_Write(0x00); CS_DIS; __delay_cycles(250000); CS_ENA; SPI_Write(0x20); SPI_Write(0x00); SPI_Write(0x00); SPI_Write(0x00); CS_DIS; __delay_cycles(250000); }
  25. serbay


    Hello everyone.I am trying to learn I2C device adress of my MPU6050 sensor by using Ardunio I2C scan code in Energia.But although the code doesn't give me any error,on serial monitor I see all registers from 0x01 to 0x7E.I should see one register but I see all register on serial monitor like below... Scanning... I2C device found at address 0x01 ! .... .... .... I2C device found at address 0x7D ! I2C device found at address 0x7E ! done The code that I have used is http://playground.arduino.cc/Main/I2cScanner. I am sure about connections between my sensor and my msp430g2553.I used 4.7k pull up resistors with SDA and SCL pins. What do you think about my problem ? Thanks in advance.
  • Create New...