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.1.2

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

LDmicro.GitHub news v4.1.2 (by Ihor Nehrutsa)
https://github.com/LDmicro/LDmicro/releases/tag/4.1.2

== Release 4.1.2

* Changed: COIL, CONTACT draw in simulation mode.
https://github.com/LDmicro/LDmicro/wiki/CONTACTS-and-COILS

* Updated: SET PWM Timer1 at PIC's. PIC16F628, PIC16F88, PIC16F819.

* Updated: SLEEP at PIC's.

* Fixed: Messages in LOOK-UP TABLE.
Thu Dec 29 2016, 08:55:21, download attachment build412.zip
(no subject) (by MGP)
Wow thanks, PWM on a F628a, F88 ... that was something I was missing.
Thu Dec 29 2016, 10:13:28
(no subject) (by MGP)
Ihor,
When using the LUT instruction I made a mistake by selecting a value out of range.
If I simulate the program I get an error, I press OK but then I select "start Real-time simulation" anyway, I can not close the program anymore.
Thu Dec 29 2016, 12:54:13, download attachment LUTtest.ld
(no subject) (by Alex)
bye the way, what is the LUT instruction for?
Mon Jan 2 2017, 22:15:47
(no subject) (by MGP)
To eliminate a bunch of MOV instructions.
Tue Jan 3 2017, 10:40:00, download attachment lut_instruction.ld
(no subject) (by Alex)
interesting, thanks for your reply, but why in LUTtest.ld it has an error?
Tue Jan 3 2017, 18:02:49
(no subject) (by MGP)
Open the LUTtest.ld program
Start the simulation
You get an error
Ignore the error and start the "real time simulation".

You can't shut down Ldmicro anymore.

The LUT instruction works, but if you forgot to save it before simulation you can start all over again.
Wed Jan 4 2017, 03:04:02
(no subject) (by Alex)
yeah it freezez
Thu Jan 5 2017, 14:59:10
LUT its not important (by SEGAR)
i see from ex-spec in the LUT features its not important as well

thanks
Sat Jan 7 2017, 23:56:26
16F877A Pin#33 (by Boris)
There is some problem.
When I compile with 2.0 on pin#33 when it is configured as input and pull down resistor 3,9k voltage on pin is 0V.
When I compile with 4.1.2 voltage is 0.84V (same condition) and when I use long flat cable it triggers input. All other pins voltage is 0V.
Mon Jan 9 2017, 12:28:44, download attachment Etiketirka sa datumarom.ld
(no subject) (by MGP)
All pins on RB0..7 are intern pull-ups activated on newer versions of LDmicro.
Mon Jan 9 2017, 16:09:21
(no subject) (by Boris)
Only those pins or some else?
Why is that different, I don't see the reason.
Why only 1/4 of PIC is like that, for me is better that everything is same.
Which resistor to put as pull down to disable internal pull up and to have positive logic.

I know that on ATMega all internal pull ups are activated and with 1K pull-down resistor You have positive logic.
Mon Jan 9 2017, 16:56:21
(no subject) (by MGP)
Look at the datasheet, but I think It's only PORTB that has internal resistors.
I use them all the time now with the 16F628a, it's a big improvement for small projects.

The weak resistors have a current of 200µA if you put that pin to the GND, so 1K to the GND will do.
Mon Jan 9 2017, 17:46:26
(no subject) (by Boris)
That is something that Ihor made in program to activate internal resistor.
For me hardware is now problem because it is not same as earlier and I have to change many projects programed with new LDmicro and it is OK if You have all inputs behave same way.

To Ihor
Is it problem to disable internal resistors in 16F877A?
Tue Jan 10 2017, 02:57:59
(no subject) (by Ihor Nehrutsa)
PIC16F877 datasheet:
PORTB is a bi-directional I/O port. PORTB can be software
programmed for internal weak pull-up on all PORTB inputs.

Others PORT's has no pull-up on this MCU.

See also
https://github.com/LDmicro/LDmicro/wiki/Pull-up-resistors
Tue Jan 10 2017, 03:32:38
(no subject) (by MGP)
I am a big fan of pull-up resistors, with PWM for 18pin pics the best hardware improvements so far, in my opinion.

I hope it stays this way.
I have already updated all my programs to V4.1.2

You can hardly turn back these improvements because of old programs.
Windows would never have existed, if we had continue to work with dos because of old programs

You can always compile with a version <V3.5.0 or change ports.
Tue Jan 10 2017, 07:31:07
(no subject) (by Boris)
Thank You MGP for telling me that Earth is not flat.

As I said I don't test every new version of LDMicro I download new version and there are always many new improvements and I didn't know for that change in hardware to have 1/4 inputs NPN and 3/4 PNP,
my mistake sorry.
Are all PIC NPN inputs now?
Tue Jan 10 2017, 10:14:20
(no subject) (by Boris)
Are there any changes for outputs (output ON is +5V on pin)
Tue Jan 10 2017, 10:32:29
Thank you (by hendryawan)
Dear Mr. Ihor Nehrutsa
I am very appreciated to your effort to spend your time to made this software more powerfull.
Thank you very much and best regards.

Hendryawan
Sun Jan 22 2017, 20:37:50
(no subject) (by Alex)
Is LUT instruction already fixed? i simulated it, doesn´t freeze anymore
Wed Apr 5 2017, 09:48:49
(no subject) (by Ihor Nehrutsa)
to Alex
LUTtest.ld will fixed in Release 4.1.8
Wed Apr 5 2017, 11:14:22
(no subject) (by Alex)
Thank you very much Ihor
Wed Apr 5 2017, 13:15: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):