The parts needed for this experiment are listed in the table:
Vdd/Vss Decoupling Capacitor; 0.1 uF (Any Type)
_MCLR Pull Up Resistor;10K, 1/4 Watt
4 MHz Ceramic Resonator; Three Leaded Ceramic Resonator with Built in 27-33pF Capacitors
PORTB LED Current Limiting Resistors; 8x 220W, 1/4 Watt
PORTB LED; LED
Breadboard; Any Type
+5 Volt "Vcc" Power Supply; Any Type
You may click here to download the fully tested sample code.
note: The Macro shown above is not used in my sample code.