PIC12F629 Compile error
Posted: Tue Feb 10, 2026 10:31 am
Hi All,
I hope I am right and this is a bug and not something I am doing daft. I can not get a PIC 12F629 to compile. I just wanted a simple oscillator to toggle 2 pins on and off. I have replaced the device with a 12F683 and it worked straight away. I have a draw full of 12F629's so it would be nice to get it to work.
I have attached my code.
The error I get:
32: #pragma config 0x1 = 0x4;
^ (1363) unknown configuration setting/register (0x1 = 0x4;) used
33: #pragma config 0x2 = 0x0;
^ (1363) unknown configuration setting/register (0x2 = 0x0;) used
(908) exit status = 1
(908) exit status = 1
Error returned from [xc8.exe]
I note that when I set it up, the oscillator and watchdog timer selections are prefilled with a number and not a selection. Not sure if this means anything, it just looks to me that the problem might be to do with the configuration registers.
Many Thanks.
Simon.
I hope I am right and this is a bug and not something I am doing daft. I can not get a PIC 12F629 to compile. I just wanted a simple oscillator to toggle 2 pins on and off. I have replaced the device with a 12F683 and it worked straight away. I have a draw full of 12F629's so it would be nice to get it to work.
I have attached my code.
The error I get:
32: #pragma config 0x1 = 0x4;
^ (1363) unknown configuration setting/register (0x1 = 0x4;) used
33: #pragma config 0x2 = 0x0;
^ (1363) unknown configuration setting/register (0x2 = 0x0;) used
(908) exit status = 1
(908) exit status = 1
Error returned from [xc8.exe]
I note that when I set it up, the oscillator and watchdog timer selections are prefilled with a number and not a selection. Not sure if this means anything, it just looks to me that the problem might be to do with the configuration registers.
Many Thanks.
Simon.