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 - LDmicro.GitHub news v4.0.A

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

LDmicro.GitHub news v4.0.A (by Ihor Nehrutsa)
https://github.com/LDmicro/LDmicro/releases/tag/4.0.10

== Release 4.0.A

* Fixed: EEPROM reading 'Empty variable name' message.

* Fixed: Messagae "RAM: Out of memory; ...") for non hardware MCU.

* New: Variable name that begins with symbol '#' like
#TRISA, #TRISB, #TRISC, ... treated as data direction register of corresponding ports
#PORTA, #PORTB, #PORTC, ...

Operation -{ MOV #TRISA, dest }- writes 8-bit value from
the variable 'dest' to the direction register of PORTA.

Setting a TRISx bit (= 1) will make the corresponding PORTx pin
an input (i.e., put the corresponding output driver in a Hi-Impedance mode).
Clearing a TRISx bit (= 0) will make the corresponding PORTx pin an output
(i.e., put the contents of the output latch on the selected pin).
Value of TRISx registers on MCU after RESET usually is 0b11111111(0xFF).

* HOW TO: Stopwatch4 over serial 7 segment LED displays
https://github.com/LDmicro/LDm...-serial-7-segment-LED-displays

Font file 7Segments.ttf included.
Mon Nov 21 2016, 17:45:47, download attachment build40A.zip
(no subject) (by Boris)
Why it doesn't remember PWM pin, even if I save file (PIC 16F877), every time I open same file it show <not I/>

Is it possible to associate ldMicro with file?
Tue Nov 22 2016, 02:35:15, download attachment Etiketirka sa datumarom.ld
(no subject) (by MGP)
Boris, your have to give the PWM instruction a name.

Ihor, I have found a fault, I you give de "Izbr" variable a name with no "I" in front then the modbus disappears and become a normal variable.

And when you simulate the program it gives a error in rung 68, a rung that does not exist.
Tue Nov 22 2016, 16:57:57, download attachment Snap176.jpg
(no subject) (by Boris)
OK, I didn't know that I have to give name because I made it with 2.2 where You don't need that.
About "I" I always wonder what is happening because I am not using modbus and show me modbus.

Thank's MGP

Is it possible to associate ldMicro with file?
Wed Nov 23 2016, 07:34:51
(no subject) (by MGP)
I'm afraid you'll have to rewrite your program with the new version of ldmicro and provisionally without variable names beginning with "I".

The old versions are not compatible with the new versions.
i.e. the new LDmicro has 2 pwm channels and they need a name.

I now use version V40A and outside the modbus error I encountered no other errors yet.
Thu Nov 24 2016, 03:10:15
(no subject) (by bfwolf)
To Ihor:

V40A looks very promising! :-)
Memory-bugs and hanging-program-bugs seem do be fixed! ;)

I found some 'little' issue:
If you select 'Compile' -> 'Compile As...' in the menue,
a file-dialog opens and you ma enter a filename, but the dialog
always returns to itself, if you click on the 'save' button.
No compilation is done then!

Only the 'cancel' button leaves this loop!

Regards and happy testing+fixing... ;-)
Thu Nov 24 2016, 04:22:07
(no subject) (by MGP)
Bfwolf, I dont have this problem, everything works fine.
Maybe there is a error message behind the LDmicro editor, check this.
Thu Nov 24 2016, 05:14:15
(no subject) (by bfwolf)
To MGP, Ihor:

I see no error message, even behind the LDmicro editor!
I switched all windows with <ctrl>+<tab> ...

The bug only shows, if i select 'Compile' -> 'Compile As...'
If i select 'Compile' -> 'Compile' it works!
=> As target-processor 'ANSI-C' is selected, a .C file is generated!

I have Windows7 ...

Perhaps, you try attached file... ;)
Regards
Thu Nov 24 2016, 11:16:11, download attachment hello-ansi.ld
(no subject) (by MGP)
Sorry I never compile in ANSI C code and I have the same errors when I compile in anci C.
Thu Nov 24 2016, 11:39:44
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):