Sample code for most PIC18F4520 operations