In this tutorial we will learn how to blink the LED's with PIC18F4520 Starter Board.
Starter PIC board has two on board LED's connected to PORTD.0 and PORTD.1.

Steps

  1. Configure the PORTS as outputs using TRIS registers.
  2. Turn ON all the LEDs and wait for some time.
  3. Turn OFF all the LEDs and wait for some time..

Code

Demo

Pic16f877aLedBlinking.gif