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


  • 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 156 results

  1. Hi guys! I'm trying to use energia for a simple TX/RX with cc1101 and launchpad + msp430g2452, but i don't know how to use spi to comunicate cc1101 with msp430 in energia interface... can sombody help me? I'am using: Energia 0101E0011 windows 7 (64 bits)
  2. Hey guys. I recently got a Launch pad -- MSP430G2 board ( Rev B ) [only the board and the USB cable from a friend]. I downloaded Energia for my Mac running OS X 10.9. [maverics]. Though the Power LED lights up, the board is not recognised by the IDE. I don't know if the problem is with the board, the cable or the IDE. Though the board was detected for a short period of time and I was able to just uplaod the Blink sketch into it. Now when I connect to a USB power or my MAC, led1 just keeps blinking. I am unable to program it. I hope you guys can help me spot the problem so that I can rectify it and make use of the board to learn Embedded systems. Thanks in advance.
  3. 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
  4. Hello, I tried to use my MSP430G2553 launchpad with a keypad (https://www.sparkfun.com/products/8653) using http://www.pjrc.com/teensy/td_libs_Keypad.html http://bildr.org/2011/05/arduino-keypad/ http://www.instructables.com/id/Using-the-sparkfun-12-Button-keypad-with-the-ardu/ http://www.ti.com/lit/an/slaa139/slaa139.pdf (i just tried schematic with Energia code) http://little-scale.blogspot.com/2011/10/how-to-connect-keypad-to-arduino-simple.html (prints blank lines in same row , buttons doesn't work except 2,5,8,0 and they print "y") #include <Keypad.h> const byte ROWS = 4; //four rows const byte COLS = 3; //three columns char keys[ROWS][COLS] = { {'1','2','3'}, {'4','5','6'}, {'7','8','9'}, {'#','0','*'} }; //byte rowPins[ROWS] = {5, 4, 3, 2}; //connect to the row pinouts of the keypad //byte colPins[COLS] = {8, 7, 6}; //connect to the column pinouts of the keypad byte rowPins[ROWS] = { P1_5, P1_4, P1_3, P1_2 }; // Connect keypad COL0, COL1 and COL2 to these Arduino pins. byte colPins[COLS] = { P1_0, P1_7, P1_6 }; Keypad keypad = Keypad( makeKeymap(keys), rowPins, colPins, ROWS, COLS ); void setup(){ Serial.begin(9600); } void loop(){ Serial.print("Serial test\n"); delay(100); char key = keypad.getKey(); if (key != NO_KEY){ Serial.println(key); } } None of them works, they only print "Serial test" and thats when i press RESET. I tried using latest keypad library from ARDUINO site or the libraries that in those tutorials. Do i need a different way to wire up the keypad to launchpad or need a different library? Thank you.
  5. Hello, I am trying to interface my MSP430G2553 launchpad with an LCD (http://www.winstar.com.tw/UserFiles/ProductImages/12523136510757108108.jpg) but my characters look weird. I am using http://www.fibidi.com/arduino-lcd-16x2-characters/ with one potentiometer , with changing ports like this: #include <LiquidCrystal.h> // initialize the library with the numbers of the interface pins //LiquidCrystal lcd(8,9,4,5,6,7); LiquidCrystal lcd(P2_4,P2_5,P2_0,P2_1,P2_2,P2_3); void setup() { lcd.begin(16,2); lcd.setCursor(0,0); lcd.print("Hello World!"); } void loop() { } But my characters looks like this with 3.6V to LCD: And if I use 5V from TP3 TP1 from Launchpad USB thing with highest brightness: I tried: 1. using other ports (1.0 to 1.7) 2. changing potentiometer 3. changing and checking breadboard 4. checking voltages 3.6v -> 3.5 and 5V -> 5.09V 5. not using backlight 6. wiring empty LCD pins to ground 7. removing lcd.setCursor(0,0); line 8. trying MSP430G2452 But still same. I alson can't use right half of the screen. It should work but, is something wrong with LCD (that was my first soldering attempt I may overheat something but I checked for short circuits and there isn't any) or my chosen ports. Any ideas? Thank you.
  6. RobG

    MSP430 Xmas

    This year, LaunchPad has a very special assignment during the holidays - to control our Xmas tree lights. So far, more than 20 different sequences are programmed into G2553. Piano pedal connected to LP allows easy selection. Finally, my wife can have Xmas lights she likes, one day white, another day warm colors, then maybe little strobe light here and there, and so on. There are 100 WS2811 pixels on the tree (those lights look much, much better in real life) (You can see LP right above the train, tiny green light.) MSP430 is also used to power my 10W RGB flood lights.
  7. When the Launchpad was quite new, TI published an Launchpad update program that would make it work with new (at the time) microcontrollers. But sometimes, the update failed, leaving me and others with a useless launchpad. http://processors.wiki.ti.com/index.php/MSP430_LaunchPad_Firmware_Update (BEWARE!) This has been discussed here (43oh.com) and elsewhere http://e2e.ti.com/support/microcontrollers/msp43016-bit_ultra-low_power_mcus/f/166/p/97931/346074.aspx#346074 and someone in that thread was kind enough to backup his/her Launchpad's firmware: http://e2e.ti.com/cfs-file.ashx/__key/CommunityServer-Discussions-Components-Files/166/3060.LP100901938.zip Today I stumbled across my defunct launchpad and looked into MSP430 parallel port JTAG adapters (it seems, only the level conversion is required) and others (Versaloon may be portable to STM32_F4_Discovery), bit banging with FT2xxx, etc., but ended up looking for the effort required using the integrated serial bootloader (BSL): http://www.mike-stirling.com/2013/06/turn-a-ti-launchpad-into-a-goodfet-with-just-a-serial-cable/ This is really quite simple (you'll have to decide if your time is worth it, if you haven't thrown it away already..): the process only requires a 3.3 V serial interface, soldering of 5 wires, pushing a few buttons.. Since he's actually replacing the F1612's firmware with another one, I'll just qoute the BSL info for posterity:
  8. Hi all well I got a problem with my Serial comunication, when I conect my launchpad with the jumpers in the default (software uart position) parallel like: || || || || almost everything works ok, i can programm my launchpad with energia I can see the Serial port is right But when i try to test the serial comunication with de serial monitor it can not send anything or recieve. then I desconect and change the jumpers for a Hardware UART like: = || || || then i conect my launchpad and i can not see my serialport name on energia and can not open the serial monitor. Im working on UBUNTU 12.04 Any Ideas? thanks. Valery
  9. So you now build all of your projects on breadboard, and the Launchpad just gets used as a progammer/debugger adaptor. The 20 pin DIP socket gahters dust. I have put this to use by writing a SPI-UART adaptor that runs on a 2553 in the DIP socket, while using the Launchpad to debug my project. The project code can thus output console data using a bit-banged SPI output. This only consumes port pins, no timers or UARTS, and is not timing-critical, as the data output is synchronous. This shows how you would use it: ... and here it is on my desk... Code is at https://github.com/shufflebits/SPI-Adaptor-2553 The code incorporates a self-test mode, so you can check that the UART link is working correctly. Just put links on where I have blue links here: This enables a test output on P1.4 and P1.6. Set the COM port to 9600,n,8,1. In normal operation, the red LED on P1.0 indicates when data is being received, and the green LEN on P1.6 indicates when the SPI input is reset. To explain: Since with a synchronous link, a single missed clock pulse will screw up all data received in the future, the code resets the SPI receiver after a second of idle time. This idle time-out is shortened by pressing S2 (P1.3). You may find it worth while to add a pull-down resistor on your target on the SPI clock out, as when it floats on reset you get spurious data. Code for the bit-banged SPI output can be found in printf.c and printf.h. Edit printf.h to define which ports will be used for output. Props to opossum for the original printf code, which I'm sure has been copied by just about everybody!
  10. A Retro Style Basic Computer Description The EZ430trainer system turns the low-cost TI LaunchPad into a microcontroller trainer via simple hardware and software enrichments. The EZ430trainer is made up of a . TI LaunchPad, w/ msp430g2553 mcu . A "Paradiso UI Shield", adding basic I/O capabilites. . A "Eztrainer Monitor" firmware, providing monitor and assembler capabilites. The intention of the EZ430trainer is to bring in a "low-cost" computer training system that resembles the 1st generation hobby based microprocessor systems that surfaced in the mid-70's. These systems offer the best computer training as users interacts w/ the CPU almost directly. Programming are done via entering machine code directly or via simple assemblers. Users need to understand very well the cpu architecture in order to work on such systems. Parts / Bill of Materials . TI Launchpad V1.5 kit (w/ msp430g2553 mcu) . 4 digit 7 segment LED display Common Anode . 4 digit 7 segment LED display Common Cathode . 20 x tactile button . buzzer 3V (Optional) the LED display is commonly available in ebay, look for those 0.4" or 0.36" 4 digit displays, you will want to make sure it's common cathode and the pin layout matches (most do) ___a__ | | (0) A F (1)(2) B f| | b -+--+--+--+--+--+ ___g__ | | e| | c |Pin1 | | | -+--+--+--+--+--+ ___d__ E D . C G (3) Paradiso UI Shield Schematic MSP430G2553 on TI Launchpad ----------------- /|\| | | | | --|RST | | | +---------------+ +---------------+ | as digit 0 P2.2|-----| _ _ _ _ | | _ _ _ _ | led modules | as digit 1 P2.4|-----|| | | | | | | || || | | | | | | || 1x common cathode | as digit 2 P2.5|-----||-| |-| |-| |-|| ||-| |-| |-| |-|| 2x common anode | as digit 3 P2.7|-----||_|.|_|.|_|.|_|| ||_|.|_|.|_|.|_|| | | +---------------+ +---------------+ | | | segment a to g + dot........ | | / ....\ | | / \ | segment A P1.7|-----+-----+-----+-----+-----+-----+-----+-----+ | | _=_ | _=_ | _=_ | _=_ | _=_ | _=_ | _=_ | _=_ | | segment B P2.3|-o o-+-o o-+-o o-+-o o-+-o o-+-o o-+-o o-+-o o-+ | | _=_ | _=_ | _=_ | _=_ | _=_ | _=_ | _=_ | | segment c P1.7|-o o-+-o o-+-o o-+-o o-+-o o-+-o o-+-o o-+ | | _=_ | _=_ | _=_ | _=_ | _=_ | _=_ | | segment D P2.0|-o o-+-o o-+-o o-+-o o-+-o o-+-o o-+ | | _=_ | _=_ | _=_ | _=_ | _=_ | | segment E P2.6|-o o-+-o o-+-o o-+-o o-+-o o-+ | | _=_ | _=_ | _=_ | _=_ | | segment F P1.6|-o o-+-o o-+-o o-+-o o-+ | | _=_ | _=_ | _=_ | | segment G P2.7|-o o-+-o o-+-o o-+ | | _=_ | | segment H P1.5|-o o-+ (not all buttons populated) | | ----------------- mapping of buttons. Ex. A-F .. buon across segment A and F pins [A-F] [A-.] [A-G] [b-A] [D-A] [C-A] [A-E] [b-F] [b-.] [b-G] [D-B] [C-B] [b-E] [D-F] [D-.] [D-G] [C-D] [D-E] [C-E] [C-F] [C-.] [C-G] +-----------------------------------------+ | +-----------------+ +-----------------+ | | | _ _ _ _ | | _ _ _ _ | | | | | | | | | | | | | | | | | | | | | | | | | | |-| |-| |-| |-| | | |-| |-| |-| |-| | | | | |_|.|_|.|_|.|_|.| | |_|.|_|.|_|.|_|.| | | +-----------------+ +-----------------+ | | mnp rtx s j | | [ ] [7 ] [8 ] [9 ] [F ] [Ad] | Address | b/w ei << | | [ ] [4 ] [5 ] [6 ] [E ] [Md] | Mode / Last | d . >> | | [1 ] [2 ] [3 ] [D ] [Rg] | Register / Next | a b c | | [0 ] [A ] [b ] [C ] [+ ] | Advance / Enter | | +-----------------------------------------+ Paradiso UI Shield features . 8 x 7 segment display . 22 tactile switch positions w/ 20 switch filled . Prototyping area . requires software mutliplexing to drive segments . requires software matrix scanning for key inputs . has no led driving / current limiting capabilities EZ430trainer Monitor features . (1) LMC Little Man Computer emulator built-in . (2) One-pass assembler generating msp430 machine code . (3) Direct machine code entry for msp430 . Correct support for pseudo-op codes, ex. RET implemented as MOV @SP+,PC . Interface w/ Paradiso UI Shield and UART terminal . Program storage starts at flash 0xe000 at 256 byte blocks . Program edit at ram 0x0280 for each 256 byte blocks . Basic IO routines . number printing . string printing . wait key w/ . timer at 1/100 sec intervals Memory Space +------------------------------------------------+ |0x0000-0x0007 Special Func Registers | |0x0008-0x00ff 8-bit Periphercals | |0x0100-0x01ff 16-bit Periphercals | |0x0200 + 512 byte RAM -------------------| | 0200- 027f | Monitor Use | | 0280- 037f | Program Edit Buffer | | 0380- 03ff | Monitor Use, Stack | | 0x03ff-+---------------------------------| | .... | |0x1000 + Data Flash ---------------------| | 1000- 103f | Data Flash Bank 0 | | 1040- 107f | Data Flash Bank 0 | | 1080- 10bf | Data Flash Bank 0 | | 10c0- 10ff | Data Flash Bank 0 (Factory Data)| | 0x10ff +---------------------------------| | .... | |0xc000 + Program Flash ------------------| | c000- deff-| Monitor Code | | dd00- dfff-| Bios code / dd00 is entry point | | e000- efff-| 16 banks of User Code | | f000- ffbf-| 16 banks of LMC code | | ffc0- ffff | Interrupt Vectors | | 0xffff +---------------------------------| +------------------------------------------------+ more details at http://www.simpleavr.com/msp430-projects/ez430trainer full operating instructions can be found here if u are interested in the details. /EDIT Dec 12, 2012 furnishing source and gerber files. D55524_5x10.zip D55524_5x10.zip is the production ready seeedstudio compliance file package ez430trainer.tgz ez430trainer.tgz are source files in tgz format (tarred, gzipped) (*) this project can only be built with msp430gcc (cygwin or linux) lmc.c lmc.c contains only the LMC machine (compiles on mps430gcc and CCSV4), for CCS, create a lmc project and rename lmc.c to main.c to build
  11. I'm working on a project that should end up with a nice etched F5529 board, but for now it's going to just have a Launchpad stuck in there, I needed a quick enclosure for it so knocked up an adjustable one in OpenSCAD. I know a few people have (or are thinking about) a 3D printer so thought I'd share. It allows you to adjust the space on any side of the LaunchPad for anything else you want to include. It could do with some improvements - e.g the little locating pins are easy to snap off. Feel free to amend if the SCAD file if the available adjustments don't suit you. Here's a photo of it, with the partly-finished project in the background and the printer busy printing the lid...
  12. 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?
  13. Hi there! I'm Lurigo, an electronic engineering student and an artist in his free time. I spend most of my time drawing and programming when I'm not busy with my studies. Also got an interest in music, so I hope to combine that with my interest in electronics. I've worked with TI's MSP430 Launchpad, and recently acquired the C2000 and Stellaris. Happen to have a TI Chronos too. I also have some experience with PIC MCUs as well. While I'm not able to do anything impressive with them yet, I'm always learning new things, whether it's on my own, or at my university.
  14. Hi, I have a MSP-EXP430G2 Rev. 1.4 with ....G2231 installed. I have disconnected the on-board emulator supply by removing the J3-VCC jumper. All info on the web and TI literature that I have found so far state that to power up the MCU, I must provide a 47K pull up from RST to VCC (3.6V). The schematic for the Launchpad indicates that the pull up is actually on the board already. Whether I assume that the on-board pull up is really there or connect my own external resistor, the mcu will not power up and begin execution. The only thing that seems to work is to tie RST directly to VCC. Can anyone provide insight into my apparent misunderstanding of the circuit operation. Thanks in advance for you help. Gordon
  15. Buy @ The 43oh Store. So I got a couple samples of the F5172 (has 5V-tolerant I/Os, 32KB flash + 2KB SRAM, Timer_D can run up to 256MHz with FLL) this past summer and had nothing to do with them. Original idea was to make an Arduino-variant since it has around 12 5V-tolerant I/Os, but I decided against that when I first read about TI's 40-pin XL standard. EDIT: Link to newest revision of this design: http://forum.43oh.com/topic/2828-msp430f5172-launchpad-xl/page-4#entry31194 Between last night and this morning I did some marathon CAD, and came up with my F5172 LaunchPad. Let me know what you think: (OSHpark mockup images, I'll most likely use Seeed and make them red.) Bottom: Notes: 1. The board includes "mount" headers (female headers pointing down) to plug into the Emulation layer on the MSP430 LaunchPad rev 1.5. As I understand it, TI does *not* support the use of the LP's SBW for programming or debugging F5xxx devices but I've heard it does in fact work, maybe with some limitations (on the E2E forums someone was complaining step-by-step execution didn't work). 2. The board includes the MSP-FET430UIF 14-pin header, SBW-only (and wired in accordance with slau278k's recommendations for SBW on F5xxx and F6xxx devices). A 3-pin jumper is there to select VCC TOOL (sourced from the FET tool) or external power. 3. To align with TI's recommendations for the 40-pin XL pin functions, some ports have been duplicated to more than one LP pin. There is a vertical bar next to the pin label if it's also used elsewhere in the 40-pin layout. 4. The device includes an FTDI FT232RL chip for the serial port. TXD and RXD LEDs are attached to CBUS0/CBUS1 and CBUS2-4 from the FTDI are broken out to a header. I now have headers in place to disable the TX/RX circuit from the chip. 5. An LDO TPS77333 regulator (similar to MSP430 LaunchPad) is included for providing 3.3V power off the 5V USB feed. LDO_EN lets you enable/disable this and LDO_RST connects the RESET line to the F5172's RESET so the LDO can keep the chip halted until the LDO has built up its output voltage. 6. LEDs on P1.7 and P3.6 (both PWM-able) have been included, I was thinking of using a white LED with P1.7 and blue LED with P3.6. 7. P2.7 is not broken out to any of the LP pins, so it's specially designated for the SW1 button which also has a hardware debounce circuit. Should be idle-high, active-low (low when pressed). 8. The 5V tolerant pins are enabled by switching the "VIO" header to 5V. 9. XTALs are on the bottom, there are footprints for a tuning fork crystal and a HF through-hole crystal with its load capacitors nearby. 10. AVcc exists on these chips so I set up an LC filter for it, L1 (10uH SMD) and C9 (10nF SMD). 11. The F5172 datasheet, page 33, note 3 has not been adhered to--if VIO jumper is set to 5V it will probably get power before the LDO has spun up the 3V3 rail. We'll see if that matters (I doubt it)...
  16. 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.
  17. 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.
  18. 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.
  19. 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.
  20. 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
  21. 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).
  22. Hello MSP430 coders once again i am working on the latest thing such as take input from the Hyper terminal or Putty, and display it in jhd162a (16x2 display) via MSP430G2231 I successfully finished 1. UART with Hyper-terminal 2. Displaying String to JHD162A the problem i am facing in g2231 is .. i am able to print String only like .............taking example printf("Hello this is launchpad"); but i want to make it print like int i = 0; for(i=o;i<=200;i++) ( printf("The number is : %d ", i); ) i am giving you scenario so i take the printf Example .. used code for printf is inline void printf(const char *str) { P1OUT |= BIT6; // green led uint i; uint len = strlen(str); for (i = 0; i < len; i++) { // wait for TXBUF to complete last send... // UCA0TXIFG is high when UCA0TXBUF is empty while (!(IFG2 & UCA0TXIFG)); UCA0TXBUF = str; txbytes++; } } need your suggestions
  23. 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
  24. 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?
  25. 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); }
  • Create New...