Tutorial: Microchip PIC16F877 Microcontroller
Table of Contents
What is a Microcontroller?1.2
Why are Microcontrollers used?2
Parts list and vendors2.2
Connecting the equipment3
PIC16fF877 Microcontroller 3.1
Flash PIC development board3.2
CCS PIC-C compiler 3.3
In Circuit Debugger/Programmer (ICD-S)3.4
Embedded C Programming and the Microchip PIC4
Experiments on PIC16F8774.1
ADC Temperature Measurement4.4
Open Loop and Closed Loop Temperature Control5
Where do we go from here?
This tutorial is to introduce the microcontroller technolgy the capabilities and the specifications of acommonly used Microcontroller Microchip PIC16F877 and describe the experiments conducted using theDevelopment board Flash PIC development board which accomodates this microcontroller.
What is a microcontroller?
A microcontroller is a compact standalone computer, optimized for control applications. Entire processor, memory and the I/O interfaces are located on a single piece of silicon so, it takes less timeto read and write to extrernal devices.
Why are microcontrollers used?
Following are the reasons why microcontrollers are incorporated in control systems:a.
Microcontrollers with the supplemantary circuit components are much cheaper than acomputer with an analog and digital I/O b.
Size and Weight:
Microcontrollers are compact and light compared to computersc.
If the application requires very few number of I/O and the code is relativelysmall, which do not require extended amount of memory and a simple LCD display is sufficient asa user interface, a microcontroller would be suitable for this application.d.
Since the architecture is much simpler than a computer it is less likely to fail.e.
All the components on the microcontroller are located on a singe piece of silicon. Hence,the applications run much faster than it does on a computer.Page 1of 36PIC16F877 Microcontroller Tutorial revA7/3/2010mc_prayer