Step by Step Procedure For Pic Microcontroller Programming1
Step by Step Procedure For Pic Microcontroller Programming1
The recent trends in the advanced technology are helpful in developing most advanced electronic gadgets. Most of these
electronic devices are developed using microcontrollers. The microcontroller is an electronic component, which is programmed
to perform various control operations. There are various kinds of microcontrollers available, such as 8051, AVR, ARM, and PIC
microcontrollers, etc., which are programmed by using the integrated development tools.
SEARCH
SPONSORED SEARCHES
The PIC is a family of the microcontroller, which is manufactured by the di erent companies such as NXP, microchip, etc. The
PIC stands for “peripheral interface controller”, which contains memories, timers/counters, serial communication, interrupts
and ADC converters built into a single integrated chip.
RECENT POSTS
Before going to program the PIC microcontroller, first we have to select the right project that you are going program the
microcontroller. As of now, consider the LEDs flash light system.
Theory:
SPONSORED SEARCHES
The microcontroller generates the output logic pulses so that the LED light is switched ON and OFF at certain intervals. It is a 40
pin microcontroller. The Crystal interfaced to the input pins of the microcontroller provides accurate clock signals at the crystal
frequency.
Circuit Designing
The PIC microcontroller transmit and receive the data with respect to clock pulses, the PIC microcontroller operates with 4MHz
crystal frequency. Two capacitors are connected to the crystal oscillator with range of 20pf to 40pf which is used to stabilize the
clock signals. At some times, the PIC microcontroller goes to block state or missing time calculation,at that time we need to
reset the microcontroller. If a microcontroller is reset for 3sec time delay, 10k resistor and 10uf capacitor are connected to the
respective pins.
Circuit Components
Circuit Connections
The 5v DC supply is given to the 11 pin of the microcontroller which drives the circuit. The crystal is connected to the 13 and 14
pins of the microcontroller. The reset circuit is interfaced at 1 pins of the microcontroller. The Yellow LEDs is connected to the
PORTB of the microcontroller.
Circuit Diagram
This circuit is designed with the help of Proteus so ware. The Proteus is a circuit designing so ware that contains a database of
components, which we can use to build the circuit. Each and every component is available in the component library. X
Learn more
First open the MPLAB software. This shows the menu bar with file, edit, view, project and tools option.
Select the project option and select the ‘project wired option’ from the drop-down menu. This will show the project
wired window.
Select a microcontroller for your project. Here ‘PIC16f877A’ microcontroller is selected.
Select the compiler and path location for your project. Here ‘CCS C compiler’ is selected for the PIC microcontroller,
then select the ‘browse’ option from the project wired window to select the ‘ccsloader’ in the PICC folder from the
program files. A folder with the name ‘source group’ is created in the ‘target’ folder.
Give a name to the project and click on ‘NEXT’ button to save the project. A folder with the name ‘source group’ is
created in the ‘target’ folder.. Click on the ‘file’ menu on the menu bar. Select ‘new file’ from the drop- down menu.
#include<pic16f877x.h>
void delay(int);
sbit a=PB^2;
sbit b=PB^3;
sbit c=PB^4;
sbit d=PB^5;
void main()
{
TRISB=0x00;
a=b=c=d=0x00;
delay(10);
a=b=c=d=0xFF;
}
void delay(int a )
{
unsigned char c;
for(c=0;c<a;c++)
for(c=0;c<250;c++);
}
This so ware needs to be installed into the computer. The microcontroller placed in the hardware kit, which comes with the
socket. Here are the steps to load the code onto the microcontroller.
Interface the hardware (programmer kit) to the computer through a serial cable
Place the microcontroller in the socket of the hardware kit. Press the lock button to ensure the microcontroller is
connected to the board.
Open the software installed in the computer. This shows the menu bar with file, functions, open, save and setting
options.
Select the ‘open’ option from the drop-down menu and select the ‘load file’ .
Click on the ‘load’ button so that the hex file is loaded into the microcontroller.
These are the necessary steps for PIC microcontroller programming to develop simple project. Hope that you might have got a
basic idea on this topic. Any further assistance to build the PIC based projects or any microcontroller based projects you can
contact us by commenting below.
Embedded Systems C PIC Microcontroller Latest Electronics Mini Latest PIC Projects List
Programming Tutorial… Basic and Projets for… Projects for… | Top PIC…
elprocus.com elprocus.com elprocus.com elprocus.com
417% rise in demand for Data Scientists in India 3 bed in a 5.75 acre gated estate in Prabhadevi
(Source: ET) starting ₹7.96Cr*(All Incl)
upGrad & IIIT Bangalore | Sponsored Rustomjee Crown, Prabhadevi | Sponsored
Dubai Property Expo at Inorbit Mall Hitech City, 5 Reasons Why Har Paani Ki Bottle Bisleri Nahin!
Hyderabad. from 11 AM - 9:30 PM Bisleri | Sponsored
99acres | Sponsored
3 BHK Apartment @42Lacs Yelhanka bangalore Hotels in Maldives Might Actually Surprise You
Provident Welworth City | Sponsored Maldives Holiday | Search Ads | Sponsored
This unhappy kfc employee from Telangana quit his job in the best possible way
GoldMatcher | Sponsored
The most intelligent hearing aid - now in Hyderabad Luxury Hotels in Dubai - Lowest price guarantee
Soundrise | Sponsored Dubai Hotels | Search Ads | Sponsored
Instrumentation Amplifier: Circuit Diagram, MQ2 Gas Sensor - Working Principle & Its
Advantages, and Applications Applications
Elprocus Elprocus
‹ PREVIOUS NEXT ›
Introduction to Fiber Optic Sensors and their Introduction to Screenless Displays with Their
Types with Applications Types
RELATED CONTENT
ADC (Analog to Digital AC Power Measurement Meter PIC32 Based Microcontroller PIC Microcontroller Projects for
Converter) Module in PIC using PIC Microcontroller Development Board Final Year Engineering
Microcontroller Students
32 Comments
Add Comment
Comment:
Name *
Email *
Website
Post Comment
Advertise With Us Disclaimer Report Violation Image Usage Policy Privacy Policy Contact Us