Home
Prox / RFID
Verichips
Ladder Logic
[interfacing] †
Tube Joints
Key Code From Photo
SolveSpace (3d CAD)
SketchFlat (2d CAD)
Photographs
Miscellany
Resume / Consulting
Contact Me

LDmicro Forum - Configbits are not saved correctly V5404 with pic16F1827

(you are viewing a thread; or go back to list of threads)

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.
Tue Jan 7 2020, 10:45:46
(no subject) (by MGP)
Sorry, forgot the LD file.
Tue Jan 7 2020, 10:47:28, download attachment A0016f1827V2-test.ld
(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!
Thu Jan 9 2020, 11:11:05
(no subject) (by Alex)
it is not bug then, would be ok if ldmicro warns us about that?or... Is it ok the way it is?
Wed Jan 22 2020, 20:46:46
(no subject) (by Ihor Nehrutsa)
Will be fixed in the next release.
Thu Jan 23 2020, 15:47:51
(no subject) (by Alex)
Thanks a lot Ihor
Thu Jan 23 2020, 16:27:58
Post a reply to this comment:
Your Name:
Your Email:
Subject:
(no HTML tags; use plain text, and hit Enter for a line break)
Attached file (if you want, 5 MB max):