PIC12f510
-
- Posts: 28
- http://meble-kuchenne.info.pl
- Joined: Sun Jan 01, 2023 11:01 am
- Location: UA
- Been thanked: 3 times
- Contact:
Re: PIC12f510
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
Re: PIC12f510
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?
-
- Matrix Staff
- Posts: 1726
- Joined: Wed Dec 02, 2020 11:07 pm
- Has thanked: 595 times
- Been thanked: 576 times
Re: PIC12f510
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.
Can you send me the hex and .msg files from FC10, then I will let you know.
Martin
Re: PIC12f510
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
Re: PIC12f510
Bit 4 - Enabled. Apply this reset scheme. Configuration word is present in file "сof" 0x3ffa
-
- Matrix Staff
- Posts: 1726
- Joined: Wed Dec 02, 2020 11:07 pm
- Has thanked: 595 times
- Been thanked: 576 times
Re: PIC12f510
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
What trying 12F1840 which has 4k Flash Rom and in internal osc of up to 32MHz
Martin