;************************************************************************ ;------------------------------------------------------------------------ ; Template per CONFIG enhanced ; Togliere il commento dalle linee scelte ;------------------------------------------------------------------------ ; Bit di controllo della funzione AD su PORTB CONFIG PBADEN = DIG ; PORTB<4:0> come digital I/O ;CONFIG PBADEN = ANA ; PORTB<4:0> come analog input ; ; Bit di controllo dell' uscita CCP2 CONFIG CCP2MX = RB3 ; CCP2 input/output su RB3 ;CONFIG CCP2MX = RC1 ; CCP2 input/output su RC1 ; ; Abilitazione set istruzioni esteso CONFIG XINST = OFF ; Disabilitato (Legacy mode) ;CONFIG XINST = ON ; Abilitato ; ; Debugger Interno (ICD) ;CONFIG DEBUG = ON ; Abilitato, RB6 e RB7 a ICSP CONFIG DEBUG = OFF ; Disabilitato, RB6 e RB7 = GPIO ; ; Abilitazione programmazione LVP CONFIG LVP = OFF ; Disablitata ;CONFIG LVP = ON ; Abilitata ; ; Selezione dell' Oscillatore CONFIG OSC = HS ; HS ;CONFIG OSC = HSPLL ; HS con PLL (Clock = 4 x FOSC1) ;CONFIG OSC = LP ; LP ;CONFIG OSC = XT ; XT ;CONFIG OSC = RC ; RC, RA7 input, CLKO = RA6 ;CONFIG OSC = RCIO ; RC, RA7 input, GPIO = RA6 ;CONFIG OSC = EC ; EC, RA7 input, CLKO = RA6 ;CONFIG OSC = ECIO ; EC, RA7 input, GPIO = RA6 ;CONFIG OSC = INTIO2 ; Oscillatore interno, RA6 e RA7 = GPIO ;CONFIG OSC = INTIO2PLL ; Come sopra con PLL 4x ;CONFIG OSC = INTIO1 ; Oscllatore inte., CLKO = RA6, GPIO = RA7 ;CONFIG OSC = INTIO1PLL ; Come sopra con PLL 4x ; ; Selezione modo oscillatore del Timer1 CONFIG LPT1OSC = OFF ; High power ;CONFIG LPT1OSC = ON ; Low power ; ; Clock Monitor di sicurezza CONFIG FCMEN = OFF ; Disabilitato ;CONFIG FCMEN = ON ; Abilitato ; ; Bit di commutazione degli oscillatori Interno/esterno CONFIG IESO = OFF ; Disabilitato ;CONFIG IESO = ON ; Abilitato ; Bit di abilitazione del Power-up Timer CONFIG PWRT = ON ; Abilitato ;CONFIG PWRT = OFF ; Disabilitato ; ; Bit di abilitazione del Brown-out Reset CONFIG BOR = ON ; Abilitato in hardware (SBOREN disabilitato) ;CONFIG BOR = OFF ; Disabilitato ;CONFIG BOR = SOFT ; Abilitato e controllato dal software ;CONFIG BOR = NOSLP ; Abilitato in hardware ; e disabilitato in Sleep ; Bit di selezione della tensione del BOR ;CONFIG BORV = 0 ; Soglia reset 4.5V CONFIG BORV = 1 ; Soglia reset 4.2V ;CONFIG BORV = 2 ; Soglia reset 2.7V ;CONFIG BORV = 3 ; Soglia reset 2.0V ; ; Bit di abilitazione del pin MCLR ;CONFIG MCLRE = OFF ; Disabiltato - il pin è RE3 CONFIG MCLRE = ON ; Abiltato ; ; Bit di abilitazione del Watchdog Timer CONFIG WDT = OFF ; Disabilitato e controllato da SWDTEN ;CONFIG WDT = ON ; Abilitato ; ; Bit del postscale del Watchdog Timer ;CONFIG WDTPS = 1 ; 1:1 ;CONFIG WDTPS = 2 ; 1:2 ;CONFIG WDTPS = 4 ; 1:4 ;CONFIG WDTPS = 8 ; 1:8 ;CONFIG WDTPS = 16 ; 1:16 ;CONFIG WDTPS = 32 ; 1:32 ;CONFIG WDTPS = 64 ; 1:64 ;CONFIG WDTPS = 128 ; 1:128 ;CONFIG WDTPS = 256 ; 1:256 ;CONFIG WDTPS = 512 ; 1:512 ;CONFIG WDTPS = 1024 ; 1:1024 ;CONFIG WDTPS = 2048 ; 1:2048 ;CONFIG WDTPS = 4096 ; 1:4096 ;CONFIG WDTPS = 8192 ; 1:8192 ;CONFIG WDTPS = 16384 ; 1:16384 ;CONFIG WDTPS = 32768 ; 1:32768 ; ; Abilitazione del reset da Stack Full/Underflow ;CONFIG STVREN = OFF ; Abilitato CONFIG STVREN = ON ; Disabilitato ; ; Selezione del blocco di boot ;CONFIG BBSIZ = BB256 ; 256 Word ;CONFIG BBSIZ = BB512 ; 512 Word ;CONFIG BBSIZ = BB1K ;1024 Word ; ; Protezione codice Block 0 e 1: ;CONFIG CPx = ON ; Block x code-protected ;CONFIG CPx = OFF ; Block x non protetto CONFIG CP0 = OFF ; block 0 non protetto CONFIG CP1 = OFF ; block 1 non protetto ; ; Protezione Boot Block CONFIG CPB = OFF ; Non protetto ;CONFIG CPB = ON ; Protetto ; ; Protezione dati in EEPROM CONFIG CPD = OFF ; Disabilitato ;CONFIG CPD = ON ; Abilitato ;; ; Protezione dalla scrittura dei Block 0 e 1 ;CONFIG WRTx = ON ; Block x protectto ;CONFIG WRTx = OFF ; Block x non protetto CONFIG WRT0 = OFF ; block 0 non protettop CONFIG WRT1 = OFF ; block 1 non protetto CONFIG WRTB = OFF ; Write protect bootblock (ON/OFF) ; ; Protezione del registro di Configurazione CONFIG WRTC = OFF ; Disabilitata ;CONFIG WRTC = ON ; Abilitata ; ; Protezione dalla scrittura dei dati in EEPROM CONFIG WRTD = OFF ; Disabilitata ;CONFIG WRTD = ON ; Abilitata ; ; Protezione Block 0 e 1 da Table read in altri blocchi ;CONFIG EBTRx = ON ; Block x abilitata ;CONFIG EBTRx = OFF ; Block x disabilitata CONFIG EBTR0 = OFF ; block 0 disabilitata CONFIG EBTR1 = OFF ; block 1 disabilitata ; ; Potezione del Boot Block da Table Read in altri blocchi ;CONFIG EBTRB = ON ; Abilitata CONFIG EBTRB = OFF ; Disabiliotata ; ;************************************************************************