Log in

View Full Version : Learn PIC assembly


bronxbomber92
04-01-2008, 23:55
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

comphappy
04-01-2008, 23:57
You can start your knowledge feeding here http://cba.mit.edu/projects/fablab/docs/D.pdf

whytheheckme
05-01-2008, 00:01
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

comphappy
05-01-2008, 00:12
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.

bronxbomber92
05-01-2008, 00:21
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/pictutorial/picmain.htm

Capt. Quirk
05-01-2008, 03:43
Good book for PASM and C (http://www.amazon.com/123-Microcontroller-Experiments-Evil-Genius/dp/0071451420)

3dude_2231
05-01-2008, 06:07
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/pictutorial/picmain.htm

this is where I started :D
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.

jtdowney
05-01-2008, 07:46
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.

bronxbomber92
05-01-2008, 10:11
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?

jtdowney
05-01-2008, 10:19
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.

Foster
05-01-2008, 10:29
123 PIC Microcontroller Experiments for the Evil Genius by Myke Predko (http://www.amazon.com/exec/obidos/ASIN/0071451420/fosterworld) 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.

bronxbomber92
05-01-2008, 10:56
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.

3dude_2231
05-01-2008, 15:24
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.

Los Frijoles
06-01-2008, 12:23
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 (http://www.mstracey.btinternet.co.uk/pictutorial/picmain.htm) 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.