Grp03 Blinking Miniproject
Grp03 Blinking Miniproject
PROJECT ON
LED BLINKING USING ARDUINO UNO IN PROTEUS
To be submitted to:
Mr.ALI A.ABDURAHMAN.
Submitted by:
YASIN TWAHA OMARY KIST/BEE/20/0026
OTHMAN FAKIH KIST/BEE/20/0019
FATMA MOHAMMED KIST/BEE/20/0001
Submission Date:
21TH JUN 2023.
LED Blinking using PIC microcontroller.
The PIC microcontroller this is a programmable interface controller which can be programmed to
carry out a vast range of tasks. We have different families of microcontroller,but in our project we
have used PIC16F877A.
In this project we have used proteus to obtain PIC16F877A Microcontroller,a 10Ω resistor ,Led-
green Diode, X-Stal Oscillator, and ground. Connections were made on the Proteus workspace as it
can shown letter. Finally the codes were attached so as to activate our project and see how Led-
green Diode blinks.
Procedures
First design the simulation of LED Blinking project using PIC16F877A Microcontroller in Proteus ISIS.
After that, design the programming codes for PIC16F877A Microcontroller using MPLAB X IDE and
finally get the hex file and upload it in PIC16F877A Microcontroller in the proteus.
Project descriptions
A LED is connected to one of the port of PIC Microcontroller as can seen above.The LED will flash
continuously when the codes uploaded.
#INCLUDE <XC.H>
//Specify the XTAL crystal FREQ
#DEFINE _XTAL_FREQ 20000000
VOID MAIN( VOID ) {
//PORTD pin 0 as output
TRISD0 = 0;
//Initialize the variable
INT I = 0;
//loop for ever
WHILE (1)
{
//Led on
RD0 = 1;
//Delay
FOR( I = 1; I< 6000; I ++);
//Led off
RD0 = 0;
//Delay
FOR( I = 1; I< 6000; I ++);
}
RETURN ;
}
Codes explanation: