Fenomenalno, koristiš
16F1827 a daješ skrinšot podešavanja za
16F877
Code:
Config1
FOSC_LP,_ ; LP Oscillator, Low-power crystal connected between OSC1 and OSC2 pins
FOSC_XT,_ ; XT Oscillator, Crystal/resonator connected between OSC1 and OSC2 pins
FOSC_HS,_ ; HS Oscillator, High-speed crystal/resonator connected between OSC1 and OSC2 pins
FOSC_EXTRC,_ ; EXTRC oscillator: External RC circuit connected to CLKIN pin
FOSC_INTOSC,_ ; INTOSC oscillator: I/O function on CLKIN pin
FOSC_ECL,_ ; ECL, External Clock, Low Power Mode (0-0.5 MHz): device clock supplied to CLKIN pin
FOSC_ECM,_ ; ECM, External Clock, Medium Power Mode (0.5-4 MHz): device clock supplied to CLKIN pin
FOSC_ECH,_ ; ECH, External Clock, High Power Mode (4-32 MHz): device clock supplied to CLKIN pin
WDTE_OFF,_ ; WDT disabled
' WDTE_SWDTEN,_ ; WDT controlled by the SWDTEN bit in the WDTCON register
' WDTE_NSLEEP,_ ; WDT enabled while running and disabled in Sleep
' WDTE_ON,_ ; WDT enabled
PWRTE_ON,_ ; PWRT enabled
' PWRTE_OFF,_ ; PWRT disabled
' MCLRE_OFF,_ ; MCLR/VPP pin function is digital input
MCLRE_ON,_ ; MCLR/VPP pin function is MCLR
' CP_ON,_ ; Program memory code protection is enabled
CP_OFF,_ ; Program memory code protection is disabled
' CPD_ON,_ ; Data memory code protection is enabled
CPD_OFF,_ ; Data memory code protection is disabled
BOREN_OFF,_ ; Brown-out Reset disabled
' BOREN_SBODEN,_ ; Brown-out Reset controlled by the SBOREN bit in the BORCON register
' BOREN_NSLEEP,_ ; Brown-out Reset enabled while running and disabled in Sleep
' BOREN_ON,_ ; Brown-out Reset enabled
' CLKOUTEN_ON,_ ; CLKOUT function is enabled on the CLKOUT pin
CLKOUTEN_OFF,_ ; CLKOUT function is disabled. I/O or oscillator function on the CLKOUT pin
IESO_OFF,_ ; Internal/External Switchover mode is disabled
' IESO_ON,_ ; Internal/External Switchover mode is enabled
FCMEN_OFF ; Fail-Safe Clock Monitor is disabled
' FCMEN_ON ; Fail-Safe Clock Monitor is enabled
Config2
' WRT_ALL,_ ; 000h to FFFh write protected, no addresses may be modified by EECON control
' WRT_HALF,_ ; 000h to 7FFh write protected, 800h to FFFh may be modified by EECON control
' WRT_BOOT,_ ; 000h to 1FFh write protected, 200h to FFFh may be modified by EECON control
WRT_OFF,_ ; Write protection off
PLLEN_OFF,_ ; 4x PLL disabled <=====
' PLLEN_ON,_ ; 4x PLL enabled <=====
STVREN_OFF,_ ; Stack Overflow or Underflow will not cause a Reset
' STVREN_ON,_ ; Stack Overflow or Underflow will cause a Reset
BORV_25,_ ; Brown-out Reset Voltage (VBOR) set to 2.5 V
' BORV_19,_ ; Brown-out Reset Voltage (VBOR) set to 1.9 V
LVP_OFF ; High-voltage on MCLR/VPP must be used for programming
' LVP_ON ; Low-voltage programming enabled

--
Make no mistake between my personality and my attitude.
My personality is who I am.
My attitude depends on who you are.