Ajay
Aug 18 2007, 5:25 AM
Please post your doubts regarding "Lets Learn AVR - step by step tutorial" here..
we will discuss it..
we will discuss it..
4y133
Sep 2 2007, 6:08 PM
Hi ajay, How are you? i hope you are fine.
Ok ajay, i have a problem with the software. i already download all software that u give in the 1st step. but when i try to install my computer will be stuck. i try to install it to other computer, but it still same.. and 1 thing, can u give the full schematic for avr? becoz the schematic that u give only for interface. so if u dont mind i want the full schematic for avr becoz i want to compare it with my schematic.
Thanks
rgds
BoB
Ok ajay, i have a problem with the software. i already download all software that u give in the 1st step. but when i try to install my computer will be stuck. i try to install it to other computer, but it still same.. and 1 thing, can u give the full schematic for avr? becoz the schematic that u give only for interface. so if u dont mind i want the full schematic for avr becoz i want to compare it with my schematic.
Thanks
rgds
BoB
Ajay
Sep 3 2007, 1:01 AM
what do you mean by full schematic?
also... I have installed the software in my PC i don't feel any problem.. can you try a different version of AVR studio.. that might help..
also... I have installed the software in my PC i don't feel any problem.. can you try a different version of AVR studio.. that might help..
4y133
Sep 3 2007, 2:53 AM
i mean schematic diagram for avr.
ok ajay, now i can install the program. Thanks. the problem is the file that i download was corrupted. thats why i cannot install the program.
hehe 
ok ajay, now i can install the program. Thanks. the problem is the file that i download was corrupted. thats why i cannot install the program.
hehe 
Ajay
Sep 3 2007, 3:35 AM
ok..
for AVR its very simple..
everything is labeled.. MISO will go to MISO of AVR
MOSI with MOSI of AVR
SCK with SCK of AVR
RESET with RESET of AVR
LED with simple.. LED on the target board.. or u can leave open if you don't want to connect
Led is connected like this.. on the target board..
LED ---|<|-----/\/\/\/\------VCC
For more information on pin configuration look in the datasheet of your AVR.
for AVR its very simple..
everything is labeled.. MISO will go to MISO of AVR
MOSI with MOSI of AVR
SCK with SCK of AVR
RESET with RESET of AVR
LED with simple.. LED on the target board.. or u can leave open if you don't want to connect
Led is connected like this.. on the target board..
LED ---|<|-----/\/\/\/\------VCC
For more information on pin configuration look in the datasheet of your AVR.
4y133
Sep 3 2007, 4:11 PM
ok. Thanks ajay for ur information.
milky
Oct 30 2007, 9:34 PM
Ajay~i want to ask about the step3 tutorial.
LD Rn,X+/Y+/Z+ , this instruction.i'm curious about the Z+. izzit this code is for the next pointer?so if i only want to load in only 1 data from 1 address then izzit Z is enough?
LD Rn,X+/Y+/Z+ , this instruction.i'm curious about the Z+. izzit this code is for the next pointer?so if i only want to load in only 1 data from 1 address then izzit Z is enough?
Ajay
Oct 30 2007, 9:52 PM
yeah.. slashes in the instruction means you can either use x, y or z.
i.e.
LD Rn X+
or
LD Rn Y+
or
LD Rn Z+
That command load the register Rn with the value stored at location Z and then increment Z.
if you just want to load from location Z and do not want it to increment then you can use the following command
LD Rn, Z
this will load register Rn with value stored at location Z.
i.e.
LD Rn X+
or
LD Rn Y+
or
LD Rn Z+
That command load the register Rn with the value stored at location Z and then increment Z.
if you just want to load from location Z and do not want it to increment then you can use the following command
LD Rn, Z
this will load register Rn with value stored at location Z.
MATHIVANAN
Oct 31 2007, 7:15 AM
hey milky
if u want load only one data from address location of ram means , u can do following instruction
LDS r16,$0061
this instruction will directly load the data from ram location $0061
and also if u want store directly means
STS $0061,r16
this will store the data to the location $0061
if u want load only one data from address location of ram means , u can do following instruction
LDS r16,$0061
this instruction will directly load the data from ram location $0061
and also if u want store directly means
STS $0061,r16
this will store the data to the location $0061
Robbby
Dec 9 2007, 10:39 AM
Hi Ajay,
I'm begginer in AVRstudio and winAVR. I wrote lcd .h and .c file, but when I use .h in other project, building final files fails:
../test.c:7: undefined reference to `LCD_init'
../test.c:11: undefined reference to `LCD_cursorxy'
../test.c:12: undefined reference to `LCD_sendstring'
make: *** [test.elf] Error 1
Build failed with 3 errors and 1 warnings...
lcd.c was checked before and works fine. I don't know where my mistake is.
Can you help me???
regards Robbby
I'm begginer in AVRstudio and winAVR. I wrote lcd .h and .c file, but when I use .h in other project, building final files fails:
../test.c:7: undefined reference to `LCD_init'
../test.c:11: undefined reference to `LCD_cursorxy'
../test.c:12: undefined reference to `LCD_sendstring'
make: *** [test.elf] Error 1
Build failed with 3 errors and 1 warnings...
lcd.c was checked before and works fine. I don't know where my mistake is.
Can you help me???
regards Robbby
Ajay
Dec 9 2007, 11:34 AM
files need to be in the same directory as your project.
is the lcd.c and lcd.h lies in same folder as test.c?
is the lcd.c and lcd.h lies in same folder as test.c?
Robbby
Dec 16 2007, 5:00 AM
Hello,
I have al the projects files in the same directory, but nothing.
Robbby
I have al the projects files in the same directory, but nothing.
Robbby
Ajay
Dec 16 2007, 5:27 AM
Robby can you please make a new thread? because this is for tutorial doubts. Please make a new thread in AVR discussion forum.. and explain problem again.. thank you..
Robbby
Dec 17 2007, 10:57 PM
Question from AVR keypad tutorial. I wanna join keypad and lcd in my project with your lcd and keypad drivers from tutorial. The problem is how to display pushed key on LCD display. I study your project and found statements like this:
while(!(key = getkey()));
key = translate (key);
lcddata(key);
I understand all this statemnt, but not working in my project. LCD display different characters. Can you tell me, what I'm doing wrong.
regards
Robbby
while(!(key = getkey()));
key = translate (key);
lcddata(key);
I understand all this statemnt, but not working in my project. LCD display different characters. Can you tell me, what I'm doing wrong.
regards
Robbby
Ajay
Dec 18 2007, 3:34 AM
what are you doing in the translate function?
is it same as mine?
what kind of characters are being displayed?
is it same as mine?
what kind of characters are being displayed?
Robbby
Dec 18 2007, 7:33 AM
My mistake in return statements:
return KEYval + '0'; // I forgot ' ' around 0, so the result was wrong characters
.
.
.
ej ej my desultory typing
Robbby
return KEYval + '0'; // I forgot ' ' around 0, so the result was wrong characters
.
.
.
ej ej my desultory typing
Robbby
Ajay
Dec 18 2007, 8:39 AM
hope everything is fine now 

