Go to Post All the robots win, because we built them and they work. ;) - synth3tk [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 12-01-2008, 21:57
d_vnk d_vnk is offline
Registered User
FRC #2428
 
Join Date: Jan 2008
Location: Sewickley
Posts: 1
d_vnk is an unknown quantity at this point
MPLab

I'm working for the new team 2428 out of Sewickley, PA, and am having problems regarding MPLab. Well, more than just problems. Unfortunately I have not a clue were to start, how to program, and how to do much of anything with this software and I am looking for the most basic help imaginable. If anyone could direct me in the right direction, or has some helpful advice, I greatly appreciate it.
  #2   Spotlight this post!  
Unread 12-01-2008, 22:07
Joohoo's Avatar
Joohoo Joohoo is offline
Registered User
FRC #0340 (G.R.R.)
Team Role: Mentor
 
Join Date: Jun 2005
Rookie Year: 2005
Location: Rochester
Posts: 241
Joohoo is just really niceJoohoo is just really niceJoohoo is just really niceJoohoo is just really niceJoohoo is just really nice
Send a message via AIM to Joohoo Send a message via Yahoo to Joohoo
Re: MPLab

First off welcome to this community. I won't try to say what has already been said before, I would suggest that you look here http://www.chiefdelphi.com/forums/sh...ad.php?t=30976 for some help.

If you need help beyond what is there then try finding a team nearby to get some more direct help. I find that even though Chiefdelphi is a great way to learn, I find that having someone you can talk face to face about your problems is a much more efficient way to fix your problems and learn more.
  #3   Spotlight this post!  
Unread 12-01-2008, 22:10
jee7s jee7s is offline
Texan FIRSTer, ex-frc2789, ex-frc41
AKA: Jeffrey Erickson
FRC #6357
 
Join Date: Nov 2007
Rookie Year: 1997
Location: Dripping Springs, TX
Posts: 319
jee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond repute
Re: MPLab

I'd suggest starting off with some available default code, so you can at least you can get the robot up and running.

As for customization...to properly use MPLAB, you need a combination of architecture and programming knowledge. The syntax is (essentially) ANSI C (not C++ or C#), and there are many books available on C programming. To really interface with the controller properly, you need to read up on the processor architecture (Microchip's PIC18F8722). This means deciphering things like this:

TMR0L (the low byte of timer 0)
TMR1IF (timer one is full/overflowed)

Thankfully, IFI's default code renames the ports to the names you see printed on the outside of the box. Also, Kevin Watson's FRC code handles a lot of the deciphering I mentioned above. Both are good starting places.

A big thing to keep in mind is that the PIC doesn't do floating point efficiently. This means that fractions/decimals/rationals slow the processor down. As an example:

i / 2
is more efficient than
0.5 * i

so, stick to integers as best you can.

In the end, programming the controller is a lot like algebra. But, C has its twists, so you need a good book on C to reference for syntax and errors.

-JEE
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
MPLAB? 987HighRoller Programming 5 09-01-2008 19:31
Download MPLab Chris2 Programming 7 01-08-2007 06:58
MPLAB ThienAn Programming 10 08-12-2006 18:06
Mplab WesleyBalmer Programming 6 14-01-2005 15:23
using the MPLAB IDE MPLAB SIM simulator WizardOfAz Programming 1 03-11-2003 01:24


All times are GMT -5. The time now is 00:50.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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