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 - LdMicro32 release 5.2 is available

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

LdMicro32 release 5.2 is available (by JosÚ GILLES)
Hi everybody

I've just uploaded a new release of ldMicro32 on usual Github:

https://github.com/joegil95/LdMicro32

What's new in this 5.2a version ?

1)
I have implemented I2C (master) for PIC16F in C programming mode. PIC16F628 has no I2C or SPI at all.
For PIC16F88 or 819, which only support I2C in slave mode, I have developped a software I2C Master (see library).

It has been tested in a PIC simulator on PIC16F88 & PIC16F876.
Others are normally compatible with one of these two.

There's an additionnal library to use a 16x2 (or more) LCD display with an I2C I/O Expander, as for AVRs.

2)
I have enabled Config Bits in Control panel for AVRs and ARMs.
They can be used to modify default Pull-up activation on input pins.

For AVRs: one can modify Pull-ups on 8 bit Ports A, B, and C.
If value = 0xZZYYXX, XX bits modify pull-ups on PortA inputs, YY on PORTB and ZZ on PORTC.
A 1 bit will disable the corresponding pull-up, a 0 bit will let it enabled by default.

For ARMs: one can modify Pull-ups on 16 bit Port D only.
If value = 0xXXXX, 0 and 1 bits will behave as above (via a Xor).

Default Config-bits value is set to 0 for AVRs, as in previous versions of ldmicro. So, if one dosn't use use this option, nothing will be changed, and ladders will generate the same result as before.

Nothing has changed for PICS either.

I'll halt developpement for the time being ; maybe I could implement some PIC18F (as 18F4550 with USB), in C programming mode only of course (with C18 compiler), if some people are interested...

Let me know if you :) or ;( along usage...
Best regards
JG
Wed Jan 30 2019, 10:49:43
(no subject) (by Tom J.)
Is there any reading you could recommend on using I2C for those of us who are new to the protocol?
Wed Jan 30 2019, 13:18:02
(no subject) (by JosÚ GILLES)
Heres's a document which seems complete but not too complex...
Wed Jan 30 2019, 14:00:39, download attachment I2C-Bus.pdf
(no subject) (by Luis)
Hello JosÚ GILLES could you put more examples 12c-lcd 16x2.

Examples of ADC, etc.

Regards.
Thu Jan 31 2019, 17:37:01
LdMicro32 release 5.2 is available (by DanielH)
Hello JosÚ!
Congratulations for your new 5.2a version!

I will test it with PIC16F887 on bare metal, not simulator.
I'm not using I2C nor SPI in my projects, only digital I/O and analog inputs, PWM and UART; but if I have enough spare time, I'll try those functions too.

I'm not using AVR nor ARM for now, but seriously thinking about implementing AVR Atmega1284P as alternative replacement for PIC16F887, perhaps developing a socket-to-pins adapter.

About PIC18Fxxxx implementation: if you have the intention and time, could you kindly include PIC18F4520?
It is pin-to-pin full compatible with PIC16F887, thus allowing a very simple and great enhancement in program memory and RAM for a PIC16F887 based device.

Best regrads,
DanielH
Fri Feb 1 2019, 08:02:18
(no subject) (by JosÚ GILLES)
To Luis:

Here are a few more ld examples
For LCD 16x2, read txt file in lib directory

To DanielH:

Thanks for your reply. I'll keep in mind PIC 18F4520 for future developments. Pin compatibility is really interresting !

JG
Fri Feb 1 2019, 12:37:27, download attachment tests.zip
(no subject) (by Luis)
Ok. Thank you very much JosÚ GILLES.

Regards.
Fri Feb 1 2019, 13:14:08
ADD PLEASE PIC 18F4520 (by AMQ)
JosÚ GILLES
THANKS FOR UPGRADE NEW VERSION
Fri Feb 1 2019, 13:40:29
(no subject) (by Luis)
Hi JosÚ GILLES , you can send a counter as a variable so it can be displayed in 12C.

Greetings.
Thu Feb 7 2019, 13:12:52
(no subject) (by Alex)
hello, for pic wich compiler do i have to download?
Thu Feb 7 2019, 23:20:23
(no subject) (by Alex)
i have donwloaded MPLAB X IDE v5.10
Thu Feb 7 2019, 23:23:46
(no subject) (by JosÚ GILLES)
I have tested with Mplab 8.7 which was installed on my computer.

JG
Fri Feb 8 2019, 07:36:34
(no subject) (by Alex)
thanks for your reply, i have installed MPLAB IDE 8.92, how should i set the path for flash, in your flashmcu file donwloaded within ldmicro 5.2a says:

@rem SET TOOL="d:\Program Files\Microchip\PICkit 3 v1\PICkit 3.exe"
SET TOOL="d:\Program Files\Microchip\MPLAB IDE\Programmer Utilities\PICkit3\PK3CMD.exe"



i have pickit 2 only
Fri Feb 8 2019, 12:06:04
(no subject) (by Alex)
i┤ll test i think mine one is:


D:\Alex\MPLAB IDE\MPLAB IDE\PICkit 2
Fri Feb 8 2019, 12:09:57
(no subject) (by JosÚ GILLES)
To Alex:

Did you solve your path problem ?

I must test libraries with new 5.3 version...
Maybe I'll have to make some modifications.

JG
Wed Feb 13 2019, 08:32:55
(no subject) (by Alex)
Hello JosÚ GUILLES, i still can┤t set correctly path for my MPLAB IDE v8.92, testing with path i consider are for PIC
Fri Feb 15 2019, 19:39:46
(no subject) (by JosÚ GILLES)

Your path is wrong.

In fact you must install Hitech-C for PIC 16 (mine has been installed a long time ago !)

Have a look at:
ftp://ftp.microchip.com/
download picc-9.81a-win.exe and install it

Then set path as in my example in flashmcu.bat but according
to your unstall directory.

JG
Sat Feb 16 2019, 13:19:14
(no subject) (by Luis)
Hello JosÚ GILLES, for when an update of LdMicro32.

Regards.
Sat Mar 2 2019, 10:25:43
(no subject) (by JosÚ GILLES)
Hi Luis

In fact we are merging ldmicro 4.4 and ldmicro32 into ldmicro 5.2.x, together with Ihor, but there are a few little pbs.
I hope It'll be finished within a few days.


We'll let you know on the forum when it's OK.

Best regards
JosÚ
Sat Mar 2 2019, 11:16:39
(no subject) (by Luis)
Ok Thanks.
Sat Mar 2 2019, 11:25:01
ADD pic16F676 (by Marty)
my humbal reqest that plz add pic16f676
Tue Mar 5 2019, 07:48:35
(no subject) (by JosÚ GILLES)
Adding a new target can't be done in the twinkling of an eye !
Please be serious.
Tue Mar 5 2019, 12:09: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):