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 - help for add atmega328p in Ldmicro

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

help for add atmega328p in Ldmicro (by ritesh )
hello Jonathan sir,

I am working on project where i am using ldmicro for ladder logic but i am using micro-controller Atmega328p and in ldmicro this micro-controller is not support,could you please help me for this.

thanks
ritesh
Thu Oct 17 2013, 01:36:23
mcutables (by sundara ramanan)
hello ritesh
you need to add all required parameters for that particular MCU
step 1:get familiarised with C++ and install visual studio and pearl executer for this purpose

step 2:
open the ldmicro.h file and search for the following....


typedef struct McuIoInfoTag {
char *mcuName;
char portPrefix;

here you can find the required parameters required for a particular microcontroller and collect those info from your MCU's datasheet

step 2:open the mcutables.h file .study and familiarize yourself with the present microcontrollers list in order to add your MCU details in the same fashion
(note:no other changes are required as the MCU list is called dynamically from that header file)

step 3:add the changes to the file and compile the source code in order to generate a new ldmicro.exe file.
(refer this forum if you need to learn how to compile the source code )

[i guess that you are developing openPLC's hardware for your project and i suggest you to go for atmega 32 has it has more I/O and other features extra...just you have to work a bit more for developing the main board inorder to use it for your plc

with regards
sundara ramanan
Fri Feb 28 2014, 04:28:07
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):