Page 2 of 2
Re: PIC12f510
Posted: Sat Jan 25, 2025 10:11 pm
by carworker
This example works in the simulator. Pay attention to the project options. Do not set "automatic erase". If it does not work in hardware, you will need to restore the calibration constant using a programmer
Re: PIC12f510
Posted: Sun Jan 26, 2025 7:40 am
by mnfisher
Re: PIC12f510
Posted: Sun Jan 26, 2025 4:42 pm
by alanwms
I was using osccal after I ran out of ideas. I did understand that this was for frequency precision adjustment. For the MCLR bit - I actually have a measured VDD value. It is connected to VDD via a 1k resistor. There may not be a bug, but I have a feeling that the config is not downloading. I'm also a little confused regarding the config settings in FC. The check box for downloading the osc parameters can be checked to download when the program is downloaded. There is a button for "download now", but it doesn't seem to do anything - Certainly there is no indication on the screen that something happened?
Re: PIC12f510
Posted: Sun Jan 26, 2025 5:01 pm
by medelec35
There is a way of checking if the configuration settings are present within the hex file or not.
Can you send me the hex and .msg files from FC10, then I will let you know.
Re: PIC12f510
Posted: Sun Jan 26, 2025 11:01 pm
by carworker

- config.png (31.79 KiB) Viewed 3572 times
I remove this tick and it starts working. If you are programming the chip not from the FC environment but through the programmer, load the file "cof". Try mine
Re: PIC12f510
Posted: Sun Jan 26, 2025 11:10 pm
by carworker

- sh.png (7.44 KiB) Viewed 3572 times
Bit 4 - Enabled. Apply this reset scheme. Configuration word is present in file "сof" 0x3ffa
Re: PIC12f510
Posted: Mon Jan 27, 2025 1:17 pm
by medelec35
Instead of using 12F510 which as 1.5k Flash Rom, therefore will run out of code very quickly.
What about trying 12F1840 which has 4k Flash Rom and in internal osc of up to 32MHz
Re: PIC12f510
Posted: Fri Feb 07, 2025 6:13 pm
by alanwms
12F1840 is a great device. Thanks for the heads up. I like the speed on the intosc.