i had still problem with my SPI
Discussion in "AVR Discussion Forum" started by MATHIVANAN Sep 25, 2007.
Tue Sep 25 2007, 06:51 pm
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
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"
.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
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
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?
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
hi ajay
i am sending the data from atmega8515 and also again get the data from atmega8515 through SPI
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
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
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?
Wed Feb 27 2008, 11:39 am
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
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
Powered by e107 Forum System