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 - SPI not available Atmega328 -32 pin

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

SPI not available Atmega328 -32 pin (by Andrea)
Hello.
Thanks for this LDmicro program! This is great!
SPI instruction not available with Atmega328 -32 pin micocontroller. Can I have a solution to this problem?
Release 5.4.0.4.
Wed Apr 8 2020, 00:49:56
(no subject) (by José)
Hi Andrea

To make SPI or I2C available in a new target, source code needs to be modified and rebuit.

I have built a new version of ldmicro32 (5.5a), derived from official ldmicro 5.4.0.4, with SPI and I2C available for AtMega328 in 32 bit package:

https://github.com/joegil95/LdMicro32

Dowload first zip file and get the french / english or spanish version you want of LdMicro32 exe file to replace old one.

Note that your SPI must be called "SPI" (not "SPI1"). You need external libraries included in the zip file (no modification).
Read txt files in zip if you need help.

Make your ladder, compile it for Avr-Gcc, and run flashMcu.

I haven't tested it because I don't have an AtMega328 in 32 pins package, but it worked with normal 28 pins and I believe there should be no difficulty...

Let us know ?

I'll see next with Ihor if he wants to include it to the official release.

Jose
Thu Apr 9 2020, 05:13:35
(no subject) (by Andrea)
This is great!
Thanks so much for the quick reply!!!
Fri Apr 10 2020, 05:18:46
(no subject) (by José)

OK
During confinement we all have time to spend.

Tell me if it works... or if your encounter problems...
Jose
Fri Apr 10 2020, 13:24:16
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):