Log in

View Full Version : changing from 16f876 to 18f252 file to modify



l_gaminde
- 1st June 2025, 22:20
I'm changing chips and there is a config file or some file to modify I can't remember what it is or where it is

Ioannis
- 1st June 2025, 23:22
Change according to your needs.



#CONFIG
CONFIG OSC = XT ; XT oscillator
CONFIG OSCS = OFF ; Oscillator system clock switch option is disabled (main oscillator is source)
CONFIG PWRT = OFF ; PWRT disabled
CONFIG BOR = ON ; Brown-out Reset enabled
CONFIG BORV = 20 ; VBOR set to 2.0V
CONFIG WDT = ON ; WDT enabled
CONFIG WDTPS = 128 ; 1:128
CONFIG CCP2MUX = ON ; CCP2 input/output is multiplexed with RC1
CONFIG STVR = ON ; Stack Full/Underflow will cause RESET
CONFIG LVP = OFF ; Low Voltage ICSP disabled
CONFIG DEBUG = OFF ; Background Debugger disabled. RB6 and RB7 configured as general purpose I/O pins.
CONFIG CP0 = OFF ; Block 0 (000200-001FFFh) not code protected
CONFIG CP1 = OFF ; Block 1 (002000-003FFFh) not code protected
CONFIG CP2 = OFF ; Block 2 (004000-005FFFh) not code protected
CONFIG CP3 = OFF ; Block 3 (006000-007FFFh) not code protected
CONFIG CPB = OFF ; Boot Block (000000-0001FFh) not code protected
CONFIG CPD = OFF ; Data EEPROM not code protected
CONFIG WRT0 = OFF ; Block 0 (000200-001FFFh) not write protected
CONFIG WRT1 = OFF ; Block 1 (002000-003FFFh) not write protected
CONFIG WRT2 = OFF ; Block 2 (004000-005FFFh) not write protected
CONFIG WRT3 = OFF ; Block 3 (006000-007FFFh) not write protected
CONFIG WRTC = OFF ; Configuration registers (300000-3000FFh) not write protected
CONFIG WRTB = OFF ; Boot Block (000000-0001FFh) not write protected
CONFIG WRTD = OFF ; Data EEPROM not write protected
CONFIG EBTR0 = OFF ; Block 0 (000200-001FFFh) not protected from Table Reads executed in other blocks
CONFIG EBTR1 = OFF ; Block 1 (002000-003FFFh) not protected from Table Reads executed in other blocks
CONFIG EBTR2 = OFF ; Block 2 (004000-005FFFh) not protected from Table Reads executed in other blocks
CONFIG EBTR3 = OFF ; Block 3 (006000-007FFFh) not protected from Table Reads executed in other blocks
CONFIG EBTRB = OFF ; Boot Block (000000-0001FFh) not protected from Table Reads executed in other blocks
#ENDCONFIG


Ioannis

l_gaminde
- 2nd June 2025, 00:00
Thank you
I'm glad you're still around I remember you for the early 2000'ns

Ioannis
- 2nd June 2025, 08:27
You are welcome!

Ioannis

Acetronics2
- 5th June 2025, 17:32
Hi, Friend

Long time we hadn't read about you ;)

Have a look here : https://support.melabs.com/articles/6151-meconfig

I (https://support.melabs.com/articles/6151-meconfig) bet It could help !

Alain

Ioannis
- 5th June 2025, 19:10
It is a pity that it is not supported anymore...

Ioannis

Acetronics2
- 6th June 2025, 08:31
It is a pity that it is not supported anymore...

Ioannis

Hi, Ioannis

The main question is ...

" How much would you pay for it ??? " ...

BTW ... How much would consumers pay for internal/external drivers to include into PBP Package ???

Good questions, ehhhhh ... :rolleyes:

Alain

Ioannis
- 6th June 2025, 09:25
Well, currently there are two options, both free:

1. MCC the Microchip Configurator. Can be used as standalone, no need to use thw MLABX IDE

2. The Great Cow Basic that can automatically make the configuration without user intervention. After compiling, you can open the asm file and copy the configuration.

Ioannis