Go to Post ...UFH nominations are like jello, there is always room for one more. - Barry Bonzack [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 04-01-2008, 23:55
bronxbomber92 bronxbomber92 is offline
Registered User
FRC #1551 (Grapes of Wrath)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Naples
Posts: 75
bronxbomber92 is an unknown quantity at this point
Learn PIC assembly

I'd like to learn (or at least start learning) assembly for the PIC architecture (as I take, that's what the robot's is). Does anyone have any resources, tutorials, ect? I'm completely new to assembly (well, I understand the idea, but I have no real experience with it - a day worths of reading x86 assembly docs).

Thanks,
Jedd
  #2   Spotlight this post!  
Unread 04-01-2008, 23:57
comphappy comphappy is offline
Registered User
AKA: Brennan Ashton
FRC #2605 (A2D_16)
Team Role: Leadership
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Bellingham, WA
Posts: 157
comphappy is a splendid one to beholdcomphappy is a splendid one to beholdcomphappy is a splendid one to beholdcomphappy is a splendid one to beholdcomphappy is a splendid one to beholdcomphappy is a splendid one to beholdcomphappy is a splendid one to behold
Send a message via AIM to comphappy
Re: Learn PIC assembly

You can start your knowledge feeding here http://cba.mit.edu/projects/fablab/docs/D.pdf
  #3   Spotlight this post!  
Unread 05-01-2008, 00:01
whytheheckme's Avatar
whytheheckme whytheheckme is offline
Registered User
AKA: Jacob Komar
no team
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Providence, RI
Posts: 1,320
whytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond repute
Send a message via ICQ to whytheheckme Send a message via AIM to whytheheckme Send a message via MSN to whytheheckme Send a message via Yahoo to whytheheckme
Re: Learn PIC assembly

Wow, that's a lot simpler assembly than I would have thought. Very few instructions. I guess I'm used to dealing with more complex assembly languages, like that for the 68HC11, or even a processor I designed myself.

Jacob
  #4   Spotlight this post!  
Unread 05-01-2008, 00:12
comphappy comphappy is offline
Registered User
AKA: Brennan Ashton
FRC #2605 (A2D_16)
Team Role: Leadership
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Bellingham, WA
Posts: 157
comphappy is a splendid one to beholdcomphappy is a splendid one to beholdcomphappy is a splendid one to beholdcomphappy is a splendid one to beholdcomphappy is a splendid one to beholdcomphappy is a splendid one to beholdcomphappy is a splendid one to behold
Send a message via AIM to comphappy
Re: Learn PIC assembly

Quote:
Originally Posted by whytheheckme View Post
Wow, that's a lot simpler assembly than I would have thought. Very few instructions. I guess I'm used to dealing with more complex assembly languages, like that for the 68HC11, or even a processor I designed myself.

Jacob
Its sudo RISC, I dont get why FIRST does not use a real processor like HC12, it is so much more powerful, and actually used for real tasks besides tv remotes.
  #5   Spotlight this post!  
Unread 05-01-2008, 00:21
bronxbomber92 bronxbomber92 is offline
Registered User
FRC #1551 (Grapes of Wrath)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Naples
Posts: 75
bronxbomber92 is an unknown quantity at this point
Re: Learn PIC assembly

Thanks for the PDF. Although, I don't think just the instruction set is enough to teach me assembly in general also. Is this a good starting point? http://www.mstracey.btinternet.co.uk...al/picmain.htm
  #6   Spotlight this post!  
Unread 05-01-2008, 03:43
Capt. Quirk Capt. Quirk is offline
Registered User
AKA: Bill Mazzacane
FRC #1704 (Robotic Steelers)
Team Role: Mentor
 
Join Date: Aug 2007
Rookie Year: 2007
Location: SoCalif
Posts: 64
Capt. Quirk will become famous soon enoughCapt. Quirk will become famous soon enough
Re: Learn PIC assembly

Good book for PASM and C
  #7   Spotlight this post!  
Unread 05-01-2008, 06:07
3dude_2231's Avatar
3dude_2231 3dude_2231 is offline
no one messes with a Thingy =|
AKA: Menscher,Ran Menscher =]
FRC #2231 (Onyxtronix)
Team Role: Leadership
 
Join Date: Feb 2007
Rookie Year: 2007
Location: Shoham, Israel
Posts: 233
3dude_2231 is a jewel in the rough3dude_2231 is a jewel in the rough3dude_2231 is a jewel in the rough
Send a message via MSN to 3dude_2231
Re: Learn PIC assembly

Quote:
Originally Posted by bronxbomber92 View Post
Thanks for the PDF. Although, I don't think just the instruction set is enough to teach me assembly in general also. Is this a good starting point? http://www.mstracey.btinternet.co.uk...al/picmain.htm
this is where I started
I totally recommend it =].

BUT, you gotta have something to experiment with.
I got a PICKit2 from Microchip, and half a year later, it's still fun for me.

Ran.
__________________
Redefining the word "Rookie". (for 2 years now..)


Israeli Off Season Games: WINNERS!
check out this cool project I'm into..

  #8   Spotlight this post!  
Unread 05-01-2008, 07:46
jtdowney jtdowney is offline
Boiler Up
AKA: John Downey
FRC #4302 (Robophins)
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2006
Location: Chicago
Posts: 300
jtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant future
Re: Learn PIC assembly

Quote:
Originally Posted by comphappy View Post
Its sudo RISC, I dont get why FIRST does not use a real processor like HC12, it is so much more powerful, and actually used for real tasks besides tv remotes.
The word on the Chief is they are changing the whole RC next season so we will most likely be looking at a new architecture and new development tools.

