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 v3.5.2

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

LDmicro.GitHub news v3.5.2 (by Ihor Nehrutsa)
== Release 3.5.2 experimental

* Fixed: Some user interface bug.

* Added: INT_DECREMENT_VARIABLE internal oparation.
Thu Jul 28 2016, 15:49:14, download attachment build352.zip
(no subject) (by MGP)
Ihor, I still have troubles to set the cursor in the instruction, see the picture for examples in your pwm.ld file.
It seems that the pointing area is 1 row too high.
I now use Version331 and that version is almost perfect.

I'm impressed in your programming skills and the speed of the updates, we can hardly follow but I enjoy this very much.
Thank you again.
Fri Jul 29 2016, 05:04:33, download attachment Snap100.jpg
(no subject) (by Ihor Nehrutsa)
to MGP

I know about mouse cursor setting problem.
I think v3.5.2 is stable.
Fri Jul 29 2016, 06:10:41
(no subject) (by MGP)
Ok, my next program, rotary encoder with exponential speedsteps as replacement for a potentiometer, i will use the latest version and see if everything works well.

First I have to think how to do it ;-)
Weekendwork..
Fri Jul 29 2016, 06:27:49
(no subject) (by bfwolf)
Hello Ihor,

thank you again for your great efforts and improvements!

As i played with the recent version with the hello.ld loaded and atmega328 selected as MCU, i noticed, that you display the memory usage and the HEX-adresses for variables.

So i came to an idea: How about writing those informations in an additional MAP-file (.ld replaced by .map)?
Format for the symbol-table could be as the one produced by the microsoft-linker of visual-studio...
Probably you should add some information about the kind of an adress (code, data). Perhaps by sections or something like a 'c:' or 'd:' preceding the adresses.
Also it would be nice to have the starting-adresses of the code of a rung...

I think, this could be very informational and useful! :)
Perhaps one could extract and convert this data for using it in a debugger...

How do you think about this idea?
Fri Jul 29 2016, 07:28:13
add mcu new thank Ihor Nehrutsa ? (by zoo)
you can put some mcu arm as they stm as high processing speed pulse thank you more the chip is too good
Fri Jul 29 2016, 11:54:08
LDmicro.GitHub news v3.5.3 (by Ihor Nehrutsa)
Fri Jul 29 2016, 19:26:19, download attachment build353.zip
LDmicro.GitHub news v3.5.3 (by Ihor Nehrutsa)
Please read CHANGES.txt
Fri Jul 29 2016, 19:27:40, download attachment CHANGES.txt
uart no run 3.53 (by zoo)
NO RUN UART 3.53 TEST 328 UNO NO RUN
Sat Jul 30 2016, 02:35:09, download attachment analog.ld
(no subject) (by MGP)
@Zoo

Please start a new thread if you have a question.
The problem is that we possibly miss the posts by Ihor.

Thank you
Sat Jul 30 2016, 04:00:39
(no subject) (by MGP)
@Zoo Sorry, it's V353 related.
Sat Jul 30 2016, 04:03:40
(no subject) (by MGP)
Ihor

The TCY instruction is a great improvement and the cursor positioning is perfect, thank you.
Sat Jul 30 2016, 05:47:09
(no subject) (by bfwolf)
Hello Ihor,

did you read about my idea about generating a map file?
Of course this is not urgent! :)

Playing with the recent version i found something,
that could be improved:
Because you now display the rungs more narrow,
it's hard to find the 'line-numbers' at the left margin...
How about showing them with 'white' color?
(highlighted)

Regards and thank you for your work!
Sat Jul 30 2016, 07:11:45
edit uart thank ? (by zoo)
Ihor Nehrutsa UART you can add value to display his ADC to grab that value to programming .cam Thank you very much your program now so completely wonderful UART hao.them more
Mon Aug 1 2016, 01:21:42
(no subject) (by Ihor Nehrutsa)
to MGP
1) What is rotary encoder with 'EXPONENTIAL' speedsteps?
https://en.wikipedia.org/wiki/Rotary_encoder

2) I think the software encoder without interrupts support will be too slow, and we can use it just as a manual volume control potentiometer, but not with the motors.

3) I have incremental rotary encoder OvW2-10-2MHC, like this
http://www.nemicon.com/pdf/OVW-2.pdf

I have developed incremental rotary encoder with interrupt support in ATmega8.
Now it in testing with the stepper motor.
Mon Aug 1 2016, 02:27:02, download attachment qEncoder.JPG
(no subject) (by MGP)
It's not a industrial encoder but a "potentiometer encoder" to set the voltage and current of power supply's and other equipment.

I want to program one with steps depending the rotationspeed eq. fast turn = output x 10, medium speed X 5, and slow = 1.
I want them smoother working, with more feeling than normal and programmed in Ldmicro so I can program the output as wel.

These rotary "potentiometers" have 24 steps and are too slow for setting a 12 or 16 bit value of a R2R dac.

Yesterday I have been working hours (testing) with the Ldmicro 3.5.3 version and I have'nt seen one fault.
It's very stable and I love the TCY instruction, my favorite.

The only thing I miss is a faster 7 segment display routine for displaying numbers, but for me, this can wait.

I'm very happy that someone is updating Ldmicro and take it to a higher level, thanks again.
Mon Aug 1 2016, 03:44:35
(no subject) (by Ihor Nehrutsa)
to bfwolf:
1) You are offering reverse engineering.
I offer direct development of project.
We have ld file.
If we have the source code asm,c,pas,bas etc for ld file,
we can open one of IDE(CodeVision AVR, WINAVR, AvrStudio for the AVR or MPASM for a the PIC), compile source code and get lst, map files
and then debug the project wiht IDE utilities.
Mon Aug 1 2016, 05:37:20, download attachment hello in AvrStudio.JPG
(no subject) (by bfwolf)
to Ihor:

