LDmicro and Arduino - LDmicro/LDmicro GitHub Wiki

LDmicro provide two ways for Arduino boards users:
1. User develop ladder logic diagramm (LD file),
LDmicro "Compile" LD to HEX file,
external programmer burn HEX file to the Arduino board.
See HOW TO: Using LDmicro and Arduino board without an Arduino software
2. User develop ladder logic diagramm (LD file),
LDmicro generate Arduino Sketch( INO,CPP,H files),
Arduino IDE "Verifi/Compile" Sketch( INO,CPP,H files) to Sketch.INO.HEX file,
Arduino IDE "Upload" Sketch.INO.HEX file to the Arduino board using bootloader,
OR Arduino IDE "Upload Using Programrer" Sketch.INO.HEX file to the Arduino board using an external programmer.
See HOW TO: Integrate LDmicro and Arduino software

For example:
First way.
1. 1. LDmicro can generate a HEX file directly for many Arduino boards.
ldmicro_arduino
You should select proper processor in LDmicro. See Compare Arduino board specs
For "Arduino UNO" board you should select "Atmel AVR ATmega328 28-PDIP" in LDmicro.
image image

1. 2. Burning HEX to the Arduino board with an external programmer. Like:
1.2.1. Console utility AVRDUDE - AVR Downloader/UploaDEr
Avrdude Summary
Avrdude Homepage
Parallel Port Programmer
1.2.2. You can see a lot of external programmers in AVR Studio
menu Tools->Program AVR->Connect...
image
image
1.2.x. Please propose your AVR burn programmer.

Second way.
2. 1. LDmicro can generate Arduino Sketch( INO,CPP,H files).
image
The generated Arduino Sketch will be the same for all Arduino boards.
You must provide an I/O pin mapping for your Arduino board in generated ladder.h,
image
then "Verifi/Compile",
then "Upload" thru bootloader.
2. 2. Also you can use external programmer from the paragraph 1. 2.
via Arduino IDE menu Sketch->Upload Using Programrer.
2. 3. Debug Arduino with Proteus

IMHO, First way more simple, second way more complicated, but more flexible and universal.

The choice is yours.
Any questions to [email protected]