Author Topic: Beginner Help with TI Microcontroller  (Read 5924 times)

0 Members and 1 Guest are viewing this topic.

Offline tolsen5468Topic starter

  • Newbie
  • Posts: 3
Beginner Help with TI Microcontroller
« on: March 08, 2015, 04:58:30 am »
Hey guys,
Just got my hands on a MSP430F2012 PDIP microcontroller, just the bare chip and I'm really not sure where to start with the thing. I have lots of experience with arduino based stuff (so the easy stuff) but now that I got this I really don't know where to start besides feeding it power. I guess the big question here is how do I program this thing? I assume you would need some sort of usb to serial or parallel converter/programmer and a C compiler to code but I'm at a loss here, I don't even know where to start so any help is appreciated!
 
 

Offline Stonent

  • Super Contributor
  • ***
  • Posts: 3824
  • Country: us
Re: Beginner Help with TI Microcontroller
« Reply #1 on: March 08, 2015, 05:53:05 am »
You might want to pick up a MSP430 launchpad and you can use Energia or CCS with it.

Not sure quite how to program a MSP430 directly.
The larger the government, the smaller the citizen.
 

Offline JoeN

  • Frequent Contributor
  • **
  • Posts: 991
  • Country: us
  • We Buy Trannies By The Truckload
Re: Beginner Help with TI Microcontroller
« Reply #2 on: March 08, 2015, 09:10:06 am »
Personally I like making my own boards by hand so that I prove to myself that I know what I am doing.  Generally, I make it using one of the general designs of a development board or breakout board that the manufacturer makes or at least some competent third party but I mash it up with whatever I want on it.  I made a MSP430 board and got it to work no problem.  I used TI's actual debugger, the old version - http://www.ti.com/tool/MSP-FET430UIF.  The new version is http://www.ti.com/tool/msp-fet.  There are cheaper clones on eBay:  www.ebay.com/sch/i.html?_nkw=MSP-FET.  The IDE is free with some limitations:  http://www.ti.com/tool/CCSTUDIO-MSP430

Device:  MSP430F5638   Yes, I know it is being woefully underutilized just scrolling a message.

« Last Edit: March 08, 2015, 09:13:56 am by JoeN »
Have You Been Triggered Today?
 

Offline Fred27

  • Supporter
  • ****
  • Posts: 726
  • Country: gb
    • Fred's blog
Re: Beginner Help with TI Microcontroller
« Reply #3 on: March 08, 2015, 09:45:40 am »
For the MSP430F2012 then the original Launchpad (G2) is the way to go. Cheap and designed exactly for the task. A couple more versions of the MSP430 with it too. Free IDEs are CCS or if you're used to Arduino then Energia.
 

Offline AndreasF

  • Frequent Contributor
  • **
  • Posts: 251
  • Country: gb
    • mind-dump.net
Re: Beginner Help with TI Microcontroller
« Reply #4 on: March 08, 2015, 10:32:54 am »
I recommend the Launchpad too. Even if you want to make your own boards, it has the programmer/debugger on board, which you can use with external chips as well (though there might be some restrictions).

Other than that, there is pretty decent documentation and examples, especially for the Lauchpad series, but one thing you will definitely have to do is "Read The Manual". Beside the device-specific datasheet, the really important document is the "Family User Guide".
my random ramblings mind-dump.net
 

Offline dannyf

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: Beginner Help with TI Microcontroller
« Reply #5 on: March 08, 2015, 11:39:57 am »
Quote
I don't even know where to start so any help is appreciated!

You can start from ti's website. A programmer is needed -> you may be able to get a launchpad instead, as it is substantially cheaper than a dedicated programmer.

A few compiler / IDE: their is ti's own CCS; IAR makes a wonderful compiler for those chips too. And there is a gcc port and many supported IDEs (like CB).
================================
https://dannyelectronics.wordpress.com/
 

Offline tolsen5468Topic starter

  • Newbie
  • Posts: 3
Re: Beginner Help with TI Microcontroller
« Reply #6 on: March 08, 2015, 04:49:55 pm »
I'd like to thank all of you for the speedy replies! I was looking at the launchpads before and I wasn't really sure how they worked. I kind of thought that with the launchpad's you had to keep the chip in the board to be able to use it almost making it kind of like an arduino type thing and what I was really looking for was something to program the chip and then removing and soldering the chip to a perf board to make my projects and if someone could confirm that is what the launchpad will do for me that would be awesome.
-Thank you all again!
 

