Quote Originally Posted by Gevo View Post
Hello Scampy, thanks for the workout.

I have comment out the four line's in the .INC file (PBP folder)

I have add the line's to PBP main code and get errors after compiling. (PBP v2.60C)

4 time this error > [warning 207] .... Found label after column 1. (@)
4 time this error > [error 121] illegal label (@)

I don't understand why PBP give this error, the instructions/settings are equal as in de .INC file what you advice me to comment out.
The following compiles fine using PBP 2.60c and MPASM 5.06 (old but that's not what's causing your problem.

Code:
'****************************************************************
'*  Name    : UNTITLED.BAS                                      *
'*  Author  : [select VIEW...EDITOR OPTIONS]                    *
'*  Notice  : Copyright (c) 2015 [select VIEW...EDITOR OPTIONS] *
'*          : All Rights Reserved                               *
'*  Date    : 04/06/2015                                        *
'*  Version : 1.0                                               *
'*  Notes   :                                                   *
'*          :                                                   *
'****************************************************************

        
ASM  
     __CONFIG    _CONFIG1H, _FOSC_HS_1H & _FCMEN_OFF_1H & _IESO_OFF_1H
     __CONFIG    _CONFIG2H, _WDTEN_ON_2H & _WDTPS_512_2H
     __CONFIG    _CONFIG3H, _CCP2MX_PORTC_3H & _PBADEN_OFF_3H & _LPT1OSC_OFF_3H & _HFOFST_ON_3H & _MCLRE_ON_3H
     __CONFIG    _CONFIG4L, _STVREN_ON_4L & _LVP_OFF_4L & _XINST_OFF_4L
ENDASM
Notice that there are no @'s in the config settings, and that I have the config settings indented. If you have the underscore (_) at the start of column 1 you get those errors.

Cut and paste those settings at the start of your code, make sure you have the 18F25K20 selected in microcode studio and hit the compile button