Hello scalerobotics,

Whoa. Thanks for that great info! I've mostly been using the wiki article as a reference.

When I copy just your code,
Code:
asm
    CONFIG XINST = OFF
    CONFIG PLLDIV = 5
    CONFIG WDTPS = 512
    CONFIG CPUDIV = OSC1
    CONFIG FOSC = HSPLL
endasm
it compiles just fine. When I add the single line "PORTB.0 = 0" it gives me two warnings and an error:

Warning[220] c:\pbp\pbppic18.lib 958 : Address exceeds maximum range for this processor.
Error[118] c:\pbp\pbppic18.lib 958 : Overwriting previous address contents (FFF9)
Error[118] c:\pbp\pbppic18.lib 958 : Overwriting previous address contents (FFFA)

So, did you have to do the "replace OSC with XTAL in PBPPIC18.LIB" thing to get it to work?

Best Regards,
Paul