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 - PIC10F200 compile issues

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

PIC10F200 compile issues (by Tom J.)
Decided to try a simple set/reset on a 10F200 today and got a couple of errors followed by LDmicro crashing.
It did the same exact thing in Linux and Windows 7 but my screenshots are in Linux.

I also noticed the pin number for GP3 is Pin 5, but GP3 is actually Pin 6 on the MCU, maybe this error is because I tried using GP3?
Wed Apr 18 2018, 21:33:19, download attachment Screenshot from 2018-04-18 21-21-28.png
(no subject) (by oleksiy)
Thu Apr 19 2018, 01:00:11
(no subject) (by oleksiy)
Tom J., it is also very helpful if you will provide a minimal *.ld script that causes such errors.
Thu Apr 19 2018, 01:11:42
Para Tom (by Calubert)
Puedes mandar el programa ejemplo.ld
Thu Apr 19 2018, 04:56:45
(no subject) (by Tom J.)
This is the ld that failed to compile, just two simple set/resets to see if I could get a 10F200 running.
Thu Apr 19 2018, 21:11:48, download attachment Switch.ld
(no subject) (by Ihor Nehrutsa)
Fixed in Release 4.3.8.5

1) You can use only timer 0
2) Frequency is 4 MHz
3) GP2 has no pull-up, so I replace GP2 and GP1
4) You can use the T-trigger output. See rung 10
Fri Apr 20 2018, 05:00:00, download attachment Switch.ld
PARA TOM J (by Calubert)
Hola tom tienes que ver la memoria que tiene el micro tu programa consume mas memoria de la que tiene el micro. yo te quite el segundo, Begin Switch 2 y con esto Tienes un 93% lleno

tambien Tienes que configurar el micro si ves la hoja de datos veras que solo tiene el tiempo de ciclo 1,000, Reloj-0, Frecuencia 4,000000.

la verda es un micro es muy simple seria para PWM de una salida (similar al 555).

Copilado con

Release 4.3.3, built 15:44:33 Nov 22 2017
Fri Apr 20 2018, 05:08:02, download attachment Calubert.ld
Para Tom J (by Calubert)
Archivos.hes
Fri Apr 20 2018, 05:09:35, download attachment Calubert.hex
No es una errata (by Calubert)
Es por no saber la configuración del micro y la capacidad de momoria
Fri Apr 20 2018, 05:12:46
por Ihor Nehrutsa (by Calubert)
No tu programa no puede funcionar ya que el micro 10f200 no tiene tanta memoria como hiciste el programa no lo podrás copilar dará un error
Fri Apr 20 2018, 05:19:11
(no subject) (by Tom J.)
Thank you everybody for helping, and for everything you do for the LDmicro project.

Version 4.3.8.5 does not appear to be on github yet, is there a pin number correction to put gp3 on pin 6?

Ihor, your switch 3 rung is much more elegant than the method I was using..
Fri Apr 20 2018, 21:27:51
(no subject) (by Tom J.)
Wow, even just 1 rung with 4 instructions and LDmicro says it's too large for the 10F200.
Fri Apr 20 2018, 23:28:01
Tom J (by Calubert)
La verdad se tendría que tratar con El mps430-253 que este micro tiene 16K de memoria pero aun no lo tiene la base de datos de LDmicro. Espero que lo asignen algún día.
mi teoría ya que LDmicro consume tanta memoria se debe trabajar con micro-controladores que tengan mucha mas memoria.
yo trabajo con pic16f887, ya que este es el que mas proporciona de memoria de la base de datos de LDmicro (7K).
yo trabajos con Lader PLC. www.tecnocalubert.com
la pic16f629A tiene (4k), la pic16xx (2K).
antes de hacer el proyecto se tiene que mirar la hoja de datos de los pic que soporta LdMicro, y asignar el mejor que se adapte a nuestro proyecto.
Sun Apr 22 2018, 06:03:48
Contest: The biggest possible ladder diagram in PIC10F200? (by Ihor Nehrutsa)
Tue Apr 24 2018, 05:55:30
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):