Yes, you are right, assembling a source is the right way!
I forgot about your work already done... ;)

Anyway, higlighting the rung# in the ladder-editor
would be nice and not much work, as i suppose... ;)

I found some little bug again:
You added the feature that the space-key changes
type of one-shot, timer etc.
When i select the 'ADD' operation in the hello.ld
and press space multiple, the math-op changes
but suddenly the ldmicro.exe crashes, see screenshot!
Mon Aug 1 2016, 07:52:41, download attachment ldmicro-de.exe-3.5.3-spacebug.jpg
(no subject) (by Ihor Nehrutsa)
to bfwolf:

I attach AvrStudio project for hello.ld

Please read too
https://github.com/LDmicro/LDm...R-Studio-or-PIC-MPLAB-software

2) I will highlight rungs number.
Mon Aug 1 2016, 09:46:41, download attachment hello in AvrStudio.zip
hh (by hary)
his only compare two counters C1 = C2-> Y
Mon Aug 1 2016, 11:54:33
(no subject) (by Ihor Nehrutsa)
To zoo and hary

I dont understend you, give more information.
Mon Aug 1 2016, 13:29:02
(no subject) (by MGP)
This is also a bug when you select compare variable via keyboard 4 items don't work.
Mon Aug 1 2016, 14:16:44, download attachment Snap101.jpg
(no subject) (by Ihor Nehrutsa)
to MGP:
I checked keyboard shortcuts in Windows XP and Windows 7.
They work if menu is not open, or in first-high menu level,
not in submenu.
It's not bug, but a feature.
Thu Aug 4 2016, 02:42:22
(no subject) (by MGP)
I tested it again(win7) and found that it's related with the keyboard.
I have a Azerty keyboard(Belgium) and the shortcuts are on differend key's, see the picture.

It's not a problem for me but I wonder if someone else also have this problem with a non-qwerty keyboard.

Also OSR is the (:) key and OSF is the (µ) key, I forgot it on the drawing.
Thu Aug 4 2016, 04:06:43, download attachment Snap102.jpg
LDmicro.GitHub news v3.5.4 (by Ihor Nehrutsa)
https://github.com/LDmicro/LDmicro/releases/tag/3.5.4

== Release 3.5.4 experimental

* Highlight rungs number.

* Added menu Select Rung's.

* Allow constant value from 0x0000 to 0xFFFF in hexadecimal.
Thu Aug 4 2016, 04:47:27, download attachment build354.zip
(no subject) (by MGP)
Ihor, what do you mean with:

* Allow constant value from 0x0000 to 0xFFFF in hexadecimal.

Can you give an example?
Thu Aug 4 2016, 05:22:07
(no subject) (by Ihor Nehrutsa)
Variables are always 16 bit integers. This means that they can go from -32768 to 32767. Variables are always treated as signed. You can specify literals as normal decimal numbers (10, 1234, -56).
You can also specify ASCII character values ('A', 'z') by putting the character in single-quotes.

You can use an ASCII character code in most places that you could use a decimal number.

You can use hexadecimal numbers (0xA, 0x04D2, 0xffc8),
octal numbers (0o12, 0o2322, 0o177710),
binary numbers (0b1010, 0b10011010010, 0b1111111111001000)
in most places that you could use a decimal number.

[MOV dest:=]
-[ $FFFF ]-
Thu Aug 4 2016, 08:07:31
(no subject) (by Ihor Nehrutsa)
Sorry...Fixed bug converting negative numbers.
Thu Aug 4 2016, 09:38:07, download attachment build354ok.zip
you add mcu 328 32pin (by susu)
thank you very much
Fri Aug 5 2016, 13:21:29
(no subject) (by MGP)
Ihor,sorry for my ignorance, but I can not imagine what we can do this

[MOV dest: =]
- [$ FFFF] -

In the example below you can see that Ldmicro uses the argument like a variable, is that the intention?
Fri Aug 5 2016, 13:45:07
(no subject) (by MGP)
Sorry, forgot the picture.
Fri Aug 5 2016, 13:46:37, download attachment Snap103.jpg
LDmicro.GitHub news v3.5.4 (by Ihor Nehrutsa)
to MGP:
Do you like PASCAL?
'$' - is the PASCAL hexadecimal constant prefix.
PASCAL is my first language and I mechanically used it. Sorry me.

LDmicro used C prefixes
0x__ or 0X__ for hexadecimal with 1234567890ABCDEF digits
0o__ or 0O__ or 0__ octal with 01234567 digits
0b__ or 0B__ for binary with 01 digits

https://github.com/LDmicro/LDmicro/releases/tag/3.5.4
Fri Aug 5 2016, 18:25:15, download attachment build354.zip
(no subject) (by MGP)
I know what $, 0x..... mean but I think you don't understand my question.

[MOV dest: =]
- [$ FFFF] -

Is $FFFF in this instruction treatet as a variable name or as a unsigned number, and what is the benefit of such notation?
Sat Aug 6 2016, 02:59:38
(no subject) (by Ihor Nehrutsa)
In this case $FFFF is a variable.
Hexadecimals notation is more comfortable for bitwise oparetions like
AND,OR,XOR
Sat Aug 6 2016, 03:22:52
(no subject) (by MGP)
Ok now I understand what the purpose is of that notation.
Maybe you can add this in "Changes.txt"

But thx anyway.
Sat Aug 6 2016, 03:29: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):