Jump to content

Search the Community

Showing results for tags 'launchpad'.



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.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Location


Interests


Sparkfun


Github

Found 152 results

  1. I would like to use COOCOX compiler with Stellaris and Tiva Launchpad. I would like to get sme sample projects or guidelines to develop the hello world, usb, serial interface to use for the Stellaris and Tiva Launchpads. Also what flash interface can I use?
  2. orso2020

    simulink/launchpad integration

    I'm trying to control a hexapod, 18 servos, no other sensors for now, using the matlab/simulink interface and a launchpad. Has anyone done this that may know of a beginner walk through for like a robtic arm, or a simple rolling bot? I've already done a simple one using Arduino, but I'm fond of the Launchpad.
  3. Another quick experiment w/ the CircuitCo Educational BoosterPack. Measures capacitance (< 1nF) and inductance using LC tank frequency measuring method. Measures capacitance (> 1nF) with time-to-charge method. Measures (or rather attempts to measure) capacitor ESR values by pulse injecting currents through capacitors. Bare minimal component count, experimental hookup. I called this a "Meter Template" instead of a "Meter" as I consider this hookup as a base to develop a "Full" meter. There are quite a few things "missing" when compare w/ other common designs you can find on the internet, that affects accuracy and usability. Breadboard is no good for capacitance measuring, and LC tanks. Instead of using transistors to source and sink currents through test subjects, I drive them direct (close to 30mA on one pin). No relays to switch inputs, have to use your hand. No relays / switches to map multiple ranges components. One range for all (well, we have high and low capacitance). And it's fully functional with not-too-bad accuracy. Schematic and additional write-ups will follow.
  4. Hello, Lastly I have whipped up a state machine based protocol for sending small frames using 9-bit address mode. Ft232rl, wrapped up in the MMusb232rl board, doesn't support this mode directly, so I am leaning on changing the parity bit to mark or space to simulate the address bit on the PC side. Everything works as a charm when I single step the program on the PC. Just on a sidenote, this program is coded in Qt using QtSerialPort. However, when I let the program run as it normally would in a production environment, the uC only receives several bytes out of the whole packet. I have observed the following happen. After reset, the uC receives 4 bytes out of 7. Then, I send the packet again, the uC gets 2/7. After that only 1/7th of every packet makes it to the uC, so only an address byte is being received and the state machine waits in the next state, which is 'wait for the number of parameters'. I think the most simple causes like incorrect wiring or voltage level mismatch can be ruled out right away, because single-stepping the PC program makes all the bytes come through successfully. That might suggest a baudrate mismatch, but I have checked hundreds of times and 9600 is used on both ends. That leaves, among others, a broken driver in the field. Right now I am using Linux kernel 3.9.9. I have also tried replacing literally every element of the system, including the 232 chip, the launchpad and moving the 232 chip over a breadboard to no avail. Unfortunately, I don't have access to neither a logic analyzer nor an oscilloscope. Has any of you encountered a similar problem? Below are the most important code snippets: static inline void HW_UARTinit(void) { //---- Select and initialize pin to control RS485 transceiver direction ---------------- P1DIR |= BIT0; P1OUT &= ~BIT0; // Set RS485 transceiver to receive. //assign P1.1 and P1.2 to be used as Rx and Tx P1SEL |= BIT1 + BIT2; P1SEL2 |= BIT1 + BIT2; //no parity, //LSB first, //8-bit data, //one stop bit, //address-bit multiprocessor mode, //async mode UCA0CTL0 |= UCMODE_2; //select clock source - SMCLK, //erroneous characters rejected and UCAxRXIFG is not set, UCA0CTL1 |= UCSSEL_2; //example prescaler settings: //minimal error rate without external oscillator //BRCLK == SMCLK == 1MHz //baud == 9600 //UCBRx == 104 //UCBRSx == 1 //UCBRFx == 0 UCA0BR0 = 104; UCA0BR1 = 0; UCA0MCTL = UCBRS_1; //release USCI for operation UCA0CTL1 &= ~UCSWRST; //enable Rx interrupt IE2 |= UCA0RXIE; } #pragma vector=USCIAB0RX_VECTOR __interrupt void USCIAB0RX_ISR(void){ //ISR(USART_RXC_vect) stateTransition(); } void stateTransition(void){ uint8_t receivedByte = 0; if (HW_UARTaddress()){ vars.state = AWAIT_REQUEST_FETCH_ADDRESS; } // When TXC interrupt it may cause some problems and delays if(vars.state < VALIDITY_CHECK){ receivedByte = HW_UARTget(); lumpBytesRcvd++; } ... } inline static void _INIT(void) { ... //DCO 1MHz if (CALDCO_1MHZ == 0xFF || CALBC1_1MHZ == 0xFF) { //calibration data was erased! we can't proceed while (true); } else { BCSCTL1 = CALBC1_1MHZ; DCOCTL = CALDCO_1MHZ; } //MCLK - default DCO/1 //SMCLK - default DCO/1 } HW_UARTaddress() returns true if a last received byte has the address bit set, otherwise returns false. My last idea is that the internal RC oscillator is not stable enough to allow error-free reception of a few subsequent bytes, but that's not so likely. Thanks to everyone who has taken time read this post. Any help will be much appreciated.
  5. hi guys, i am new here. i am a linux user, so i have my inhibitions of going back to windows just so that this kit could work as i beleive it is very much possible in windows too. so the thing is.. i used CCSv5.2 to make a blinking LED Project and used the 'debug' option to get the code into the device. my device is msp430 Launchpad. the error message is as folows. //------------------------------------------ Error initializing emulator: No USB FET was found //------------------------------------------ to look into things i disconnected the Launchpad from the USB and reconnected it. the kernel message log gave the following message. //---------------------------------------------------------------------------------------------------------- [ 3077.760134] usb 3-4: new full-speed USB device number 3 using xhci_hcd [ 3077.796775] usb 3-4: New USB device found, idVendor=0451, idProduct=f432 [ 3077.796783] usb 3-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 3077.796788] usb 3-4: Product: Texas Instruments MSP-FET430UIF [ 3077.796792] usb 3-4: Manufacturer: Texas Instruments [ 3077.796795] usb 3-4: SerialNumber: 2EFF426C50144B46 [ 3077.797050] usb 3-4: ep 0x82 - rounding interval to 1024 microframes, ep desc says 2040 microframes [ 3077.802856] cdc_acm 3-4:1.0: This device cannot do calls on its own. It is not a modem. [ 3077.802865] cdc_acm 3-4:1.0: No union descriptor, testing for castrated device [ 3077.802891] cdc_acm 3-4:1.0: ttyACM0: USB ACM device [ 3087.862748] hid-generic 0003:0451:F432.0003: usb_submit_urb(ctrl) failed: -1 [ 3087.862790] hid-generic 0003:0451:F432.0003: timeout initializing reports [ 3087.863722] hid-generic 0003:0451:F432.0003: hiddev0,hidraw0: USB HID v1.01 Device [Texas Instruments Texas Instruments MSP-FET430UIF] on usb-0000:00:14.0-4/input1 //------------------------------------------------------------------------------------------------------------- and when i run the lsusb command. //----------------------------------------------------------------------------------------------------------------- Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 003 Device 003: ID 0451:f432 Texas Instruments, Inc. eZ430 Development Tool Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 005: ID 15d9:0a4f Trust International B.V. Bus 001 Device 003: ID 8087:07da Intel Corp. Bus 001 Device 004: ID 147e:1002 Upek Bus 002 Device 003: ID 05ca:1823 Ricoh Co., Ltd //-------------------------------------------------------------------------------------------------------------------- is the msp430 Launchpad an ez430 development tool? i didnt knw that.... also... if it shows it as a device.. why cant i connect to it.. anybody has any idea... if any more data is needed, i am happy to provide that too...
  6. When I run mspdebug from the command line I get this failure: ____ Microsoft Windows [Version 6.0.6002] Copyright © 2006 Microsoft Corporation. All rights reserved. C:\Users\Mark>mspdebug You need to specify a driver. Try --help for a list. C:\Users\Mark>mspdebug rf2500 MSPDebug version 0.20 - debugging tool for MSP430 MCUs Copyright © 2009-2012 Daniel Beer <dlbeer@gmail.com> This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. rf2500: failed to open RF2500 device. ____ But mspdebug can see the Launchpad: _______ C:\Users\Mark>mspdebug --usb-list Devices on bus 000: 000:000 0451:f432 eZ430-RF2500 [serial: 56FF42047150410A] C:\Users\Mark> ___________________________ Running testlibusb-win.exe gives me this: ___________ DLL version: 1.2.6.0 Driver version: 1.2.6.0 bus/device idVendor/idProduct bus-0/\\.\libusb0-0001--0x0451-0xf432 0451/F432 - Manufacturer : Texas Instruments - Product : MSP430 Application UART - Serial Number: 56FF42047150410A bLength: 18 bDescriptorType: 01h bcdUSB: 0110h bDeviceClass: 00h bDeviceSubClass: 00h bDeviceProtocol: 00h bMaxPacketSize0: 08h idVendor: 0451h idProduct: F432h bcdDevice: 0100h iManufacturer: 1 iProduct: 5 iSerialNumber: 3 bNumConfigurations: 1 wTotalLength: 53 bNumInterfaces: 1 bConfigurationValue: 1 iConfiguration: 0 bmAttributes: 80h MaxPower: 50 bInterfaceNumber: 0 bAlternateSetting: 0 bNumEndpoints: 3 bInterfaceClass: 2 bInterfaceSubClass: 2 bInterfaceProtocol: 1 iInterface: 5 bEndpointAddress: 82h bmAttributes: 03h wMaxPacketSize: 64 bInterval: 255 bRefresh: 0 bSynchAddress: 0 bEndpointAddress: 03h bmAttributes: 02h wMaxPacketSize: 64 bInterval: 255 bRefresh: 0 bSynchAddress: 0 bEndpointAddress: 83h bmAttributes: 02h wMaxPacketSize: 64 bInterval: 255 bRefresh: 0 bSynchAddress: 0 ______________ So it looks like libusb-win32 is installed right. It also looks right in Device Manager. This is on Vista64. The Launch pad has the 2553 installed but I backed up to the original chip that I had used under gdb in a previous msp430 tool chain I know worked, same error. The mspdebug I am using is from the pre compiled MSP chain XPG provides, just to limit the variables. I have tried forcing the serial number but that made no difference. Do I need another version of mspdebug than the current (0.20?) that's in the provided chain? Any ideas on what to do next? If there are any logs that would be useful in figuring this out just ask. After going back over the install several times and reading posts till my eyes are blurry I am still stumped. Help! Mark
  7. Hello, I am having big troubles with running I2C on my stellarpad. I am total noob to this topic so i want to ask if anyone can explain it. I have found that Stellarpad has 4 chanells. I have got some questions. 1. How to wire an I2C device properly. Do i need pullup resistors or should i use pinMode on INPUT_PULLUP ? 2. How i can ensure that i connected the device properly ? I tried I2C scanner from arduino webside, but I always recieve message device found on each adress, with nothing connected to board. Here is the I2C scanner code : // -------------------------------------- // i2c_scanner // // Version 1 // This program (or code that looks like it) // can be found in many places. // For example on the Arduino.cc forum. // The original author is not know. // Version 2, Juni 2012, Using Arduino 1.0.1 // Adapted to be as simple as possible by Arduino.cc user Krodal // Version 3, Feb 26 2013 // V3 by louarnold // Version 4, March 3, 2013, Using Arduino 1.0.3 // by Arduino.cc user Krodal. // Changes by louarnold removed. // Scanning addresses changed from 0...127 to 1...119, // according to the i2c scanner by Nick Gammon // http://www.gammon.com.au/forum/?id=10896 // Version 5, March 28, 2013 // As version 4, but address scans now to 127. // A sensor seems to use address 120. // // // This sketch tests the standard 7-bit addresses // Devices with higher bit address might not be seen properly. // #include <Wire.h> void setup() { Wire.begin(2); Serial.begin(9600); Serial.println("\nI2C Scanner"); } void loop() { byte error, address; int nDevices; Serial.println("Scanning..."); nDevices = 0; for(address = 1; address < 127; address++ ) { // The i2c_scanner uses the return value of // the Write.endTransmisstion to see if // a device did acknowledge to the address. Wire.beginTransmission(address); error = Wire.endTransmission(); if (error == 0) { Serial.print("I2C device found at address 0x"); if (address<16) Serial.print("0"); Serial.print(address,HEX); Serial.println(" !"); nDevices++; } else if (error==4) { Serial.print("Unknow error at address 0x"); if (address<16) Serial.print("0"); Serial.println(address,HEX); } } if (nDevices == 0) Serial.println("No I2C devices found\n"); else Serial.println("done\n"); delay(5000); // wait 5 seconds for next scan } Thanks for help.
  8. rycco1426459928

    I2C on Stellaris Launchpad

    Hi, i am having problem with running I2C on stellaris launchpad. I am using this code but i get message device found from each adress, can someone explain me how it works and how should i connect it ? Thanks. Here is the code : // -------------------------------------- // i2c_scanner // // Version 1 // This program (or code that looks like it) // can be found in many places. // For example on the Arduino.cc forum. // The original author is not know. // Version 2, Juni 2012, Using Arduino 1.0.1 // Adapted to be as simple as possible by Arduino.cc user Krodal // Version 3, Feb 26 2013 // V3 by louarnold // Version 4, March 3, 2013, Using Arduino 1.0.3 // by Arduino.cc user Krodal. // Changes by louarnold removed. // Scanning addresses changed from 0...127 to 1...119, // according to the i2c scanner by Nick Gammon // http://www.gammon.com.au/forum/?id=10896 // Version 5, March 28, 2013 // As version 4, but address scans now to 127. // A sensor seems to use address 120. // // // This sketch tests the standard 7-bit addresses // Devices with higher bit address might not be seen properly. // #include <Wire.h> void setup() { Wire.begin(); Wire.setModule(2); pinMode(5,INPUT_PULLUP); pinMode(6,INPUT_PULLUP); Serial.begin(9600); Serial.println("\nI2C Scanner"); } void loop() { byte error, address; int nDevices; Serial.println("Scanning..."); nDevices = 0; for(address = 1; address < 127; address++ ) { // The i2c_scanner uses the return value of // the Write.endTransmisstion to see if // a device did acknowledge to the address. Wire.beginTransmission(address); error = Wire.endTransmission(); if (error == 0) { Serial.print("I2C device found at address 0x"); if (address<16) Serial.print("0"); Serial.print(address,HEX); Serial.println(" !"); nDevices++; } else if (error==4) { Serial.print("Unknow error at address 0x"); if (address<16) Serial.print("0"); Serial.println(address,HEX); } } if (nDevices == 0) Serial.println("No I2C devices found\n"); else Serial.println("done\n"); delay(5000); // wait 5 seconds for next scan }
  9. Yuri

    Master/Slave? GUI?

    Hello! I'm back with another sad question. Simple question though. Now that I seem to have a working UART interface, I have been wondering how to connect a launchpad to a GUI. I would like to write this in C#. I have the concept that it would be serial communication, so the launchpad would be the "Master" and the outside program would be considered the "Slave" right? How does one go about something as simple as this? I know how to simply create a serial port program in c#, I just seem to not understand how to set the LaunchPad up as the master. Does that make sense? It seems like the code from TI is a bit wonky. I apologize. I am still definitely quite lost with hardware -> software programming.
  10. https://estore.ti.com/ek-tm4c123gxl-cc3000boost.aspx https://estore.ti.com/msp-exp430g2-cc3000boost.aspx Looks like bundle is cheaper than buying 2 separately
  11. Hi, I have a Launchpad Rev1.4 and had ordered a few samples of MSP430G2553 from TI. I am not being able to program the 2553 with energia. It gives me back the following errors: Erasing... tilib: MSP430_Erase: Could not read device memory (error = 6) ihex: error on line 37 tilib: MSP430_Run: Could not read Enhanced Emulation Module register (error = 20) I have cross-jumped my RX/TX wires as suggested on this page https://github.com/energia/Energia/wiki/Hardware. However I am still not able to program it. Currently I wish to send the simple blink example to it which is as follows :- void setup() { pinMode(RED_LED, OUTPUT); } void loop() { digitalWrite(RED_LED, HIGH); // set the LED on delay(1000); // wait for a second digitalWrite(RED_LED, LOW); // set the LED off delay(1000); // wait for a second } It works perfectly if I change the jumpers back and use my MSP430G2231. Please help me figure out the mistake. I have attached my jumper configuration in the attached file. Please let me know if any other mod needs to be done if I want to program my G2553 with my Launchpad(Rev1.4).
  12. I have a launchpad V1.4 and V1.5. I am sending serial data from the launchpad at 9600 baud and using a FT232 and Putty to decode the serial data. However, the serial communication does not work at a baud rate of 9600. I have to set the baud rate in Putty to 4800 in order to get it to work. Somehow the launchpad reverts the baud rate back to 4800. If I set the bad rate on the Launchpad and Putty to 2400 or 4800, all works fine. Only 9600 and higher that does not work. Having the same problem when using TimerSerial.h. The jumper settings on both Launchpads are correct. Being fairly new to the Energia and Launchpad, are there any other registers that I need to set? Probelms in my code? Will appreciate any help. Thanks Code: void setup() { Serial.begin(9600); } void loop() { Serial.print("Hello World"); delay(500); Serial.println("...??"); delay(500); }
  13. chamakov

    Bidirectional Communication

    Hi everybody, im new at this forum ant i love energia, a simple and fast ide for develope with the msp430 lauchpad. i have a question, its possible to make a bidirectional communication from lauchpad to pc using energia and matlab? anybody can explain to me how ca i do this?? thanks =)
  14. ILAMtitan

    Vetinari's Clock

    I figured you guys might be interested in some of my tinkering with the Launchpad. Hopefully by putting a few of my projects up here it will also keep me accountable for finishing them. This is one a cobbled together a few months ago. It's been up on the MCU projects page on E2E, so you might have already seen it: http://e2e.ti.com/group/microcontrollerprojects/m/msp430microcontrollerprojects/664670.aspx PROJECT OVERVIEW The Vetinari clock is from a book series known as Discworld, where Lord Verinari has a clock in his waiting room which has an irregular tick. The idea of the clock is to add a sense of unease and anxiety to anyone in the waiting room since their brain doesn't filter out the ticks like a normal clock. Here's a video to get a better idea of the result. The tick is actually a lot louder in person. SOFTWARE DESIGN To accomplish this task on a 430, we create an array of possible time frames to tick the clock, and parse through it at 4Hz. The array is 32 entries long, so it equates to 32 seconds in the real world. By randomly setting 32 of the elements high, we create a timing sequence. A high element will generate a tick of the clock. This means a second on the clock can be as little as 250ms, or as long as 24 seconds, and still keep accurate time. Check the attached software too see how it's all done; I did my best to comment it up. main.c HARDWARE DESIGN The clock coil is driven via an alternating polarity pulse. The easiest way to change a load's polarity with an MCU is using an h-bridge. The schematic shown is a simple implementation using two NPN and two PNP transistors. I had the transistors and drive resistors laying around, so this part was easy to cobble together (along with the half used battery holder). It would be easy to use a single IO pin per side of the bridge, but the transistors fit better onto the launchpad, as shown in the image. To add the driving resistors in series, I cut a small gap in the traces, scrapped off the solder mask on either side to make pads, and put down a small SMA resistor. It's not pretty, but it works. In the clock mechanism, there is a small control board with a crystal and epoxy glob IC that normally runs the clock. I just ripped that out and directly attached the coil to the h-bridge. The resulting clock is actually more maddening than I expected in a quiet environment. By using 3V rather than the 1.5V that the original movement used, the ticks are much more pronounced and do an excellent job of ruining a person's calm.
  15. David Bender

    SwitchPad: LaunchPad Gender Changer

    Hi All, I got fed up with male headers on the LaunchPad, so I made up a small PCB to gender change the LaunchPad. It has the nice side effect that it is easy to switch my LaunchPad among different projects. Check it out https://analog10.com/posts/000_switchpad.html Thanks, Dave
  16. I have the LM4F120 Stellaris Launchpad and was wondering if it was possible to have a single USB connection (either the debug or device port on my launchpad) function simultaneously as a UART serial connect but also connect to my computer as a mass storage device? Is this at all possible? How would I go about it? Maybe I'm going about this wrong but basically what I am wishing to do is to be able to access files on an SD card that is attached to my launchpad on my computer. I simultaneously would like to be able to send messages to/from the board from the computer. Is there a good way of doing this? USB serial or USB bulk? I'm just using the Stellarisware example code for everything at the moment and can get UART communications working from the debug port and the mass storage from the device port. I can plug both usb ports in at the same time but then I need two cables connected.. not ideal. How can I combine the two easily?
  17. I have been studying the schematics for the Stellaris Launchpad. Having troubles tracking down a few of the headers. There are a number of header pins listed by number on the schematic (e.g. H14, H15) with no corresponding label on the board. Most of the pins I have figured out where the header is by what signal it carries, but header H15 is illusive. Schematic shows that it is connected to pin PD3 on the ICDI controller (U2A - the other LM4F120). No indication given in the schematic what function it has. Have not found it labeled on the board. May have to do process of elimination to track it down. Thanks
  18. LariSan

    LaunchPad Proto Plate- from Ponoko

    I had a few of these "protoplates" made-- I fell in love with the one from AdaFruit for the BeagleBone and really wanted one for the LaunchPad and had some made. (I have to thank Bart, if he's on here, for really making my first Ponoko trial-run so smooth). So here is where you can order the sheet. It's 14 total plates on the Plastic- Acrylic- Clear- 3mm- P3 sized sheet, which comes out to be about 3.50 for each plate- total about 46.50 (Bart had free shipping since he's a regular user at Ponoko). I'm sure there is a more efficient way to arrange these to get more on the same sheet (there was a lot of extra plastic that wasn't used). This was a trail run for me. It comes in a large sheet, where you only need to pull off your plate I left the backing on the plate-- Added the breadboard: these breadboards from Mouser (I get them in packs of 10 so it comes out to be about 4.95 a piece) The hardest part was to figure out how to connect the LaunchPad to the sheet. Even though it's nice that the rubber feet were already included... it turned out to be inconvenient. The BeagleBone and the Arduinos have screws that allow you to use standoffs. In this case after trying: hot glue, epoxy, these scrapbooking "zots" (super strong adhesive tapes in dot shape) and double stick tape and found out that all of them don't adhere to the rubber well. What's worked is Crazy Glue. Put it on the LaunchPad, set it down and let it dry... then I peeled off the backing. I'll get to test these in a workshop soon, but so far I like them, but plan on changing a few things. I have about three extra that I wouldn't mind sending to anyone who wanted to see it. It's hard to know which direction is up... I have two sleds and one is right handed and the other is left handed... I guess if I just removed the logo all together I could have it be either right or left handed This is what I think my next one will look like, but I'm completely open for any suggestions! Hope that's helpful, I've included the files to make the edits in my dropbox (it's in illustrator and the forum doesn't like the format for some reason). https://www.dropbox.com/sh/6tho7jrplryvyhl/PJAJ22XqpQ Final- LaunchPad Proto-Sled v1.0- Bart.zip
  19. CPP_Technologist

    Millis() and Micros() Issue during ISR

    I am trying to detect the width of a pulse signal (that should be anywhere from 1ms to 20ms wide) using two ISRs on the MSP430G2553. One ISR is triggered by the rising edge, and the other by the falling edge. The first ISR reads micros() and stores the value in a variable called Time1. The second ISR reads micros() and stores the value in a variable called Time2. The pulse width of the signal is equal to Time2-Time1. The problem is, Time1 and Time2 always end up being equal, even though they are read in two different ISRs on two separate signal edges-- this should be impossible. Anyone know how this is happening? Does entering an ISR stop whatever micros() is referencing? I've tried using millis() as well, but the problem persists. I've used a similar code on the Arduino using "CHANGE" as the interrupt trigger and reading micros() for time1 or time2 depending on the status of a pin-- and that works-- so I'm assuming the launchpad must deal with micros() differently? Here is some code that demonstrates the problem on the launchpad: volatile unsigned long Time; volatile unsigned long Time1; volatile unsigned long Time2; void setup(){ Serial.begin(9600); pinMode(5,INPUT); pinMode(6,INPUT); attachInterrupt(5,CapturePulse1,RISING); attachInterrupt(6,CapturePulse2,FALLING);} void loop(){} void CapturePulse1(){ Time1=millis(); Serial.print(Time1); } void CapturePulse2(){ Time2=millis(); Serial.print(Time2); Time=Time2-Time1; Serial.print(Time); }
  20. LM Flash Programmer from TI started giving me error messages says ** ERROR **: unable to connect to target Target is Stellaris Launchpad I had used the program successfully some time ago. Code Composer Studio version 5 can reprogram the launchpad. Thought I remembered seeing something about this problem, but can't seem to find it now. Any suggestions? Build 923 of LM Flash Config is Stellaris Development Board (also tried a few others). OS is Win XP Has drivers for the board Board shows up in devices (ICDI JTAG, DFU) Thanks
  21. I was wondering, does anybody know of a good msp430 compiler like IAR for mobile devices? If not, I have some ideas if anybody is up for making one. Physically connecting to the phone is out of the question, so it would have to be bluetooth. An msp (preprogrammed) with a bluetooth transceiver may just be all that's needed to program another msp via spi-bi-wire, and possibly throw in an rx/tx port to transfer data back through the Bluetooth, just like the launchpad does with USB. Just tossing ideas out.
  22. sirri

    Launchpad in Fritzing?

    Hello, I guess there is no TI Launchpad component in Fritzing software.. I know that svg file of launchpad has been made. http://www.43oh.com/2011/07/launchpad-svg-for-fritzing/ However does anyone know how to use this svg in Fritzing? Thanks, Sirri edit: No one is using this good free program ?? : /
  23. xtjacob

    Infrared Distance Sensor

    I'm trying to build a distance sensor using an IR Led, and a TSOP receiver that is run by my stellaris launchpad. However, I am not sure how to produce the 38KHz that is needed to drive the transmitter, and I'm unsure about how to run the transmitter, and read the receiver at the same time. Any help is appreciated!
  24. athornsb

    Unusual Power Draw - Launchpad

    The same question is posted on reddit here: http://redd.it/18bkdl We are meeting with our project sponsors tonight and would love to have some kind of answer as to what's going on with our power draw. We are using an MSP430 Launchpad to develop a small project to be powered by a solar cell. Eventually we will have a single hardware interrupt, and a 30 Hz counter interrupt to update an LCD. We have estimated our power budget to be around 20 micro Watts. Oddly, with the software I have written and provided below, we are getting around 30 micro amps at 2.2V when we separate the MSP from the board. Stranger still, no matter if we try to fully load the processor, or just drop it into LPM4 we always get roughly the same power draw which doesn't make sense. I'm hoping you redditors can either find a problem with my code or how we are testing power draw. We are using the LEDs to confirm functionality of the interrupts, and then we detach the MSP from the board to test power. I have tried to comment the code well, if anything is unclear I'll try to explain. Thanks! #include <msp430g2553.h> #define greenLED 0x40 // BIT6 #define redLED 0x01 // BIT0 #define TRIGGER 400 // VLO interrupt delay. Base frequency is 12kHz. void main(void) { //Set up system clocks WDTCTL = WDTPW | WDTHOLD; // Stop WDT BCSCTL2 = SELM_0 + DIVM_0 + DIVS_0; // DCO clock with divide by 1 if (CALBC1_1MHZ != 0xFF) { DCOCTL = 0x00; BCSCTL1 = CALBC1_1MHZ; // Set DCO to 1MHz DCOCTL = CALDCO_1MHZ; } BCSCTL1 |= XT2OFF + DIVA_0; // Disable XT2CLK and set to divide by 1 //Set up port 1 P1DIR = 0xff; // Configure all of Port 1 to output to reduce power consumption //Set up A0 timer and VLO clock source BCSCTL3 = XT2S_0 + LFXT1S_2 + XCAP_1; //Set the ACLK clock to the internal VLO, 6pF cap, low frequency operation. TACCR0 = TRIGGER-1; // Trigger is the timer A count limit. (# of counts until the interrupt fires) TACCTL0 |= CCIE; // Enable timer A interrupt TACTL = TASSEL_1 + MC_1 + TACLR; // ACLK, up mode, clear timer. //Set up LEDs P1DIR |= greenLED; // Set P1.6 to output direction P1OUT &= ~greenLED; // Set green LED off P1DIR |= redLED; // Set P1.0 to output direction P1OUT &= ~redLED; // Set red LED on //Set up Push Button (P1.3) P1SEL &= ~0x08; // Select Port 1 P1.3 (push button) P1DIR &= ~0x08; // Port 1 P1.3 (push button) as input, 0 is input P1REN |= 0x08; // Enable Port P1.3 (push button) pull-up resistor P1IE |= 0x08; // Port 1 Interrupt Enable P1.3 (push button) P1IFG &= ~0x08; // Clear interrupt flag (just to be sure) _BIS_SR(LPM3_bits + GIE); // Enable interrupts } #pragma vector=PORT1_VECTOR // Port 1 interrupt service routine __interrupt void Port_1(void) { P1IFG &= ~0x08; // P1.3 Interrupt Flag cleared P1OUT ^= greenLED; // Toggle LED state } #pragma vector=TIMER0_A0_VECTOR __interrupt void Timer_A(void) { P1OUT ^ = redLED; } power_sim.c
  25. izdane

    Hi from Canada

    My name is Ivan and I am a 12 year old kid from Canada. I just ordered a Launchpad and a Terminal booster pack. I downloaded the code and imported it into CCS. When ever I try to debug on the Launchpad, it says "Error Connecting to target". I tried connecting to 2 different computers both running different versions of Windows. Could any one help out please? Thanks, Ivan
×