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

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

Adding ATmega328 (by PetrD)
After adding the ATmega328 to mcutable.h generated code does not work in AVR. HEX file is generated correctly, but after uploading the programmer to the processor does not work.

Can you please help.
Mon Mar 17 2014, 18:02:12, download attachment mcutable.h
(no subject) (by David R)
HI I think you need to add bits to avr.cpp and change the number of mcu's
regards
David
Thu Mar 20 2014, 02:33:41
(no subject) (by Ziggy)
Petr,

I hope the link I post

http://cq.cx/ladder-forum.pl?action=viewthread&parent=3341

gives You some additional information and insight.

I too would like to see more MCU options but am not clever enough to implement them ( on my own?).

May be we can collaborate?

Ziggy
Thu Mar 20 2014, 18:19:36
Adding ATmega328 (by PetrD)
Thank you for your support. The file is modified definition for the new processor. But after upload HEX file into the ATmega328 program does not work.
Thu Mar 20 2014, 19:05:45, download attachment avr.cpp.zip
(no subject) (by PetrD)
I would also like to implement more commonly used today Atmel AVR processor such as ATmega328, ATMEGA1280 and ATmega2560.
Thu Mar 20 2014, 19:17:27
Adding ATmega328 (by PetrD)
The first attempt ATmega328, some functions still do not work correctly.
Fri Mar 21 2014, 17:48:51, download attachment avr.cpp
new mcu (by dzairo)
hi. to add new mcu is not easy..
atmega48,88,168,328 have different SFR position in memory.
not only add new chip definition... you need set correct position .. then all will work good..

now I can compile source code then I try add this MCU to code ..but I don't have more free time..

look to this document: https://www.google.sk/url?q=ht...CNH_vU6BuKw_TEiPBvMx9qg5Nxv8Ag

here you can see what are different..

if have more free time then I add new chip..
Thu May 1 2014, 14:26:02
Chioset atmega 328P in Ldmicro software (by sinar sina anugrah ( by ssa-electrical ) )
For you PetrD

ld micro supports to program atmega 328P
maybe you need to set the parameters of your atmega 328P
crystal & cycle time

may i see your program & your atmega board photo.
let me help you


whatsapp contact : 0858-9564-3034
Sat Jun 6 2020, 17:43:20
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):