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