LED Interfacing with PIC Microcontroller | PIC18F452
- Vinit Patil
- Aug 6, 2017
- 2 min read
Hi..!!!
Welcome to Embedded World. Today we talk about how to interface led's with PIC18F452 micro-controller and any other micro-controller. Let's start with simple project like blinking led.......
1) Circuit Diagram

Here we connect 4 led to port RD0, RD1, RD2 and RD3 of PIC18F452 micro-controller through 330 ohm current limiting resistor. Also add reset circuit and 20Mhz crystal with two ceramic capcitor for proper functioning of PIC micro-controller.
2) Coding

Algorithm:
1] Initialise PORT D as output port
2] give data to PORT D
3] call delay
4] give data to PORT D
5] call delay
6] goto step 2
3) Simulation Result

Here we simply gives logic 1 to led then gives some time delay then again gives logic 0. so we can exactly see blinking of led.
4) Burn HEX File

For loading program on controller I used PICkit3 Programmer. buy it from Amazon at RS.1100.
5) Hardware Output
For hardware implementation I used my PIC Development board. you can also used your board or just making simple connection on breadboard as per circuit diagram. Here we cannot used external power source for system instead we get VCC from PICkit3 Programmer. that driven to MCLR pin of controller. here we get output on green led that are connected to (D0-D3) pins of microcontroller. and thus we can see blinking LED.
Download Here...!!!
You can download project hex file, proteus file, simulation, code, mikroc etc files here....
If you want to design your PIC Development Board, here its all required data, download and make your project..... ALL THE BEST !!!!
If you have any doubts, quires, suggestions for me please comment below or contact me on my number.
...Thanks For Visiting...
Commentaires