Lecture 8
Lecture 8
Cont…
Cont…
Cont…
Power Supplies
Voltage Regulator
A useful device for a typical PIC-based power source is a voltage regulator IC.
The 7805 voltage regulator is ubiquitous in most PIC-based boards with AC/DC adapter sources.
The IC is a three-pin device whose purpose is to ensure a stable voltage source which does not exceed
the device rating.
The voltage regulator circuit requires two capacitors: one electrolytic and the other one not.
MEE 1133: Advanced Microcontroller
#include <16F84A.h>
#use delay(crystal=8000000)
void main()
{
while(TRUE)
{ // Endless loop
output_low(PIN_A0); // LED OFF
delay_ms(500); // Delay 500 ms
output_high(PIN_A0); // LED ON
delay_ms(500); // Delay 500 ms
}
}
A Demonstration Board
A demonstration board, also known as a
demo board, is a useful tool in mastering
PIC programming. Many are available
commercially; like programmers, there is
a cottage industry of PIC demo boards on
the internet. Constructing your own demo
boards and circuits is not difficult. The
components can be placed on a
breadboard, or wire-wrapped onto a
special circuit board, or a printed circuit
board can be homemade, or ordered
through the internet. Figure (next) shows
a simple 16F84A-based demo board with
a seven-segment LED, buzzer,
pushbutton switch, and a bank of four
toggle switches.
THANK YOU