Personally I'd like to see FIRST move to an ARM architecture.
__________________
John Downey
Lead Robot Inspector - Purdue IndianaFIRST District
Whitney Young Magnet High School/Robophins (FRC 4302) - Mentor (2013-current)
Midwest Regional Planning Committee - Member (2012-current)
Boilermaker Regional Planning Committee - Member (2011-2014)
Robot Inspector (2008-current)
Purdue FIRST Programs - Staff Advisor (2008-2011)
Lafayette-Jefferson High School/Precision Guessworks (FRC 1646) - Mentor (2006-2011)

Last edited by jtdowney : 05-01-2008 at 07:49.
  #9   Spotlight this post!  
Unread 05-01-2008, 10:11
bronxbomber92 bronxbomber92 is offline
Registered User
FRC #1551 (Grapes of Wrath)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Naples
Posts: 75
bronxbomber92 is an unknown quantity at this point
Re: Learn PIC assembly

Quote:
Originally Posted by jtdowney View Post
The word on the Chief is they are changing the whole RC next season so we will most likely be looking at a new architecture and new development tools.

Personally I'd like to see FIRST move to an ARM architecture.
Would that mean it'd might be smart to hold off, and wait to get the kit of parts today, and see what architecture the RC is using?
  #10   Spotlight this post!  
Unread 05-01-2008, 10:19
jtdowney jtdowney is offline
Boiler Up
AKA: John Downey
FRC #4302 (Robophins)
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2006
Location: Chicago
Posts: 300
jtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant future
Re: Learn PIC assembly

Quote:
Originally Posted by bronxbomber92 View Post
Would that mean it'd might be smart to hold off, and wait to get the kit of parts today, and see what architecture the RC is using?
I was speaking about the 2009 season.
__________________
John Downey
Lead Robot Inspector - Purdue IndianaFIRST District
Whitney Young Magnet High School/Robophins (FRC 4302) - Mentor (2013-current)
Midwest Regional Planning Committee - Member (2012-current)
Boilermaker Regional Planning Committee - Member (2011-2014)
Robot Inspector (2008-current)
Purdue FIRST Programs - Staff Advisor (2008-2011)
Lafayette-Jefferson High School/Precision Guessworks (FRC 1646) - Mentor (2006-2011)
  #11   Spotlight this post!  
Unread 05-01-2008, 10:29
Foster Foster is offline
Engineering Program Management
VRC #8081 (STEMRobotics)
Team Role: Mentor
 
Join Date: Jul 2007
Rookie Year: 2005
Location: Delaware
Posts: 1,387
Foster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond repute
Re: Learn PIC assembly

123 PIC Microcontroller Experiments for the Evil Genius by Myke Predko is a good choice. He describes code in both C and assembler, that helps make the transition / learning a little easier.

PIC assembler is easy, since the instruction set is simple. It lacks some of the cool features of some other processors, but when you look at how fast you can prototype, it is a good trade.
  #12   Spotlight this post!  
Unread 05-01-2008, 10:56
bronxbomber92 bronxbomber92 is offline
Registered User
FRC #1551 (Grapes of Wrath)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Naples
Posts: 75
bronxbomber92 is an unknown quantity at this point
Re: Learn PIC assembly

Thanks for the book recommendation. I might buy it.

3dude_2231 - Do any of the software and compilers for PIC work on Mac OS X? I'm afraid I won't be able to experiment on anything if it doesn't.
  #13   Spotlight this post!  
Unread 05-01-2008, 15:24
3dude_2231's Avatar
3dude_2231 3dude_2231 is offline
no one messes with a Thingy =|
AKA: Menscher,Ran Menscher =]
FRC #2231 (Onyxtronix)
Team Role: Leadership
 
Join Date: Feb 2007
Rookie Year: 2007
Location: Shoham, Israel
Posts: 233
3dude_2231 is a jewel in the rough3dude_2231 is a jewel in the rough3dude_2231 is a jewel in the rough
Send a message via MSN to 3dude_2231
Re: Learn PIC assembly

I really don't know, as I use win.

best answer is found at Microchip's support I guess.

anyway, just PM me, or 'MSN' me if you got any question =]

good luck.
__________________
Redefining the word "Rookie". (for 2 years now..)


Israeli Off Season Games: WINNERS!
check out this cool project I'm into..

  #14   Spotlight this post!  
Unread 06-01-2008, 12:23
Los Frijoles's Avatar
Los Frijoles Los Frijoles is offline
Stormin' Mormon
AKA: Kevin Cuzner
FRC #2062 (C.O.R.E.)
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Waukesha, WI
Posts: 27
Los Frijoles has a spectacular aura aboutLos Frijoles has a spectacular aura about
Send a message via AIM to Los Frijoles
Re: Learn PIC assembly

The book Programming and Customizing the PIC Microcontroller by Myke Predco is a good book which is easily purchased from amazon for a reasonable price. When I first learned PIC ASM in early 2006 I used the tutorial here along with help from people online before I learned about that book. The book has tutorials on just about everything from using the FSR registers to using emulated & onboard UART.
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
PIC Assembly Followup kitscuzz Programming 6 29-05-2007 20:12
Want to learn PIC Programming? Good deal here! Rombus Chit-Chat 2 10-04-2006 11:43
Importing assembly into an assembly... James Green Inventor 8 22-01-2004 22:17


All times are GMT -5. The time now is 09:17.

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