PIC18F452 LED Blinking Code and Proteus Simulation

This post provides the LED blinking code (compiled in MPLAB + HI-TECH C) for PIC18F452. Complete project code and the proteus simulation can be downloaded from the Downloads section at the bottom of this post. The following diagram shows the required circuit.

PIC18F452 LED Blinking

In this project a crystal of 10MHz is used with PIC18F452. This crystal frequency is fed into PLL of PIC18F452, which boosts it to 40MHz. As we know that any PIC micro controller has an architecture which executes an instruction in 4 CPU cycles, hence this 10Mhz crystal + PLL makes this PIC run at 10MIPS (Million of instructions per second). The code for this project is shown below.

PIC18F452 LED Blinking schematic


The code was compiled in MPLAB v8.76 with HI-TECH C and simulation was made in Proteus v7.7.
To download code and proteus simulation click here.


For more detail: PIC18F452 LED Blinking Code and Proteus Simulation

Current Project / Post can also be found using:

  • leb blinking using pic 18f45k22 proteus
  • pic12f675 ic led contorolar

Leave a Comment

= 3 + 3

Read previous post:
PICKit 2 and ICSP
Ultra-easy use of 64-pin TQFP PIC18F6620 using TQFP-to-DIP PCB from VOTI

A while ago I purchased a batch of 18F6620 TQFP PIC Microcontrollers at a ridiculously low price. The barrier to...

Scroll to top