Previous in Forum: General Question Regarding Food Prices and Oil   Next in Forum: WIND ENERGY
Close
Close
Close
10 comments
Rate Comments: Nested
Guru
Hobbies - DIY Welding - New Member

Join Date: Feb 2007
Location: Next to the Prime Merridian (51°29'34.50"N 0°13'32.85"W)
Posts: 780
Good Answers: 1

microchip(.com)

04/27/2008 11:59 AM

Hi guys,

Some of you might recall I once started a conv about learning to program PICs and the other day this is what they recommended on their website for a novice like myself -"DV164120 - PICkit 2 Starter Kit"- who was brought up on the Z80 and only knows about assembly and nothing about C.

I have also found the following -"DV164121 - PICkit 2 Debug Express"- but unsure if this is what I should opt for instead of the other.

What do you suggest? Do you think I should get them both?

__________________
Making mistake is part of learning.
Register to Reply
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.
Guru
United Kingdom - Member - Not a New Member Hobbies - Musician - New Member Hobbies - Fishing - New Member

Join Date: May 2006
Location: Reading, Berkshire, UK. Going under cover.
Posts: 9684
Good Answers: 468
#1

Re: microchip(.com)

04/27/2008 4:10 PM

Just had a look at the Microchip documentation. The "DV164121 - PICkit 2 Debug Express" includes an assembler (MPASM).

I also started with (a DEC LSI11 in machine code then) a Z80 using machine code, then assembler. I moved on to C (which isn't too scary, once you've seen a few examples and had a go yourself), and ended up (while using the Z80) by mixing C and assembler.

If the C compiler is anything like the one I had for the Z80, it will produce an assembly code listing - which you can study (to see how it all hangs together), or even edit & assemble (then link to other files/modules/procedures - call them whatever - in your project).

Most C compilers generate very efficient code, but if you want to really make a program fly, you can write some of the low-level stuff in assembler, discarding the bits of overhead that the compiler usually puts in.

I'd go for it.

__________________
"Love justice, you who rule the world" - Dante Alighieri
Register to Reply
Guru
Hobbies - DIY Welding - New Member

Join Date: Feb 2007
Location: Next to the Prime Merridian (51°29'34.50"N 0°13'32.85"W)
Posts: 780
Good Answers: 1
#2
In reply to #1

Re: microchip(.com)

04/27/2008 4:40 PM

John?

Do you think this Kit is a better choice than the other one?

As far as I could see it is a more powerful Kit but since I'd never done quite like this before I am not sure which is better for me?

I noticed that the starter kit uses smaller more basic MP but I am not sure if it can debug like the "Debug Express"!

__________________
Making mistake is part of learning.
Register to Reply
Guru
United Kingdom - Member - Not a New Member Hobbies - Musician - New Member Hobbies - Fishing - New Member

Join Date: May 2006
Location: Reading, Berkshire, UK. Going under cover.
Posts: 9684
Good Answers: 468
#3
In reply to #2

Re: microchip(.com)

04/27/2008 5:12 PM

Hi, Stephen,

It looks as if the Starter Kit has pretty much the same capabilities re. assembler & tutorial stuff. Looks like the Starter is a sub-set of the Debug one.

It really comes down to how deep your pocket is (if you're paying!). Sorry, I haven't looked at the prices, but I assume the debug version is more expensive.

If you can stretch to it, go for the debug one - as the name suggests, it's probably a more useful package for learning the ropes. As far as I know, the core architecture of all the PICs is more or less the same, with the bigger jobs having more I/O & clever on-board stuff - so it doesn't really matter which you go for as far as programming them.

The major difference seems to be whether you think you'll need to be able to try out a bit of circuitry hooked up to the PIC - the debugger will (I assume) let you step through a program while you flick switches/prod around with 'scope or meter or whatever. Again, it's a balancing act - how much can you splash out on it, and what return will you get?

It's probably worth phoning some of the UK contacts - a decent tech-type guy should give you some straight advice.

Let us know how you get on, & good luck,

John.

__________________
"Love justice, you who rule the world" - Dante Alighieri
Register to Reply
Guru
Hobbies - DIY Welding - New Member

Join Date: Feb 2007
Location: Next to the Prime Merridian (51°29'34.50"N 0°13'32.85"W)
Posts: 780
Good Answers: 1
#4
In reply to #3

Re: microchip(.com)

04/27/2008 6:08 PM

Hi John,

I Just did not wanna end up with something very basic and later regret it that I should have get a more powerful kit.

I think this is all wanted to hear. Just somebody confirming it to me.

They both cost the same £25.44 +£10.5Del +£5.0Hand + VAT= £48.1 and I placed my order for the Debug Express kit but minutes later I had changed my mind and they cancelled it for me.

But now I think I just go ahead with the Debug Express kit after all.

I sure will let you know how I get on with it & thanx.

Stephen.

__________________
Making mistake is part of learning.
Register to Reply
Guru
United Kingdom - Member - Not a New Member Hobbies - Musician - New Member Hobbies - Fishing - New Member

Join Date: May 2006
Location: Reading, Berkshire, UK. Going under cover.
Posts: 9684
Good Answers: 468
#5
In reply to #4

Re: microchip(.com)

04/27/2008 9:01 PM

If they cost the same, I'd definitely go for the debug job. 'Night, John.

__________________
"Love justice, you who rule the world" - Dante Alighieri
Register to Reply
Power-User
Hobbies - HAM Radio - VE6LDS Popular Science - Weaponology - New Member Canada - Member - New Member Engineering Fields - Nuclear Engineering - New Member

Join Date: Aug 2006
Location: Edmonton, Alberta, Canada
Posts: 284
Good Answers: 10
#6
In reply to #5

Re: microchip(.com)

04/28/2008 4:16 PM

The good folks at Microchip also provide a development system that will run under windows. If you are content to use the C compiler that doesn't have all of the exotic optimization features that is free too. The development environment which includes a simulation facility, the C compiler, and the assembler are all there waiting to be downloaded for free.

Assembler is not a standard language like C or FORTRAN. It is highly architecture dependent and based on the native instructions of the processor. An assembler program written for a Z80, and a program to do the same task on a PIC will be as different as night and day. Even assembler programs written for different members of the PIC family may be different because the more advanced PIC's have instructions like multiply and divide that might have to be simulated on the smaller processors. Just look at the facilities that the larger chips which have the clock feature built in. To program an alarm clock & calendar for one of the smaller chips would require a lot of code to emulate the hardware clock/calendar that is available in the later chips.

Good luck on your decision. I too am trying to figure out what I should do regarding a PIC development board and which point in the PIC processor line I should start with.

Having cut my programming teeth on IBM 360 assembler in the late 60's I don't think that I may be smart enough to program the smaller chips in assembler, having to perform multiple word add's and subtract's as well as simulting multiply and divide and converting from binary to ASCII kind of scares me. If I go ahead with it I will probably use the C language and let the comiler and library routines do all of the heavy lifting.


My fears not withstanding, I am extremely impressed with the amount of function that the MICROCHIP folks get into such small and inexpensive packages.

__________________
Semi-retired systems analyst, part time Ham radio operator, full time grandfather.
Register to Reply
Power-User

Join Date: May 2007
Location: West Jordan, Utah, USA, Earth
Posts: 144
Good Answers: 5
#7
In reply to #6

Re: microchip(.com)

04/28/2008 5:04 PM

Hi everyone,

I too was in this position not to long ago. I did a TON of research and finally went with this...

http://www.mikroe.com/en/tools/easypic5/

The compiler is free to start out with and the board is definitely the bang for the buck.

Support has been REALLY incredible. The forums are filled with people so smart it will scare you.

Give it a look. I have developed three different products for my company in the last year using the MikroBasic (because that is what I know) and this board. The first one using the free version. I liked it so much I got the company to buy it AND I bought a copy and a board for home too.

If you have any questions feel free to let me know.

bill12780

__________________
I'm fix'in to do somethin' stupid as hell...But I'm gonna do it anyway.
Register to Reply
Guru
Hobbies - DIY Welding - New Member

Join Date: Feb 2007
Location: Next to the Prime Merridian (51°29'34.50"N 0°13'32.85"W)
Posts: 780
Good Answers: 1
#8
In reply to #7

Re: microchip(.com)

04/28/2008 5:36 PM

Hi Bill?

I'm glad you responded to this topic.

I finally decided today to put my order for the "Debug Express" kit again.

I am a beginner but I really must get started somewhere.

If you think I could contact you in future should I get stuck with it I might if customer support won't be good enough to help me.

__________________
Making mistake is part of learning.
Register to Reply
Guru

Join Date: Jun 2006
Posts: 501
Good Answers: 8
#9

Re: microchip(.com)

04/29/2008 12:34 PM

Check out the magazine Nuts and Volts. They have courses on several PIC over years, (you can buy back issues). On there web site they have a lot of documentation.

Register to Reply
Power-User

Join Date: Jan 2008
Location: Toronto, Canada
Posts: 302
Good Answers: 4
#10

Re: microchip(.com)

04/30/2008 4:28 PM

Motorola has lots of kits for their microprocessors. Check out their website.

If you want to have fun: http://www.adafruit.com/index.php?main_page=index

If you want to do something with your car: http://www.bgsoflex.com/megasquirt.html

__________________
Pineapple
Register to Reply
Register to Reply 10 comments
Copy to Clipboard

Users who posted comments:

bill12780 (1); Isti80 (3); jmart23 (1); JohnDG (3); Pineapple (1); The_curious_one (1)

Previous in Forum: General Question Regarding Food Prices and Oil   Next in Forum: WIND ENERGY
You might be interested in: PCI Express Products, Impact Hammers

Advertisement