Datasheet
Programming PIC Microcontrollers in BASIC - mikroElektronika
1.2 Choosing the right PIC for the task
Currently, the best choice for application development using BASIC are: the famous 
PIC16F84, PIC16F87x, PIC16F62x, PIC18Fxxx. These controllers have program memory 
built on FLASH technology which provides fast erasing and reprogramming, thus allowing 
fast debugging. By a single mouse click in the programming software, microcontroller 
program can be instantly erased and then reloaded without removing chip from device. Also, 
program loaded in FLASH memory can be stored after the power is off. Beside FLASH 
memory, microcontrollers of PIC16F87x and PIC16F84 series also contain 64-256 bytes of 
internal EEPROM memory, which can be used for storing program data and other 
parameters when power is off. BASIC features built-in EEPROM_Read and 
EEPROM_Write instructions that can be used for loading and saving data to EEPROM.
Older PIC microcontroller families (12C67x, 14C000, 16C55x, 16C6xx, 16C7xx, and 
16C92x) have program memory built on EPROM/ROM technology, so they can either be 
programmed only once (OTP version with ROM memory) or have a glass window (JW 
version with EPROM memory) which allows erasing by few minutes exposure to UV light. 
OTP versions are usually cheaper and are a natural choice for manufacturing large series of 
products.
In order to have complete information about specific microcontroller in the application, you 
should get the appropriate Data Sheet or Microchip CD-ROM.
The program examples worked out throughout the book are mostly to be run on 
the microcontrollers PIC16F84 or PIC6F877, but with minor adjustments, can 
be run on any other PIC microcontroller.
1.3 A word about code writing
Technically, any text editor that can save program file as pure ASCII text (without special 
symbols for formatting) can be used for writing your BASIC code. Still, there is no need to 
do it “by hand” — there are specialized environments that take care of the code syntax, free 
the memory and provide all the necessary tools for writing a program.
http://www.mikroelektronika.co.yu/english/product/books/picbasicbook/01.htm (4 sur 11)05/11/2004 02:10:07










