Page 1 of 1

Config Bits and Reading/Writing

Posted: 05 Feb 2021 18:40
by BrooksCircuitSpecialists
Hello,

I have a few different IC's that have config bit options like WDT, Oscillator Timer, etc
Ex. PIC16C62A or ST7FMC2S4T

Usually I just grab a working system and read the ICs and then simply save them for future instances where a processor may've taken damage.

When that time comes, how do I know that the CONFIG bits will be written to the new future IC's properly?

Do I need to do something when reading my initial master IC so that the original CONFIG bits will be a part of the IntelHex file?

If I simply copy the prog memory and then program that to new IC's, the unit will not run properly if those config bits are different, most likely.

Appreciate your wisdom and thank you in advance!

Re: Config Bits and Reading/Writing

Posted: 08 Feb 2021 11:00
by Dataman (Neil Parker)
Hello BrooksCircuitSpecialists,

> When that time comes, how do I know that the CONFIG bits will be written to the new future IC's properly?

When you read a device with configuration options (as long as it is not protected) the config. settings will be read into our software and can be seen in the "View/Edit Config. bits and ID locations" dialog. This can be save to a project file which will include the program data and config. bits.
Capture1.PNG
Capture1.PNG (7.42 KiB) Viewed 4159 times
> Do I need to do something when reading my initial master IC so that the original CONFIG bits will be a part of the IntelHex file?

Not when reading the master, but when programming the new device you will need to make sure you check the "Configuration bits" option in the "Device operation options" dialog:
Capture.PNG
Capture.PNG (9.62 KiB) Viewed 4159 times
I hope this helps but if you have any further questions please do not hesitate to contact us.

Best regards,

Neil Parker
Dataman Programmers

Re: Config Bits and Reading/Writing

Posted: 08 Feb 2021 18:05
by BrooksCircuitSpecialists
Hey Neil, thank you for the fast reply.

This answers all of my questions perfectly, thank you!

Re: Config Bits and Reading/Writing

Posted: 09 Feb 2021 19:50
by BrooksCircuitSpecialists
Hey Neil,

Last question, will the buffer file (Save Buffer to File F2) include the config bits when I save, or only if I save the project file?

Respectfully

Re: Config Bits and Reading/Writing

Posted: 10 Feb 2021 09:07
by Dataman (Neil Parker)
Hello BrooksCircuitSpecialists

The configuration will only be saved as part of a project file.

Regards,


Neil Parker
Dataman Programmers