PIC Source Book



The “Official” public release of the Scott Edwards Electronics PIC Source Book/Disk.

Dontronics Pages Duplicated: Dontronics goes to great lengths to provide new and interesting material for visitors. It has been found in recent months that other Webmasters are duplicating material that has already been presented here. This may be with, or without the permission of the original Author. If you see a copy of the following files or pages, you will know Dontronics was responsible for the initialĀ  release, and the others are simply copies. It would be nice if these people did their own ground work, and put in the time to get new material, and not benefit from the time and effort that Dontronics has already invested to make this a better site.

The PIC Source Book

A collection of ready-to-use assembly language routines based on the instruction set of the BASIC Stamp Ā® single-board computer.

by Scott Edwards, 1994


Foreword to Online Edition

The PIC Source Book was written in 1993 to provide users of the ParallaxPIC programming tools with a ready-made collection of assembly code in Parallax assembly mnemonics.(see below) At the time, there were four PICs: 16C54, 55, 56, and 57. The popular ’84 and ADC-equipped ’71 were brand new. Since then, Microchip has made dozens of architectural enhancements to the PICs, and made its assembler available free via the net and CD-ROM. This has diminished interest in both the 5x PICs and the Parallax assembler. As a result of these changes, the Source Book is reaching the end of its commercial life. Rather than discontinue it, the author has decided to make it available free via the Internet.

Free means free. You may use this material in any way you wish without obligation to the author. The author bears no liability for the consequences of such use, and will not support users of this free edition in any way. He will not be obliged to answer questions or respond to comments. Any of you who have been besieged with e-mail during Senior Project season will appreciate the wisdom of getting this out in the open right up front!

The book lists some utilities and extras on “the accompanying disk.” Unfortunately, people other than the author hold the rights to these items, so they cannot be included with this online freebie.

PIC is a registered trademark of Microchip Technologies Inc.; BASIC Stamp is a registered trademark of Parallax Inc.

Useful Links

Scott Edwards Electronics, Inc.
Company founded by the author; makers of serial LCD products.
Parallax, Inc.
Makers of tools for programming PIC and SX microcontrollers.
Microchip Technology Inc.
Manufacturers of PIC microcontrollers.

On the public release of the Scott Edwards PIC Source Book Disk, all executable files have been removed, and there is no Technical support whatsoever with the on line version.

Table of Contents

Introduction 

Branch 1

Button 1

Debug 1

EEPROM 1

End 1

For…Next

Gosub/Return 1

Goto 1

High 1

If…Then 1 

Input na

Let x=x+y 1

Let x=x-y 1

Let x=y/z (division) 1

Let x=y//z (remainder) 1

Let x=y*z 1

Lookdown 1

Lookup 1

Low 1

Nap 1 

Output na

Pause 1

Pot 1

Pulsin 1

Pulsout 1

Pwm 1

Random 1

Read na

Reverse 1

Serin (receive data) 1 

Serin (convert # data) 1

Serin (check qualifiers) 1

Serout (send data) 1

Serout (format # data) 1

Sleep 1

Sound 1

Toggle 1

Write na

Parallax Instructions

1 Note: Routines marked with a 1 have been re-converted to MicroChip assembler format by James Newton of piclist.com using Tech-Toolscvasm16 and the latest version of Tony Nixons ParaPic. They have not been checked in MPLAB.

This entry was posted in Electronics News. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*