please dont rip this 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 Parallax PIC 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

Branch 1
Button 1
Debug 1
End 1
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 using Tech-Tools cvasm16 and the latest version of Tony Nixons ParaPic. They have not been checked in MPLAB.

See also:


file: /Techref/microchip/seepicsrc/index.htm, 8KB, , updated: 2012/11/8 10:14, local time: 2024/7/23 04:05, owner: DAV-MP-E62a,

 ©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it! / MAKE!

<A HREF=""> The PIC Source Book, BASIC STAMP assembly code</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type a nice message (short messages are blocked as spam) in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.

Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?


Welcome to!

Site supported by
sales, advertizing,
& kind contributors
just like you!

Please don't rip/copy
(here's why

Copies of the site on CD
are available at minimal cost.

Welcome to!