Offline Monkeh

  • Super Contributor
  • ***
  • Posts: 7992
  • Country: gb
Re: Beginner Help with TI Microcontroller
« Reply #7 on: March 08, 2015, 04:59:16 pm »
The MSP430G2 Launchpad allows you to remove compatible chips from the DIP socket at will and place them into circuits. Both the MSP430 Launchpads allow you to disconnect the programmer from the onboard target and wire it to an external MSP430 (of virtually any model) for programming and debugging.
 

Offline Monkeh

  • Super Contributor
  • ***
  • Posts: 7992
  • Country: gb
Re: Beginner Help with TI Microcontroller
« Reply #8 on: March 08, 2015, 05:52:32 pm »
I believe the bulk of the current offerings are SBW capable. They lack a search parameter for that, however. F5/F6, G2, most F2s afaik.
 

Offline Fred27

  • Supporter
  • ****
  • Posts: 726
  • Country: gb
    • Fred's blog
Re: Beginner Help with TI Microcontroller
« Reply #9 on: March 08, 2015, 09:32:48 pm »
You should also check out 43oh.com for a very helpful community.
 

Offline katzohki

  • Frequent Contributor
  • **
  • Posts: 378
  • Country: us
    • My Blog
Re: Beginner Help with TI Microcontroller
« Reply #10 on: March 11, 2015, 09:01:30 pm »
To be honest, I'd like to learn more about programming for production myself. Without an easy tool to program MCUs in production, the Launchpad is really just a neat toy.
 

Offline suicidaleggroll

  • Super Contributor
  • ***
  • Posts: 1453
  • Country: us
Re: Beginner Help with TI Microcontroller
« Reply #11 on: March 11, 2015, 10:26:06 pm »
To be honest, I'd like to learn more about programming for production myself. Without an easy tool to program MCUs in production, the Launchpad is really just a neat toy.
What do you have in mind?  Some vendors will pre-program the MSP430s for you before shipment, would not that satisfy a production run?

The "production" runs I do myself are typically pretty small (~100 units), so it's perfectly reasonable to plug in a 3-wire bus from the launchpad to a header on the board and program it in-circuit.  It takes maybe 10 seconds per board, so you can knock a reasonably-sized production run out pretty quickly.
 

Offline katzohki

  • Frequent Contributor
  • **
  • Posts: 378
  • Country: us
    • My Blog
Re: Beginner Help with TI Microcontroller
« Reply #12 on: March 11, 2015, 10:34:54 pm »
To be honest, I'd like to learn more about programming for production myself. Without an easy tool to program MCUs in production, the Launchpad is really just a neat toy.
What do you have in mind?  Some vendors will pre-program the MSP430s for you before shipment, would not that satisfy a production run?

The "production" runs I do myself are typically pretty small (~100 units), so it's perfectly reasonable to plug in a 3-wire bus from the launchpad to a header on the board and program it in-circuit.  It takes maybe 10 seconds per board, so you can knock a reasonably-sized production run out pretty quickly.

Yeah, that would work well, but sometimes we would make changes to firmware or I would want to change setting bits on board so that would require some sort of in circuit programming.
 

Offline suicidaleggroll

  • Super Contributor
  • ***
  • Posts: 1453
  • Country: us
Re: Beginner Help with TI Microcontroller
« Reply #13 on: March 11, 2015, 10:41:25 pm »
You can use the launchpad as an in-circuit programmer.  Pull off the jumpers and wire up Ground, Test, and Reset from the programming side of the launchpad to a 3-pin header on your board connected to the same three pins on your uC.  Done.  All of the same programmability and debugging as you get with a DIP uC plugged into the launchpad itself.

I think I did a little blinky test on the launchpad when I first got it, and since then it's just been used as an in-circuit programmer for surface mount parts on my own boards.  I've programmed everything up to and including the MSP430G2955 in-circuit using the launchpad and just those 3 wires, including breakpoints, stepping through code line by line, dumping out registers, etc.
« Last Edit: March 11, 2015, 10:45:15 pm by suicidaleggroll »
 

Offline katzohki

  • Frequent Contributor
  • **
  • Posts: 378
  • Country: us
    • My Blog
Re: Beginner Help with TI Microcontroller
« Reply #14 on: March 12, 2015, 10:16:30 pm »
Yeah, that will do. Feels weird because I'm used to Microchip and they promote their programmers (ICD, ICE, PICkit etc) really well.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf