'************************ 'Header file for 18F2525 '************************ Device = 18F2525 $define _Proton Optimiser_Level = 3 ' Full optimisation =3 Declare Dead_Code_Remove = On '/Off Declare Icd_Req = 1 ' to allow ICD programming and PICkit2 ' params: On or Off, or True or False, or 1, 0 ' note that the ICD uses pins RB5, RB6, RB7 Declare Create_Coff = 1 ' generate a .COF file for the debugger in MPLAB Declare Xtal = 40 ' 10MHz Xtal * 4 PLL Symbol PWMminF = 2442 ' lowest possible pwm frequency. Declare Unsigned_Dwords = On ' added 11.06.2015 ' configuration for 18F2525: Config_Start Debug = OFF ' Background debugger disabled; RB6/RB7 configured as I/O XINST = OFF ' Instruction set extension mode disabled (only required for improved float support] STVREN = OFF ' Reset on stack overflow/underflow disabled or enabled FCMEN = OFF ' was Off, changed by gwr. ' Fail-Safe Clock Monitor disabled - makes no apparent difference ' Johannes had it OFF OSC = HSPLL ' PLL active to set clock to 4x Xtal freq.. IESO = OFF ' Two-Speed Start-up disabled WDT = OFF ' no watchdog timer WDTPS = 128 ' Watchdog oscillator prescaler 1:128 , Johannes had it = 1 BOREN = SBORDIS ' was off, changed to on by gwr ' off= Brown-out Reset disabled in hardware and software 'Johannes had it set to ON BORV = 2 ' brown out voltage MCLRE = On ' MCLR pin enabled, RE3 input pin disabled LPT1OSC = On ' Timer1 operates in standard power mode , Johannes had it ON PBADEN = OFF ' PORTB<4:0> pins are configured as digital I/O on Reset CCP2MX = PORTC ' CCP2 input/output is multiplexed with RC1 - used for PWM LVP = OFF ' On ' Single-Supply ICSP enabled/disabled , Johannes had it Off Cp0 = OFF ' Block 0 (000800-001FFFh) not code-protected Cp1 = OFF ' Block 1 (002000-003FFFh) not code-protected CPB = OFF ' Boot block (000000-0007FFh) not code-protected CPD = OFF ' Data EEPROM not code-protected WRT0 = OFF ' Block 0 (000800-001FFFh) not write-protected WRT1 = OFF ' Block 1 (002000-003FFFh) not write-protected WRTB = OFF ' Boot block (000000-0007FFh) not write-protected WRTC = OFF ' Config registers (300000-3000FFh) not write-protected WRTD = OFF ' Data EEPROM not write-protected EBTR0 = OFF ' Block 0 (000800-001FFFh) not protected from table reads ' executed in other blocks EBTR1 = OFF ' Block 1 (002000-003FFFh) not protected from table reads ' executed in other blocks EBTRB = OFF ' Boot block (000000-0007FFh) not protected from reads ' executed in other blocks PWRT = On ' copied from Johannes , power up timer (66ms)- changed to ON 09.06.2015 Config_End