PIC12f510

For general Flowcode discussion that does not belong in the other sections.
carworker
Posts: 28
http://meble-kuchenne.info.pl
Joined: Sun Jan 01, 2023 11:01 am
Location: UA
Been thanked: 3 times
Contact:

Re: PIC12f510

Post 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
Attachments
Test Routine.fcfx
(7.82 KiB) Downloaded 3 times

mnfisher
Valued Contributor
Posts: 1342
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 126 times
Been thanked: 667 times

Re: PIC12f510

Post by mnfisher »


alanwms
Posts: 124
Joined: Fri Dec 04, 2020 2:29 pm
Has thanked: 25 times
Been thanked: 7 times

Re: PIC12f510

Post 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?

medelec35
Matrix Staff
Posts: 1726
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 595 times
Been thanked: 576 times

Re: PIC12f510

Post 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.
Martin

carworker
Posts: 28
Joined: Sun Jan 01, 2023 11:01 am
Location: UA
Been thanked: 3 times
Contact:

Re: PIC12f510

Post by carworker »

config.png
config.png (31.79 KiB) Viewed 323 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
Attachments
Test Routine.rar
(1.97 KiB) Downloaded 2 times

carworker
Posts: 28
Joined: Sun Jan 01, 2023 11:01 am
Location: UA
Been thanked: 3 times
Contact:

Re: PIC12f510

Post by carworker »

sh.png
sh.png (7.44 KiB) Viewed 323 times
Bit 4 - Enabled. Apply this reset scheme. Configuration word is present in file "сof" 0x3ffa

medelec35
Matrix Staff
Posts: 1726
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 595 times
Been thanked: 576 times

Re: PIC12f510

Post by medelec35 »

Instead of using 12F510 which as 1.5k Flash Rom, therefore will run out of code very quickly.
What trying 12F1840 which has 4k Flash Rom and in internal osc of up to 32MHz
Martin

Post Reply