MATHIVANAN
Jan 4 2008, 5:11 AM
i am having ATMEGA32 . i want to interface to DS1307 with ATMEGA32. What is the bit rate value for DS1307, Note the maximum Freq of DS1307 is 100KHZ. what are all the routines can i follow for the DS1307.
Ajay
Jan 4 2008, 5:45 AM
AVR has got inbuilt I2C ports.. you can directly use them..
MATHIVANAN
Jan 5 2008, 6:17 PM
Yes. ATMEGA32 having inbuilt I2C ports but it cannot works for me ..i think the bit rate is not correct.what is the bit rate for DS1307. 

Ajay
Jan 6 2008, 3:52 AM
In I2C Bit rate is not specific. The clock is controlled by master so it can be anything depending on speed of master controller. However maximum speed is always specified in data sheets. For DS1307 its 400kbps i think but still check its data sheet once and configure your controller accordingly.
abbas1707
Jan 6 2008, 6:14 AM
Ajay please edit UART tutorial ( c program)
UBRRL shoud be equall to 0x19 for baud rate 9600:-|
u wrote by mistake 0x17;
void serial_init(){
UCSRA=0x00;
UCSRB=0x18;
UCSRC=0x86;
UBRRH=0x00;
UBRRL=0x19;
}
UBRRL shoud be equall to 0x19 for baud rate 9600:-|
u wrote by mistake 0x17;
void serial_init(){
UCSRA=0x00;
UCSRB=0x18;
UCSRC=0x86;
UBRRH=0x00;
UBRRL=0x19;
}
Ajay
Jan 6 2008, 6:27 AM
ok!! my mistake..
but how i made that mistake
edit:
mistake rectified..

dudu9
Feb 6 2008, 4:37 AM
hi guys. i am trying to start prjcts with my atmega162.
i started with the step by step tutorial, but the links isn't working
has any 1 similar problem..
i started with the step by step tutorial, but the links isn't working
has any 1 similar problem..
Ajay
Feb 6 2008, 9:09 AM
link not working? can you post the link here?
MATHIVANAN
Feb 22 2008, 5:13 AM
hi ajay i want to use SPI. i have some doubts. please give me simple example how to do that in ATMEGA32.
Ajay
Feb 22 2008, 10:11 AM
will give code examples only with tutorial. So please wait till i write for SPI (not SPm i think). I will try to write it soon.
if you have written your own code then you can open up a new thread and ask your doubt
i will help u out.
if you have written your own code then you can open up a new thread and ask your doubt
i will help u out.zeeshan99s
Feb 26 2008, 10:15 PM
any tutorial for codevision....... 

Ajay
Feb 26 2008, 10:26 PM
code vision is not free.. i am putting stress on free compilers, so everyone can afford to learn.
MATHIVANAN
Jul 16 2008, 12:44 AM
Hi Ajay I am using I2C but i cannt get the exact clock speed. Crystal Osc=8Mhz and I2C bus Speed 100Khz, what is the Bitrate value?