Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

What language is better for PIC programming: C or Assembly?

Status
Not open for further replies.

mohamed saleh

Member level 3
Joined
Aug 26, 2006
Messages
62
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,768
hello
i need your advice
i am beginer in pic
i am learning it from "pic microcontroller project book" by "John Iovine"
but this book is programing by "PICBasic" which is very easy and good
but when i search the internet for pic projects i found a lot of good projects but the source code is in "c" or "assembly"

so i am confused

which is the best language to program pic

Basic : which is very easy, but there is no projects on the internet
C : which is powerful but difficult
Assembly : which is powerful but tedios

Please advice me which language is the best and i shall begin with
Also i want to know which is the best compiler for these 3 languages

thanks
 

Re: need your advice

C is popular. Assembly lanuage also a good choice for small PIC if you are going to develop applications that require tight optimization. But it takes a lot of skill, too.

Personally I have gone thru asm->PBasic->CCS C->hi-tech C->C18 for 18F...

asm is good for learning the core, then for pet projects PBasic is nice because BASIC is easy to understand.

John
 

need your advice

HI
start with assemble for your small projects.
then switch to c.
this is better
salam
Ahmed
 

need your advice

Hi mohamed saleh

it seems that you are a beginner in a Mc's world, i had read your post about
"PIC or AVR",if you want the best choice i suggest the AVR microcontrollers,
like "Attiny2313, Atmega32, Atmega8515,Attiny26,...".

If you decide to use AVR, i suggest "Pony programmer to burn your AVR".

Any way if you decide to use PIC or AVR i suggest the assembly programming for both
of them, in the second stage you can use "C with AVRGCC compiler" for AVR, or
basic lang. for PIC.

Just decide what is your way and tell me, i will supply you with a good books,source
codes,utility,...

For me i had start with PIC16fxx (in asm.) because AVR was not avaliable for me,
but now my interset is Amel AVR: mega32, mega8515,90s2313,attiny26 also in assembly
and C.

below some of links for Atmel AVR and PIC Mcs:

programming and customizing the avr microcontroller:
**broken link removed**

This is good site for pic programming in asm.:
**broken link removed**

and very nice robot project using pic16f84 vs assembly,good for begginer:
http://www.geocities.com/tjacodesign/cerberes/cerberes.html
I work this project 2 years ago it was good to collect some experince.

MODERATOR ACTION: links to illegal softwares deleted

Also search Eda, there are alot of books here.


EEhero
ehero_naas@yahoo.co.uk
 

Re: need your advice

hi..

Assembly pgms are faster to be compiled by the controller..
Less memory space will be occupied...

But C is flexible for the programmers to master..

And one important thing is without studying the core of the up u cannot be a master in PIC C.

So i prefer u to start with ASM, the main concepts and then switch to C so u ll b familiar with the architecture and limitations of the controller..

All the best...

regards,...
Sujith
 

Re: need your advice

Hello mohamed saleh,

My advice is if you are new to PIC programming it is better to learn assembly a bit before begining. That is because you can understand the very basics underline if you do it. After that you can learn a high level language like Basic or C.

Here attached a assembly tutorial for you.

Rgds,

Sudeera.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top