When I ordered the PIC KIT 3, they included a neat demo board to get started.
The pdf guide for the demo board:
http://ww1.microchip.com/downloads/en/DeviceDoc/41370C.pdf
The source code for the lessons:
Check out youtube video below for how to set up hello world led project in MPLABX.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
include <p18F45K20.inc> | |
CONFIG FOSC = INTIO67 | |
CONFIG WDTEN = OFF, LVP = OFF | |
org 0 | |
Start: | |
CLRF PORTD | |
MOVLW b'00000000' | |
MOVWF TRISD | |
BSF LATD,7 | |
BSF LATD,5 | |
BSF LATD,3 | |
BSF LATD,0 | |
GOTO $ | |
END |