Configbits are not saved correctly V5404 with pic16F1827 (by MGP)
I am playing with a 16F1827 and discovered an error in LDmicro.
If I enter the configuration bits 0xDEFFF904 (address 8008.8007) and compile, everything works fine.
When I save my LD program, those bits are filled with 0xFFFFFFFF, also when compiling they are changed to 0xFFFFFFFF.
The configuration bits are therefore not saved correctly.
You must re-enter the configuration bits each time you compile.
A sample program is attached, then enter hex numbers above.
(no subject) (by MGP)
I think I have found the solution.
Config2 word (8002) does not have bits 14 & 15 and if you take this into account everything works normally.
If you enter 0x1EFF3984 in the program above, the file will be saved correctly.
Btw. those 16F1827 at 32MHz work very fast, a cycletime of 0.07mS is possible!