Page 52 - Making PIC Microcontroller Instruments and Controllers
P. 52
tHE P|CBAS|C PFO COflPtLEn StnUCTtOt{ SEt 4r
Remainder (modulus)
Shift left
Shift right
ABS
cos Cosine
DCD 2n decode
DIG Digit
DIV32 31 bit x 15-bit divide
MAX Maximum
MIN Minimum
NCD Encode
REV Reverse bits
SIN Sine
SQR Square root
& Bitwise AND
I Bitwise OR
Bitwise exclusive OR
Bitwise NOT
&/ Bitwise NOT AND
Bitwise NOT OR
Bitwise NOT exclusive OR
As can be seen flom the preceding comparison, the PICBASIC PRO Conpikr prr-
yides a much more conprchensbe instruction set and. therefore is the compiler of choice
fbr serious development work.
"C,"
It is, of course. also possible to program microcontrollers in assembly language and
but lhis book does not cover these ianguages. A number of good books are available on
jn
the subjecr, and some that I iooked over are listed a file on the suppo{ Web site with
my cornments. Some educators feel that a Junior College level class on the subject is the
best way to leam how to do this and there is some merit to this but for our purposes the
PICBASIC PRO Conpiler will do everything we need ard is much easier to use.
In addition to the compile\ Wu need an editor lo allow you to write and edit pro-
grams with ease. A very adequate editor is provided as a part of the compiler package.
Its called the Microcode Studio editor. This comprehensive and powerful editoris aiso
available at no charge (on the Internet) from Microcode Studios. This is a complete editor