“Programming PIC Microcontrollers in BASIC” — online, free
Online comprehensive manual for programming PIC microcontrollers in BASIC.
Learn how to write your own program, debug it, and use it to start the microcontroller. We have provided plenty of practical examples with necessary connection schemes: temperature sensors, AD and DA converters, LCD and LED displays, relays, communications, and the book is constantly being updated with fresh examples. All code is commented in details to make it easier for beginners. Instruction set, operators, control structures, and other elements of BASIC are thoroughly explained with many examples. Also, the book includes a useful appendix on mikroBasic development environment: how to install it and how to use it to its full potential.
Table of Contents
- Preface
- Chapter 1: The Basics
- Chapter 2: Elements of BASIC Language
- Chapter 3: Operators
- Chapter 4: Control Structures
- Chapter 5: Built-in and Library Routines
- Chapter 6: Examples with PIC Integrated Peripherals
- Chapter 7: Examples with Displaying Data
- Chapter 8: Examples with Memory and Storage Media
- Chapter 9: Communications Examples
- Appendix A: mikroBasic IDE
Preface
In order to simplify things and crash some prejudices, I will allow myself to give you some advice before reading this book. You should start reading it from the chapter that interests you the most, in any order you find suitable. As the time goes by, read the parts you may need at that exact moment. If something starts functioning without you knowing exactly how, it shouldn’t bother you too much. Anyway, it is better that your program works than that it doesn’t. Always stick to the practical side of life. Better to finish the application on time, make it reliable and, of course, get paid for it as well as possible.
In other words, it doesn’t matter if the exact manner in which the electrons move within the PN junctions escapes your knowledge. You are not supposed to know the whole history of electronics in order to assure the income for you or your family. Do not expect that you will find everything you need in a single book, though. The information are dispersed literally everywhere around us, so it is necessary to collect them diligently and sort them out carefully. If you do so, the success is inevitable.
With all my hopes of having done something worthy investing your time in.
Yours,
Nebojsa Matic
mikroElektronika Recommends
EasyPIC 3
Development system for PIC MCUs
USB programmer on board! System supports 18, 28 and 40-pin microcontrollers (it is delivered with PIC16F877). With the system also comes the programmer. You can test many different industrial applications on the system: temperature controllers, counters, timers… [more]
mikroBasic
Advanced BASIC compiler for PIC
A beginner? Worry not. Easy-to-learn BASIC syntax, advanced compiler features, built-in routines, source-level debugger, and many practical examples we have provided allow quick start in programming PIC. Highly intuitive, user-friendly IDE and comprehensive help guarantee success! [more]
PICFlash2
Programmer for PIC16 and PIC18 family
PIC Flash is the USB In-System programmer for Flash family of Microchip’s MCUs. Beside standard FLASH MCUs, it can also program the latest models of PIC18 family. [more]
“PIC Microcontrollers”
On-line book, 3rd edition
The purpose of the book is not to make a microcontroller expert out of you, but to make you equal to those who had somebody to ask. Many practical examples allow quick start in programming PIC. [more]
To Reader’s Knowledge
The contents published in the book “Programming PIC microcontrollers in BASIC” is subject to copyright and it must not be reproduced in any form without an explicit written permission released from the editorial of mikroElektronika. The contact address for the authorization regarding contents of this book: office@mikroe.com.
The book was prepared with due care and attention, however the publisher does not accept any responsibility neither for the exactness of the information published therein, nor for any consequences of its application.