Compiler for PIC16C84
with code optimisation
Published in issue 284, January 2000
This article describes how to write PIC 16C84 assembler code programs using a compiler written for the Windows 95/98 platform.The PIC compiler allows programs to be written in a high-level language and it generates the necessary assembler code. The code can be modified, assembled or simulated using the (free) Microchip MPLAB software.There are considerable advantages in using a compiler. The ability to write a PIC program using English like commands is easier than programming directly in assembler language. Time taken to write and test software is usually much less with a compiled language, and to prove the point the Windows PIC compiler itself was written using a compiler.The PIC compiler is not based on any one high-level language but has elements of Pascal and Visual BASIC. Furthermore the compiler is flexible and allows for different program syntax. The compiler is written for the Windows environment, which should make the software easy to use. As all the necessary PIC codes are defined within the compiler program, no external setup or header files are needed.
Click below to download a PDF copy of this article from Elektor magazine.
Please note. In view of the complexity of international markets, Elektor cannot guarantee the availability of components for this project.