Title Page

1. Introduction
      
1.1. About This Manual

2. Compiler Basics

2.1. The PICmicros
2.2. The Pins
2.3. Software Installation
2.4. Getting Started
2.5. Program That PICmicro
2.6. It's Alive
2.7. I've Got Troubles
2.8. Coding Style
2.8.1. Comments
2.8.2. Symbols
2.8.3. Labels
2.8.4. GOTO

  
3. Command Line Options

3.1. Usage
3.2. Options
3.2.1. Option -C
3.2.2. Option -D
3.2.3. Option -L
3.2.4. Option -OB
3.2.5. Option -P##
3.2.6. Option -Q
3.2.7. Option -S

  
4. PICBASIC™ Programming

4.1. Comments
4.2. Numeric Constants
4.3. String Constants
4.4. Identifiers
4.5. Line Labels
4.6. Variables
4.7. Symbols
4.8. Multi-statement Lines

5. PICBASIC™ Statement Reference

5.1. BRANCH
5.2. BUTTON
5.3. CALL
5.4. DEBUG
5.5. EEPROM
5.6. END
5.7. FOR..NEXT
5.8. GOSUB
5.9. GOTO
5.10. HIGH
5.11. I2CIN
5.12. I2COUT
5.13. IF..THEN
5.14. INPUT
5.15. [LET]
      5.15.1. Multiplication
5.15.2. Bitwise NOT Operators
5.16. LOOKDOWN
5.17. LOOKUP
5.18. LOW
5.19. NAP
5.20. OUTPUT
5.21. PAUSE
5.22. PEEK
5.23. POKE
5.24. POT
5.25. PULSIN
5.26. PULSOUT
5.27. PWM
5.28. RANDOM
5.29. READ
5.30. RETURN
5.31. REVERSE
5.32. SERIN
5.33. SEROUT
5.34. SLEEP
5.35. SOUND
5.36. TOGGLE
5.37. WRITE

6. Structure of a Compiled Program

6.1. Target (PICmicro) Specific Header (B##.INC)
6.2. PBH.INC
6.3. PBC Generated Code
6.4. PBL.INC

7. Other PICBASIC™ Considerations

7.1. How Fast is Fast Enough?
7.2. Assembly Language
7.2.1. Programming in Assembly Language
7.2.2. Assembly Language Examples
7.2.3. Placement of In-line Assembly
7.2.4. The PICmicro Macro Assembler
7.3. Interrupts
7.4. Life After 2K

8. Compiler / Stamp Differences

8.1. Execution Speed
8.2. Digital I/O
8.3. Missing PC Interface
8.4. BUTTON
8.5. EEPROM, READ and WRITE
8.6. GOSUB/RETURN
8.7. RANDOM
8.8. SERIN/SEROUT
8.9. Low Power Instructions
8.10. SLEEP

Appendix A

Summary of Microchip Assembly Instruction Set

Appendix B

Contact Information