|
View:
New views
7 Messages
—
Rating Filter:
Alert me
|
|
|
programming tutorialhi,
Can anyone provide me with a good tutorial for programming MSP430 that will explain how to program in C. As well as the various syntax like PxDIR, PxSEL etc........& addresses of various ports. Regards Sid |
|
|
Re: programming tutorialTI's web site is your best friend. The User's Guides will have all the info regarding addresses, cpu core, and peripherals. As for learning C there are tons of books and online resources for that. The TI web site also has MSP430 code examples for the IAR tools and the CCE tools. There are also tons of application notes. http://www.ti.com/msp430 sid_s_us@... wrote: > hi, > > Can anyone provide me with a good tutorial for programming MSP430 that will explain how to program in C. As well as the various syntax like PxDIR, PxSEL etc........& addresses of various ports. > > Regards > Sid > |
|
|
Re: programming tutorialThe TI web site is the first place (lots of application and examples)
and a low cost usb kit will get you started. I have just bought and started MSP430 State Machine Programming by Tom Baugh 978-0-9754759-2-8 and it is very good so far. It may be a bit advanced for you but the first few chapters are worth a read. For C itself I started with a book like "The C programming language" by Brian w. Kernighan and Dennis M. Ritchie. I still refer to it often. I have also read the book Embedded Systems Design using the TI MSP430 Series by Chris Nagy It is a good start for the absolute beginner but a lot of its information is also found for free on the TI website. --- In msp430@..., <sid_s_us@...> wrote: > > hi, > > Can anyone provide me with a good tutorial for programming MSP430 that will explain how to program in C. As well as the various syntax like PxDIR, PxSEL etc........& addresses of various ports. > > Regards > Sid > |
|
|
Re: programming tutorial--- In msp430@..., <sid_s_us@...> wrote:
> > hi, > > Can anyone provide me with a good tutorial for programming MSP430 that will explain how to program in C. As well as the various syntax like PxDIR, PxSEL etc........& addresses of various ports. > > Regards > Sid > If you are learning both hardware and software, I'd suggest you look into using Forth. IMO it beats C/C++ (and I've done my share of work in that environment) hands down for embedded applications. A lot of the questions I see posted here could be fairly simply resolved using the inertactive 'try-it-and-see' approach that Forth allows. You can develop a function interactively and then copy it to your favourite editor after you get it working for inclusion in later builds. Interactive, incremental compilation encourages building and testing small relatively simple functions that can then be incorporated into higher level functions. If the pieces are well tested, there is a good chance the higher level will work. For a more lucid description see: http://tinyurl.com/5o4p3l Both Forth Inc and MPE sell Forth cross tools for the MSP430 family. Forth Inc. in the USA http://tinyurl.com/5pnvp5 MPE in the UK http://tinyurl.com/5lz95o I haven't any experience with MPE's offering but I expect it is comparable to Forth Inc.'s Swiftx . Forth Inc's Swiftx makes the cross-tool fairly transparent. In addition, they have a simple multitasking scheme that is extremely useful. Compilation is almost instantaneous. My application, currently about 27 KB, on a '1611 takes about 15 sec to load into flash. There is also a fairly active newsgroup; comp.lang.forth |
|
|
Re: programming tutorial> lucid description see: > http://tinyurl.com/5o4p3l > > Did TinyURL let me down, or did I not copy the entire URL. Here it is in full. http://www.embedded.com/columns/showArticle.jhtml?articleID=9900308 |
|
|
Re: programming tutorialI think that K & R's "The C programming language" is a good
"historical" document, but the language and conventions have evolved significantly since its first publication. If you really are completely novice to the C language, I would suggest learning the language on a PC using a free compiler somewhere. There are tons of C tutorials online. Then I would get the Kickstart version of IAR EW430 and one of TI's cheap (or free) tools. Work through every single example from teh TI website you can find. Understand every single line of code. These examples are typically written in a very concise manner to demonstrate a specific peripheral or feature. Start changing the code around and before you know it, you'll be a master. Stuart --- In msp430@..., "mpbwork" <mpbrown@...> wrote: > > The TI web site is the first place (lots of application and examples) > and a low cost usb kit will get you started. > > I have just bought and started MSP430 State Machine Programming by > Tom Baugh 978-0-9754759-2-8 and it is very good so far. > It may be a bit advanced for you but the first few chapters are worth > a read. > > For C itself I started with a book like "The C programming language" > by Brian w. Kernighan and Dennis M. Ritchie. > I still refer to it often. > > I have also read the book > Embedded Systems Design using the TI MSP430 Series > by Chris Nagy > It is a good start for the absolute beginner but a lot of its > information is also found for free on the TI website. > > --- In msp430@..., <sid_s_us@> wrote: > > > > hi, > > > > Can anyone provide me with a good tutorial for programming > MSP430 that will explain how to program in C. As well as the various > syntax like PxDIR, PxSEL etc........& addresses of various ports. > > > > Regards > > Sid > > > |
|
|
Re: Re: programming tutorial----- Original Message -----
From: "Stuart_Rubin" <stuart_rubin@...> To: <msp430@...> Sent: Saturday, July 12, 2008 6:48 PM Subject: [msp430] Re: programming tutorial >I think that K & R's "The C programming language" is a good > "historical" document, but the language and conventions have evolved > significantly since its first publication. I thought that the second edition is the standard work on the language. Leon -- Leon Heller Amateur radio call-sign G1HSM Yaesu FT-817ND and FT-857D transceivers Suzuki SV1000S motorcycle leon355@... http://www.geocities.com/leon_heller |
| Free Forum Powered by Nabble | Forum Help |