Specifications

Chapter 6 - Samples
Previous page Table of contents Chapter overview Next page
CHAPTER 6
The Samples
Introduction
6.1 Supplying the microcontroller
6.2 Macros used in programs
Macros WAIT, WAITX
Macro PRINT
6.3 Samples
Light-emitting diodes - LEDs
Keyboard
Optocoupler
Optocouplering the input lines
Optocouplering the output lines
Relays
Generating a sound
Shift registers
Input shift register
Output shift register
7-segment Displays (multiplexing)
LCD display
12-bit AD converter
Serial communication
Introduction
Examples given in this chapter will show you how to connect the PIC microcontroller with other
peripheral components or devices when developing your own microcontroller system. Each
example contains detailed description of the hardware part with electrical outline and comments
about the program. All programs can be taken directly from the from 'MikroElektronika' internet
presentation.
Supplying the microcontroller
Generally speaking, the correct voltage supply is of utmost importance for the proper functioning
of the microcontroller system. It can easily be compared to a man breathing in the air. It is more
http://www.mikroelektronika.co.yu/english/product/books/PICbook/6_01Poglavlje.htm (1 of 2) [4/2/2003 16:18:40]