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 - Can someone compile LDmicro and fix a bug?

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

Can someone compile LDmicro and fix a bug? (by MGP)

The reason is that the program memory of a 16F1512 (2k) and a 16F1516 (8k) are both currently set to 2k, while a 16F1516 has 8k of memory.

They are very good and inexpensive controllers that I use regularly.

Best regards and thanks.
Sat Jan 3 2026, 14:41:09
(no subject) (by Andre)
On Sunday I'll try tinkering with it and see if it works; I'm still learning to understand the code.
https://cq.cx/ladder-forum.pl?...parent=11837&tt=1766058873
In this thread I tried to add the PIC16F630 but no one responded.
Sat Jan 10 2026, 14:19:37
(no subject) (by MGP)
Thank you, take your time.
I do have a 16F1516 to test, but I don't have a 16F630 because they look a lot like a 16F628a and don't have an ADC onboard, which makes them less attractive.
Sat Jan 10 2026, 16:50:36
(no subject) (by Andre)
Which version are you using?
Thu Jan 15 2026, 22:17:16
(no subject) (by MGP)
I'm using the latest version 5.4.1.1 which can be found on Github.

https://github.com/LDmicro/LDmicro
Yesterday, 01:52:51
(no subject) (by MGP)
I've also done some searching, and I think these changes should be sufficient.

The screenshot is from mcutable.h and shows the memory capacity of the controllers. It was copied from the 16F1512 to the 16F1516 but wasn't changed to the correct numbers.
The numbers in the curly brackets indicate the RAM locations.

I can't compile LDmicro; it took me days, but my knowledge isn't extensive enough.

If you'd like to try it, I'd do a test. Thanks.
Yesterday, 15:41:21, download attachment Snap421_ldmicro.jpg
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):