msp430 beginner

Hi.

I recently bought a msp-fet430u80 kit form TI and installed MSPGCC . I used to make desings with PICs from Microchip but this TI MCU for me i really new and I think that I require a little bit of help, so if somebod just can advice me or answer this message, could probably help me a lot.

My questions/troubles are:

1- Is there any C command guide for MSPGCC in where I can read how to us the instructions ( C instructions)

2-Does mspgcc for example can understand code like this:

ME1=0X40; //usart 0 spi enable IE1=0XC0; //usart 0 interrupt enabled UCTL0 |= SYNC; UCTL0 |=STC; UCTL0 |=FF;

3- Where can I find source code and examples for mspgcc in order t learn how the programming structure is?

Thanks

Reply to
darknightx
Loading thread data ...

I'm not sure what you're asking. If you're asking how to use the toolchain, then look here:

formatting link
formatting link
formatting link

Yes.

formatting link

You use google mail, yet don't know how to use google?

--
Grant Edwards                   grante             Yow!  I want to read my new
                                  at               poem about pork brains and
                               visi.com            outer space...
Reply to
Grant Edwards

It'll certainly understand the _code_, but you may want to double-check that the symbols ME1, IE1, etc. are properly defined. Understanding the code is a compiler function, getting the symbols defined is a matter of header files (and possibly library functions).

If the compiler barfs on the above then you aren't including the right header. If the linker or locater barfs on it then you need a .o (or .obj) file or a locater command file.

--
Tim Wescott
Control systems and communications consulting
http://www.wescottdesign.com

Need to learn how to apply control theory in your embedded system?
"Applied Control Theory for Embedded Systems" by Tim Wescott
Elsevier/Newnes, http://www.wescottdesign.com/actfes/actfes.html
Reply to
Tim Wescott

If you have such basic questions then you should start by experimenting with the 4K IAR Kickstart compiler. This will get you some familiarity with programming in C on a different microcontroller.

Reply to
larwe

Unless you're already a Unix/gcc/command-line sort of person. Admittedly, it's pretty unlikely that's the case for somebody who's only exposure to embedded work is the PIC.

--
Grant
Reply to
Grant Edwards

Best place to look is in the "examples" directory of the mspgcc install! It includes the TI- supplied examples plus others including UARTs, TCP/IP, character and graphic LCDs, multitasking etc.

Reply to
sprocket

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.