PIC Basic Projects, 2nd Edition

Book description

Covering the PIC BASIC and PIC BASIC PRO compilers, PIC Basic Projects provides an easy-to-use toolkit for developing applications with PIC BASIC. Numerous simple projects give clear and concrete examples of how PIC BASIC can be used to develop electronics applications, while larger and more advanced projects describe program operation in detail and give useful insights into developing more involved microcontroller applications. Including new and dynamic models of the PIC microcontroller, such as the PIC16F627, PIC16F628, PIC16F629 and PIC12F627, PIC Basic Projects is a thoroughly practical, hands-on introduction to PIC BASIC for the hobbyist, student and electronics design engineer.
  • Packed with simple and advanced projects which show how to program a variety of interesting electronic applications using PIC BASIC
  • Covers the new and powerful PIC16F627, 16F628, PIC16F629 and the PIC12F627 models

Table of contents

  1. Front Cover
  2. Contents
  3. Preface
  4. 1 Microcontroller systems
    1. 1.1 Introduction
    2. 1.2 Microcontroller systems
      1. 1.2.1 RAM
      2. 1.2.2 ROM
      3. 1.2.3 EPROM
      4. 1.2.4 EEPROM
      5. 1.2.5 Flash EEPROM
    3. 1.3 Microcontroller features
      1. 1.3.1 Supply voltage
      2. 1.3.2 The clock
      3. 1.3.3 Timers
      4. 1.3.4 Watchdog
      5. 1.3.5 Reset input
      6. 1.3.6 Interrupts
      7. 1.3.7 Brown-out detector
      8. 1.3.8 Analogue-to-digital converter
      9. 1.3.9 Serial I/O
      10. 1.3.10 EEPROM data memory
      11. 1.3.11 LCD drivers
      12. 1.3.12 Analogue comparator
      13. 1.3.13 Real-time clock
      14. 1.3.14 Sleep mode
      15. 1.3.15 Power-on reset
      16. 1.3.16 Low power operation
      17. 1.3.17 Current sink/source capability
    4. 1.4 Microcontroller architectures
      1. 1.4.1 RISC and CISC
    5. 1.5 Exercises
  5. 2 The PIC microcontroller family
    1. 2.1 12-bit instruction word
    2. 2.2 14-bit instruction word
    3. 2.3 16-bit instruction word
    4. 2.4 Inside a PIC microcontroller
      1. 2.4.1 Program memory (Flash)
      2. 2.4.2 Data memory (RAM)
      3. 2.4.3 Register file map and special function registers
      4. 2.4.4 Oscillator circuits (1/2)
      5. 2.4.4 Oscillator circuits (2/2)
      6. 2.4.5 Reset circuit
      7. 2.4.6 Interrupts
      8. 2.4.7 The configuration word
      9. 2.4.8 I/O interface
    5. 2.5 Exercises
  6. 3 PIC microcontroller project development
    1. 3.1 Required hardware tools
      1. 3.1.1 PC
      2. 3.1.2 PIC microcontroller programmer device
      3. 3.1.3 Solderless breadboard
      4. 3.1.4 PIC microcontroller and minimum support components
      5. 3.1.5 Power supply
    2. 3.2 Required software tools
      1. 3.2.1 Text editor
      2. 3.2.2 PicBasic and PicBasic Pro compilers
      3. 3.2.3 Programmer device software
    3. 3.3 Bundled development systems
    4. 3.4 Experimenter boards
    5. 3.5 Example project development
    6. 3.6 Other useful development tools
      1. 3.6.1 Simulators
      2. 3.6.2 In Circuit Emulators (ICE)
    7. 3.7 Exercises
    8. 3.8 Links to useful web sites
  7. 4 PicBasic and PicBasic Pro programming
    1. 4.1 PicBasic language
      1. 4.1.1 PicBasic variables
      2. 4.1.2 PicBasic mathematical and logical operations
      3. 4.1.3 PicBasic program flow control commands
      4. 4.1.4 Other PicBasic commands (1/3)
      5. 4.1.4 Other PicBasic commands (2/3)
      6. 4.1.4 Other PicBasic commands (3/3)
      7. 4.1.5 Recommended PicBasic program structure
    2. 4.2 PicBasic Pro language
      1. 4.2.1 PicBasic Pro variables
      2. 4.2.2 Constants
      3. 4.2.3 Comments
      4. 4.2.4 Multi-statement lines
      5. 4.2.5 INCLUDE
      6. 4.2.6 DEFINE
      7. 4.2.7 Line extension
      8. 4.2.8 Accessing ports and other registers in PicBasic Pro
      9. 4.2.9 Arithmetic operators
      10. 4.2.10 PicBasic Pro commands (1/2)
      11. 4.2.10 PicBasic Pro commands (2/2)
    3. 4.3 Liquid crystal display (LCD) interface and commands
      1. 4.3.1 Parallel LCDs (1/2)
      2. 4.3.1 Parallel LCDs (2/2)
      3. 4.3.2 Serial LCDs
    4. 4.4 Interrupts
    5. 4.5 Recommended PicBasic Pro program structure
    6. 4.6 Using stepping motors
    7. 4.7 Using servomotors
    8. 4.8 Exercises
  8. 5 PicBasic and PicBasic Pro projects
    1. Project 1 – Simple flashing LED (1/2)
    2. Project 1 – Simple flashing LED (2/2)
    3. Project 2 – Complex flashing LED
    4. Project 3 – Flashing LED warning lights
    5. Project 4 – Turning on odd numbered LEDs
    6. Project 5 – Binary counting LEDs
    7. Project 6 – Left scrolling LEDs
    8. Project 7 – Right scrolling LEDs
    9. Project 8 – Right-left scrolling LEDs
    10. Project 9 – LED dice (1/2)
    11. Project 9 – LED dice (2/2)
    12. Project 10 – 7-segment LED display counter (1/2)
    13. Project 10 – 7-segment LED display counter (2/2)
    14. Project 11 – 7-segment LED dice (1/2)
    15. Project 11 – 7-segment LED dice (2/2)
    16. Project 12 – Dual 7-segment LED display (1/2)
    17. Project 12 – Dual 7-segment LED display (2/2)
    18. Project 13 – Dual 7-segment LED display counter (1/2)
    19. Project 13 – Dual 7-segment LED display counter (2/2)
    20. Project 14 – Dual 7-segment LED event counter (1/2)
    21. Project 14 – Dual 7-segment LED event counter (2/2)
    22. Project 15 – 4-digit display with serial driver – counter project (1/4)
    23. Project 15 – 4-digit display with serial driver – counter project (2/4)
    24. Project 15 – 4-digit display with serial driver – counter project (3/4)
    25. Project 15 – 4-digit display with serial driver – counter project (4/4)
    26. Project 16 – 4-digit LED with serial driver – counter project with leading zeroes blanked (1/2)
    27. Project 16 – 4-digit LED with serial driver – counter project with leading zeroes blanked (2/2)
    28. Project 17 – 4-digit external interrupt-driven event counter
    29. Project 18 – 4-digit timer interrupt-driven chronograph (1/2)
    30. Project 18 – 4-digit timer interrupt-driven chronograph (2/2)
    31. Project 19 – Car park control system (1/3)
    32. Project 19 – Car park control system (2/3)
    33. Project 19 – Car park control system (3/3)
    34. Project 20 – Seconds counter with LCD display (1/3)
    35. Project 20 – Seconds counter with LCD display (2/3)
    36. Project 20 – Seconds counter with LCD display (3/3)
    37. Project 21 – LCD-based clock with hours–minutes–seconds display (1/2)
    38. Project 21 – LCD-based clock with hours–minutes–seconds display (2/2)
    39. Project 22 – LCD-based chronometer (1/2)
    40. Project 22 – LCD-based chronometer (2/2)
    41. Project 23 – LCD-based voltmeter using A/D converter (1/3)
    42. Project 23 – LCD-based voltmeter using A/D converter (2/3)
    43. Project 23 – LCD-based voltmeter using A/D converter (3/3)
    44. Project 24 – LCD-based thermometer using A/D converter (1/2)
    45. Project 24 – LCD-based thermometer using A/D converter (2/2)
    46. Project 25 – Serial LCD-based thermometer with external EEPROM memory (1/2)
    47. Project 25 – Serial LCD-based thermometer with external EEPROM memory (2/2)
    48. Project 26 – Programmable thermometer with RS232 serial output (1/4)
    49. Project 26 – Programmable thermometer with RS232 serial output (2/4)
    50. Project 26 – Programmable thermometer with RS232 serial output (3/4)
    51. Project 26 – Programmable thermometer with RS232 serial output (4/4)
    52. Project 27 – Electronic organ (1/2)
    53. Project 27 – Electronic organ (2/2)
    54. Project 28 – Unipolar stepping motor control (1/2)
    55. Project 28 – Unipolar stepping motor control (2/2)
    56. Project 29 – Unipolar stepping motor control using UCN5804B
    57. Project 30 – Servomotor-based mobile robot control (1/3)
    58. Project 30 – Servomotor-based mobile robot control (2/3)
    59. Project 30 – Servomotor-based mobile robot control (3/3)
  9. About the CDROM
  10. Index
    1. A
    2. B
    3. C
    4. D
    5. E
    6. F
    7. G
    8. H
    9. I
    10. L
    11. M
    12. N
    13. O
    14. P
    15. R
    16. S
    17. T
    18. U
    19. V
    20. W
    21. Z

Product information

  • Title: PIC Basic Projects, 2nd Edition
  • Author(s): Dogan Ibrahim
  • Release date: February 2011
  • Publisher(s): Newnes
  • ISBN: 9780080464978