free 8051 Microcontroller Projects AVR PIC Microcontroller Projects Tutorials Ebooks Libraries, interfacing tutorials, lcd tutorial, stepper motor, dc motor 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems

 
8051 microcontroller 8051 microcontroller
Forums

Moderators: Ajay, Junied , abbas1707, Arun Kumar V, pdi33, Shailesh NAYAK, ۞ TPS ۞, shyam, sashijoseph
Author Post
MATHIVANAN
Tue Sep 25 2007, 06:21AM
 User Offline
Registered Member #2569
Joined: Wed Jul 25 2007, 05:21AM

Posts: 57
Thanked 4 times in 4 posts
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..



I respect others the same way i expect from others.
Back to top



This post has been thanked 1 time
Ajay
Tue Sep 25 2007, 08:28AM
Rickey's World Admin

 User Offline

Registered Member #1
Joined: Fri Feb 24 2006, 04:56AM

Posts: 3757
Thanked 697 times in 656 posts
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"

www.rickeyworld.info
If you feel satisfied with the user's forum reply please click on the thank button.

Obey forum rules!
Respect others!
Back to top



This post has been thanked 1 time
MATHIVANAN
Tue Sep 25 2007, 04:46PM
 User Offline
Registered Member #2569
Joined: Wed Jul 25 2007, 05:21AM

Posts: 57
Thanked 4 times in 4 posts
thanks.. but how can i recall the data from .db (assembler directive). and also explain about my SPI PROBLEM

I respect others the same way i expect from others.
Back to top



This post has been thanked 1 time
Ajay
Tue Sep 25 2007, 07:52PM
Rickey's World Admin

 User Offline

Registered Member #1
Joined: Fri Feb 24 2006, 04:56AM

Posts: 3757
Thanked 697 times in 656 posts
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?

www.rickeyworld.info
If you feel satisfied with the user's forum reply please click on the thank button.

Obey forum rules!
Respect others!
Back to top



This post has been thanked 1 time
MATHIVANAN
Tue Sep 25 2007, 08:09PM
 User Offline
Registered Member #2569
Joined: Wed Jul 25 2007, 05:21AM

Posts: 57
Thanked 4 times in 4 posts
hi ajay
i am sending the data from atmega8515 and also again get the data from atmega8515 through SPI

I respect others the same way i expect from others.
Back to top



This post has been thanked 1 time
Ajay
Tue Sep 25 2007, 08:31PM
Rickey's World Admin

 User Offline

Registered Member #1
Joined: Fri Feb 24 2006, 04:56AM

Posts: 3757
Thanked 697 times in 656 posts
you mean you are looping back? or you are sending from one ATmega8515 to another?

www.rickeyworld.info
If you feel satisfied with the user's forum reply please click on the thank button.

Obey forum rules!
Respect others!
Back to top



This post has been thanked 1 time
MATHIVANAN
Fri Nov 02 2007, 02:28AM
 User Offline
Registered Member #2569
Joined: Wed Jul 25 2007, 05:21AM

Posts: 57
Thanked 4 times in 4 posts
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?

I respect others the same way i expect from others.
Back to top


zeeshan99s
Sun Feb 24 2008, 11:34PM
 User Offline
Registered Member #6045
Joined: Wed Feb 13 2008, 10:26PM

Posts: 4
Thanked 1 time in 1 posts
any help in C ?

wH0 sAyz @m RuDee
Back to top



This post has been thanked 1 time
MATHIVANAN
Mon Feb 25 2008, 02:25AM
 User Offline
Registered Member #2569
Joined: Wed Jul 25 2007, 05:21AM

Posts: 57
Thanked 4 times in 4 posts
i need to learn embedded c. can you guide me or suggest good book

I respect others the same way i expect from others.
Back to top


zeeshan99s
Tue Feb 26 2008, 10:09PM
 User Offline
Registered Member #6045
Joined: Wed Feb 13 2008, 10:26PM

Posts: 4
Thanked 1 time in 1 posts
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

wH0 sAyz @m RuDee
Back to top


 

Jump:     Back to top

Syndicate this thread: rss 0.92 Syndicate this thread: rss 2.0 Syndicate this thread: RDF
Powered by e107 Forum System

8051 Microcontroller Projects 8051 AVR tutorials PIC microcontroller, 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems