PDA

View Full Version : How can i take start programming



mubashir
- 13th May 2007, 19:26
Hi
I am a electronic technition.I can design and analyze a cct but i was stucked a lot while trouble shooting a micro controlling based cct or pic based cct.I need help to take a start for these.



best regards


mubashir

Pic_User
- 14th May 2007, 01:34
Hi
I am a electronic technition.I can design and analyze a cct but i was stucked a lot while trouble shooting a micro controlling based cct or pic based cct.I need help to take a start for these.
best regards
mubashir
Hi mubashir,

Welcome to the MELabs PICBASIC Forum.
If you start with PIC Microchip microcontrollers:

Do you have a programmer, compiler and compiler editor?

Mentioned often on this forum:
PICkit 2 programmer, PicBasic Pro compiler and MicroCode Studio compiler editor

Please look at and make note of the difference between these compilers:
PicBasic compiler (PBC)
PicBasic Pro compiler (PBP)

You may want to start with a well used PIC model. Most here would discourage using the PIC16F84, it is now quite limited, and difficult to obtain. There are many newer PICs that are less expensive and more powerful.
For instance the cheaper PIC16F628, does everything the old PIC16F84 does, and a lot more.
http://www.rentron.com/PIC16F628.htm

There are different techniques used to build the electronic circuits. Some use a fairly complex “development” circuit board. Some use the “solder-less bread-board” and just plug components in. Some wire “point to point” or “wire wrap”. Some lay-out circuits on a “printed circuit board”. We would recommend that you don’t start with the more permanent type prototype method. The development board or the solder-less bread-board seem to be a better method.

Also, most everyone on the forum will recommend that you start small.
Because you are familiar with electronic design, you are far ahead of a lot of the beginners.
But, still start with the simplest of PIC programs, simplest of circuit layouts.

The NOW famous, “blink an LED” is the most recommended start project. We all still revert all the way back to it to test our set-ups and eliminate non complex error possibilities. The code should be cut and pasted to eliminate typos.
Look for: blink.bas (bottom of page)
http://www.rentron.com/PicBasic/products/PICBASIC-PRO.htm

There are code examples at these sites:
http://www.rentron.com/PicBasic1.htm
http://www.rentron.com/PicBasic2.htm

Please do not try any complicated programs until you have built a few of the simpler ones.
Start blinking an LED.
Make the LED come on when an input is switched.
Make the LED dim and brighten.
Later, you can add a LCD display, or more fancy stuff.

Anyone else have more advice for mubashir?

Hope this helps,
-Adam-

mubashir
- 15th May 2007, 20:07
Hi
No i do not have a programmer, compiler and compiler editor.Please tell me how can i get these and from where?

mister_e
- 15th May 2007, 20:16
To start, don't go under MicroChip PICKIT 2. it's actually listed ~40 USD$

IT'S WORKING. Don't waste your time to build your own JDM, PicAll and all other freebies one... they simply don't worth AND you can't trust them..

Go go go, PICKIT 2... nice start point.

MicroChipDirect or any good electronic supplier will have them.

skimask
- 15th May 2007, 20:43
Hi
No i do not have a programmer, compiler and compiler editor.Please tell me how can i get these and from where?

www.google.com
www.microchip.com
www.google.com
www.melabs.com
www.google.com
www.microsoft.com
etc.etc.etc.
Just a little bit of looking will get you a LONG way...

Pic_User
- 16th May 2007, 01:05
PICkit 2 programmer, PicBasic Pro compiler and MicroCode Studio compiler editor

You should shop around, these will tell you about the products:
PICkit 2 programmer
Part Number: DV164121 - PICkit 2 Debug Express
http://www.microchipdirect.com/productsearch.aspx?Keywords=DV164121

PicBasic Pro compiler DEMO
http://www.rentron.com/Micro-Bot/PBP_Demo.htm

PicBasic Pro compiler buy full version
http://www.rentron.com/PicBasic/products/PICBASIC-PRO.htm

MicroCode Studio compiler editor free DEMO version
MicroCode Studio Plus compiler editor buy full version
http://www.rentron.com/PicBasic/products/MicroCode_Studio.htm