From: "John Jardine"
Subject: Re: Which basic compiler to buy?
Date: Tue, 10 Dec 2002 19:49:17 -0000
NNTP-Posting-Date: 10 Dec 2002 19:36:49 GMT
X-Newsreader: Microsoft Outlook Express 5.00.2615.200
Parmin wrote in message
> I want to buy a copy of basic compiler for Microchip's PIC.
> In the market there are:
> - MELab PICBASIC PRO
> - Crownhill PICBASIC pro
> - Crownhill PICBASIC PLUS
> - CHBasic Flash
> - and lots of not so popular ones.
> Which one should I buy? Which one is better for my use?
> I am currently writing the code in assembly and find it
> too tedious. I am currently using the 12C508, 16F84,
> 16F84A, 16F675, 16F627, 16F628, 16F870, 16F876, 16F876A,
> 16F877, 877A and 16F6720.
> As you can see the chips I use are 12, 14 and 16 bits.
> I also regularly use LCD, EEPROM and a number of other
> peripheral devices for the projects I made.
> I am quite proficient to write in BASIC and PASCAL language,
> but I think to keep things simple I should stick to the
> BASIC language only. Am I right? or there is a simpler way?
> Would C language be easier to use? I dont know C language
> but am willing to learn if it is better for my use.
> For the reason of stock in hand, I cannot switch to other
> brands of microcontroller until I used up all my stock.
> Which are quite large.
> I am looking forward to your suggestions.
> Thank you
Stay clear of the C!. It's an obtuse and unfriendly language having little
correspondance with good machine code routines.
It is only pre-eminent nowadays due to it being found to be so awkward to
use that it was gladly taken up by the colleges and microsoft.
A normal PC prog' written in classical Basic (not the present C-Basics eg
VB) can be rewritten or 'broken down' line by line, statement by statement
and expanded to a sufficiently detailed level that can translate *directly*
across to a PIC or other micro's machine code . Essentially a Basic language
programme is a line by line, condensed, idealised, equivalent of a machine
Thus a PIC Basic compiler can be written to make use of this easy
correspondance between a Basic statement and it's machine code equivalent
and can be very efficient.
A 'C' programme and it's strange 'structuring' will not readily do this and
the corresponding PIC 'C' compilers have to go round and round the houses
to try and provide the same PIC (or another micro) machine code