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 - How to connect Atmega88P ? It is working?

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

How to connect Atmega88P ? It is working? (by Matthew)
Hello!

I'm Matthew and i'm from Poland :) I'm very happy of LDmicro. Unfortunately, in spite of a simple program (leds) my Atmega88 don't work. Therefore, if anyone could give wiring diagram button and LED, and say how I should set up LDmicro to ATMEGA88PA? (I have external quartz 8mhz). I think it should work setting for Atmega8, but it's not working.
Thu Sep 25 2014, 12:03:01
(no subject) (by Matthew)
I use MKAvrCalculator to send program and i have USBasp programmer. I don't know which fuse bits i have to set? And i don't know how to connect, actually it look like this (attachment)
Thu Sep 25 2014, 14:05:30, download attachment ledwiring.jpg
(no subject) (by Matthew)
switch wiring
Thu Sep 25 2014, 14:06:00, download attachment switchwiring.jpg
(no subject) (by Dzairo)
Hi.
Matthew what LDmicro you use ??? because original version not support ATmega88 .. and program for ATmega8 is different then for ATmega88 ..My own Latest version support all new MCU .. but it's not official..
Sat Sep 27 2014, 02:18:30
(no subject) (by Matthew)
thank you for your reply :) i use Release 2.2, built 20:01:06 Aug 29 2010, so I would like to try unofficial version :)
Sat Sep 27 2014, 05:12:20
(no subject) (by Matthew)
New version will solve my problem? And could you tell me if images above are good wiring for me?
Sat Sep 27 2014, 10:23:32
(no subject) (by Dzairo)
Hi Matthew ..
Image for switch is wrong .. you use 1M ohm resistor for protection ?? it's too big ..
use less .. for example 1k or maximum 10k only ..

and here you can download latest complete source code (with special function) what support atmega88 too..

sevc.smz.sk/Ldmicro_C_12.zip
Mon Sep 29 2014, 05:50:56
(no subject) (by Matthew)
ok, i will use another, but i want to know if output and input is low or high activated :) thanks for your link, but it's not working :(

"The requested URL /Ldmicro_C_12.zip was not found on this server."
Mon Sep 29 2014, 08:15:37
(no subject) (by Matthew)
sevc.szm.sk/Ldmicro_C_12.zip not *smz* :) i will test it today
Mon Sep 29 2014, 08:39:18
(no subject) (by Matthew)
this code works fine :

#include <avr/io.h>
#include <util/delay.h>


int main(void)
{

DDRD = 0xFF;

DDRC = 0x00;
PORTC = 0xff;

for(;;)
{

PORTD = PINC;

}
}


THIS IS NOT WORKING:

LDmicroM=1
LDmicroS=1
MICRO=Atmel AVR ATmega88 28-PDIP
CYCLE=10000
CRYSTAL=1000000
BAUD=2400
COMPILED=C:\Users\Mjelec\Desktop\atmega88.hex

IO LIST
Xpd1 at 2
YB5 at 23
END

PROGRAM
RUNG
CONTACTS Xpd1 1
COIL YB5 0 0 0
END

i don't know what to do...:(
Mon Sep 29 2014, 16:02:19
(no subject) (by Dzairo)
Hi. sorry .. Matthew ..
In my project are 3 directories ..
1.Debug
2.ldmicro
3.Release

actual version is only in Debug directory ..
Then what *.exe you run?? from what directory ??
What not working ??? You open *.ld file project and ??
Sorry .. I have crazy days this week..
Tue Sep 30 2014, 02:49:39
(no subject) (by Matthew)
LDmicro.exe is only in directory "Release". I downloaded program in .C (with Eclipse):

#include <avr/io.h>
#include <util/delay.h>


int main(void)
{
DDRD = 0xFF;
DDRC = 0x00;
PORTC = 0xff;
for(;;)
{
PORTD = PINC;
}
}

It's working, LED is ON and when i push the button it goes to OFF.

I opened ldmicro.exe, wrote program like (screen)
NO REACTION :(
Tue Sep 30 2014, 14:30:48, download attachment program.jpg
(no subject) (by Dzairo)
hehe .. you have really true .. There is not used real port only variable bit changing..
sorry.. I must check it ..


sorry..
Thu Oct 2 2014, 09:52:47
(no subject) (by Dzairo)
hi.. try again.. this source .. I make mistake ..

sevc.szm.sk/Ldmicro_C_13.zip

regards
Fri Oct 3 2014, 05:22:28
(no subject) (by Matthew)
it's fantastic ! Thank you for help ! It's working :)
Sun Oct 5 2014, 17:41:33
(no subject) (by Matthew)
I wanted to use PWM for example... I got this:

C:\Users\Mjelec\Desktop>avr-gcc.exe -mmcu=atmega88 -Wall -gdwarf-2 -Os -fsigne
d-char -MD -MP -c main.c
main.c: In function 'SetPWM':
main.c:29: error: 'TCCR2' undeclared (first use in this function)
main.c:29: error: (Each undeclared identifier is reported only once
main.c:29: error: for each function it appears in.)
main.c:29: error: 'COM21' undeclared (first use in this function)
main.c:30: error: 'OCR2' undeclared (first use in this function)

C:\Users\Mjelec\Desktop>avr-gcc.exe -mmcu=atmega88 -Wl,-section-start=.text=0x0
000 main.o -o main.elf
avr-gcc.exe: main.o: No such file or directory

C:\Users\Mjelec\Desktop>avr-objcopy -O ihex -R .eeprom main.elf C:\Users\Mjelec
\Desktop\SILNIKIgg.hex
avr-objcopy: 'main.elf': No such file

C:\Users\Mjelec\Desktop>avr-size -C --mcu=atmega88 main.elf
avr-size: 'main.elf': No such file
Aby kontynuowa&#263;, naci&#347;nij dowolny klawisz . . .
Sun Oct 5 2014, 18:27:44
(no subject) (by Rajeev)
Dear Dzairo Sir,

Thanks for sharing your version of LDMICRO.

I liked and appreciate your version for AVRs.

Can you guide me step by step procedure to create hex file for atmega88 only simple blinking LED program.

I always use pic16f887 and never used Atmega mcu with LDMICRO.

For pic mcu LDMICRO create hex file which works very well but for Atmega little complected.

Please also tell me which best IDE for Atmega.

Thanks & regards,

Rajeev
Mon Oct 6 2014, 07:30:37
(no subject) (by Dzairo)
Hi.
Sorry to all.. but I see that right now there is many bugs ..
Now I don't have free time .. but if have then test all hardeware and function .. must make big test..

and then I psot new version .. sorry ..

regards..
Mon Oct 6 2014, 15:03:07
(no subject) (by Matthew)
i'm waiting :)
Mon Oct 13 2014, 12:25:22
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):