Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   MPLAB (http://www.chiefdelphi.com/forums/showthread.php?t=50256)

ThienAn 04-12-2006 22:35

MPLAB
 
what exactly is MPLAB? I know that it's a language that you can use for programming...and that there a different versions of it. Aside from that, I don't have a clue about anything else about it. =S (sorry, im just looking for language possibilities for programming right now, a language's pros and cons and such)

efoote868 04-12-2006 22:39

Re: MPLAB
 
MPLAB is an IDE, Integrated Development Enviroment. Of course theres different versions of it, as you will find that with all things (look at java, what are they on right now, like release 9?). MPLAB is made to program innovation first controllers (correct me if i'm wrong). It uses the c programming language, so it isn't its own seperate language. I think your only other option is EasyC... which is a graphically interfaced version.

bear24rw 04-12-2006 22:50

Re: MPLAB
 
http://www.ifirobotics.com/docs/lega...2-apr-2004.pdf

You might want to read through that if your just getting started

www.ifirobotics.com

Hope that helps

shawger 06-12-2006 15:12

Re: MPLAB
 
Quote:

Originally Posted by ThienAn
what exactly is MPLAB? I know that it's a language that you can use for programming...and that there a different versions of it. Aside from that, I don't have a clue about anything else about it. =S (sorry, im just looking for language possibilities for programming right now, a language's pros and cons and such)

MPLAB is not a programming language. It is the development environment that comes with the FIRST kit of parts. Basically, it is a text editor with project management and syntax highlighting that integrates nicely with the MCC18 compiler. We use the C programming language to program the robot.

I suggest you go over to wikipedia and look up the definitions for IDE, C Programming Language, and Compiler.

RKElectricalman 06-12-2006 15:42

Re: MPLAB
 
MPLAB, as stated above, is an IDE, and It includes the compiler for the code too. It uses C programming, so unless if you're going to use Easy C you're going to have to learn how to program in C. I'd suggest learning C before the season starts, and getting a nice basis of it before trying Easy C as well. That way you'll have a nice understanding of everything before the season starts, ya know? Plus there's always more to learn, and getting a heads up on it will really help.

Extra info: MPLAB is made my Microchip technologies, and can be used in most C-based Interfaces, (i think )

Steve S. 06-12-2006 20:29

Re: MPLAB
 
Here is a link to the MPLAB Page on Microchip's Site

http://www.microchip.com/stellent/id...&part=SW007002

Jimmy Cao 07-12-2006 18:07

Re: MPLAB
 
MPLAB is, as has already been stated above many times, an IDE. It's used my most teams who are not using Easy-C to program their robot.

MPLAB serves 2 main purposes. First, it is used to write the code itself. It is, effectively, just a text editor for this purpose.

It's second, and more useful purpose, is as a compiles. If the compiler is installed, it can build your code. It takes your text, which means nothing to the RC, and makes it into a HEX file (and various outer file types along the way)

Alexa Stott 07-12-2006 19:05

Re: MPLAB
 
Quote:

Originally Posted by efoote868
I think your only other option is EasyC... which is a graphically interfaced version.

I do believe that there is a way to get Eclipse working, as well. I know that right now they're working on improving it. So that is just another option.

shawger 08-12-2006 10:35

Re: MPLAB
 
Quote:

Originally Posted by AtalanteStar25
I do believe that there is a way to get Eclipse working, as well. I know that right now they're working on improving it. So that is just another option.

Or VIM or another text editor providing you have the right makefiles. There is a thread somewhere around here for that.

Qbranch 08-12-2006 16:56

Re: MPLAB
 
Quote:

Originally Posted by Lostmage333
It's second, and more useful purpose, is as a compiles. If the compiler is installed, it can build your code. It takes your text, which means nothing to the RC, and makes it into a HEX file (and various outer file types along the way)

Well... technically... not exactly. MPLAB itself is just an IDE, no more. The compiler, specifically C18 for our purposes, is what actually makes the code.

If you had some kind of issue with using MPLAB, you could write your code or word or edit or whatever text editor you want, and just call the compiler from the command line.

If you don't like C18, HiTech (not to be confused with HiTec who makes airplane servos/receivers) also makes a compiler for embedded processors.

On the Eclipse subject... theoretically using that IDE should work since most of what an IDE is is a text editor as said before. And since you aren't using an ICD or ICE there shouldn't be any issues with interfacing with the debugger. Personally I like MPLAB but have used Eclipse as well... if you really want to try it I'll bet it can be done.

Quote:

Originally Posted by RKElectricalman
Extra info: MPLAB is made my Microchip technologies, and can be used in most C-based Interfaces, (i think )

If by MPLAB you mean C18 then yes you are correct as far as I know.

I use Microchip stuff around work and also for those fun weekend projects :rolleyes: soooo... if anybody needs any help/questions answered just post or hit me up.

-Q

Astronouth7303 08-12-2006 18:06

Re: MPLAB
 
Quote:

Originally Posted by Qbranch
If you had some kind of issue with using MPLAB, you could write your code or word or edit or whatever text editor you want, and just call the compiler from the command line.

There's enough freeware editors that you should download one instead of trying to make Word work.

Also, I can almost guarantee that if you compile/link by hand, you will become discouraged and screw it up.

Quote:

Originally Posted by Qbranch
If you don't like C18, HiTech (not to be confused with HiTec who makes airplane servos/receivers) also makes a compiler for embedded processors.

Just a word of warning: any alternative compiler you use will likely NOT be supported by us or IFI. (I know of no teams that don't use MCC18.) If you do use it, it MUST be able to read libraries created by MCC18.

Quote:

Originally Posted by Qbranch
On the Eclipse subject... theoretically using that IDE should work since most of what an IDE is is a text editor as said before. And since you aren't using an ICD or ICE there shouldn't be any issues with interfacing with the debugger. Personally I like MPLAB but have used Eclipse as well... if you really want to try it I'll bet it can be done.

It's not as hard as he makes it out to be:
  1. Get Eclipse
  2. Get the CDT (C/C++ Development Toolkit)
  3. an MCC18 toolchain plugin (prograid's original)

Also, I'm one of the people working on improving Eclipse's support of the MCC18.


All times are GMT -5. The time now is 01:25.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi