PIC Microcontrollers: Know It All

BASIC is one of the oldest and one of the easiest programming languages to learn. You should be able to learn and program in BASIC in less than an hour. In this chapter, we shall be looking at the principles of programming PIC microcontrollers using the PicBasic and PicBasic Pro languages. Both these languages are very similar to the standard BASIC language but they have some modified and some additional instructions specifically for microcontroller programming.
Both PicBasic and PicBasic Pro languages have been developed by the microEngineering Labs Inc. PicBasic is a lower-cost, simpler language than PicBasic Pro and it is aimed at students and hobbyists. PicBasic Pro is more expensive, aimed at professionals, and includes additional commands for more advanced instructions.
Table 14.1 gives a list of the comparison of PicBasic and PicBasic Pro languages. Before we proceed to the chapter on PIC applications and projects, we shall be looking at how we can program the PIC microcontrollers using these languages.
| PicBasic | PicBasic Pro |
|---|---|
| Low-cost ($99.95) | Higher cost ($249.95) |
| Limited to first 2 K of program space | No program space limit |
| Interrupt service routine in assembly language | Interrupt service routine can be in assembly language or in PicBasic Pro |
| Peek and Poke used to access registers | Registers can be accessed directly by specifying their names |
| Some... |