(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.
(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)
(no subject) (by Matthew)
switch wiring
(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..
(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 :)
(no subject) (by Matthew)
New version will solve my problem? And could you tell me if images above are good wiring for me?
(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
(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."
(no subject) (by Matthew)
sevc.szm.sk/Ldmicro_C_12.zip not *smz* :) i will test it today
(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...:(
(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..
(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 :(
(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..
(no subject) (by Dzairo)
hi.. try again.. this source .. I make mistake ..
sevc.szm.sk/Ldmicro_C_13.zip
regards
(no subject) (by Matthew)
it's fantastic ! Thank you for help ! It's working :)
(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ć, naciśnij dowolny klawisz . . .
(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
(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..
(no subject) (by Matthew)
i'm waiting :)
Post a reply to this comment:
|