Discussion in "AVR Discussion Forum" started by    MATHIVANAN    Sep 25, 2007.
Tue Sep 25 2007, 06:51 pm
#1
i have read more about this avr ..but i had still problem with my SPI. can you explain about this.. i was tested data from master to slave and slave to master.. the data received by the slave to be correct.but data received by the master from slave is different.. and also explain about the .db ..how can i store the values in rom..
 tienduhieu like this.
Tue Sep 25 2007, 08:58 pm
#2
db is an assembler directive tells assembler to store data in byte manner. to use it.. you can either give bytes to be stored in hex format separated by commas or if its a string then it will be enclosed by double quotes.. here is an example..

.db 0x10, 0x30, 0x45

.db "this is an example"

thats all.. if you want to store them in a specific location.. then

.org $100
.db "this will be stored at 100H"
 tienduhieu like this.
Wed Sep 26 2007, 05:16 am
#3
thanks.. but how can i recall the data from .db (assembler directive). and also explain about my SPI PROBLEM
 tienduhieu like this.
Wed Sep 26 2007, 08:22 am
#4
please take a look at the AVR tutorials in the Ebooks and Tutorial forum to know how to read from ROM. In brief you need to use LPM instruction.

Regarding your SPI, i didn't get what you are trying to say.. Can you please be more specific with data sent from slave is different!!? which SPI device you are trying to read from?
 tienduhieu like this.
Wed Sep 26 2007, 08:39 am
#5
hi ajay
i am sending the data from atmega8515 and also again get the data from atmega8515 through SPI
 tienduhieu like this.
Wed Sep 26 2007, 09:01 am
#6
you mean you are looping back? or you are sending from one ATmega8515 to another?
 tienduhieu like this.
Fri Nov 02 2007, 02:58 pm
#7
sure..i got the solution and also i communicate one slave with two master.. i got all solution but i not got solution about RTC?
Mon Feb 25 2008, 01:04 pm
#8
any help in C ? :-s
 MATHIVANAN like this.
Mon Feb 25 2008, 03:55 pm
#9
i need to learn embedded c. can you guide me or suggest good book
Wed Feb 27 2008, 11:39 am
#10
i dont know one for bigAVR but if u jst want to know a book for concepts go for
8051 micro controller by scott mcanzee ..


any one who can guide me how to program SD/MMC card using bigAVR atmega 128, & the compiler is codevision ..

i tried the sample program which is written for WINAVR . i runs perfect without an error but i dont know how to configure it , the comments are there but language problem :-s

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

KevinTab
Sun Apr 28 2024, 05:35 am
Tumergix
Sun Apr 28 2024, 12:59 am
StevenDrulk
Sat Apr 27 2024, 08:47 pm
StephenHauct
Sat Apr 27 2024, 09:38 am
Adamsaf
Sat Apr 27 2024, 07:12 am
Robertphype
Sat Apr 27 2024, 12:23 am
ktaletrryp
Fri Apr 26 2024, 10:55 pm
Robertrip
Fri Apr 26 2024, 11:20 am