Serial Ports

Go To Last Post
6 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

hello,

I'm a new user.

I'm working on AVR mega micro-controllers.

What is SPI in AVR.Is there any body who can explain about it?

what is SPI modes?

what is LSB & MSB ?

ASAP

You can DO EVERYTHING!

Just believe yourself !!!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Serial Peripheral Interface (SPI) Lot's of tutorials on the net about SPI. Here's a couple http://avrbeginners.net/architec... http://www.embedds.com/serial-pe...

 

LSB = Least Significant Byte

MSB = Most significant Byte

 

Check this one out too.

https://sites.google.com/site/qe...

Last Edited: Sat. Jun 6, 2015 - 08:06 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 2

Welcome to the forum, @Ehsan2754!
 

Just an FYI... this:

Quote:
ASAP
Will not get you far.

 

Plenty of people here will be happy to help you out when they have a moment, not because you have an emergency.

 

Have you had a read of this?:

https://www.avrfreaks.net/forum/newbie-start-here

Especially this?:

http://www.catb.org/%7Eesr/faqs/smart-questions.html

 

If not, I suggest you read them soon.

 

One of the first things you'll learn by reading those two things is that you will have more luck in getting answers to your questions if you are able to demonstrate that you have done any research yourself, and what that research is.

 

In this case it seems clear that you have done none at all, since 20 seconds with Google would have revealed to you these:

https://www.google.ca/search?q=lsb

https://www.google.ca/search?q=msb

http://en.wikipedia.org/wiki/Least_significant_bit

http://en.wikipedia.org/wiki/Most_significant_bit

https://www.google.ca/search?q=spi

http://en.wikipedia.org/wiki/Serial_Peripheral_Interface_Bus

 

If you have any specific questions about these or any other subject, feel free to ask.  However if it starts to look like you want someone else to do your homework for you, you'll find your posts will go unanswered.

 

"Experience is what enables you to recognise a mistake the second time you make it."

"Good judgement comes from experience.  Experience comes from bad judgement."

"Wisdom is always wont to arrive late, and to be a little approximate on first possession."

"When you hear hoofbeats, think horses, not unicorns."

"Fast.  Cheap.  Good.  Pick two."

"We see a lot of arses on handlebars around here." - [J Ekdahl]

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

I'm working on AVR mega micro-controllers.

The you must have the datasheet open, right?

 

What is SPI in AVR.Is there any body who can explain about it?

what is SPI modes?

So, what did you find in said datasheet?  A whole chapter on SPI, starting with the definition and overview...

 

 

Each of those is followed by more detail.  So you did not look in the datasheet?  How did the question arise?

 

 

 

You can put lipstick on a pig, but it is still a pig.

I've never met a pig I didn't like, as long as you have some salt and pepper.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

There should be a diagram close to that table that shows the four combinations of setup (new data onto the bus) and sampling (when the data is read). Those "edges" refer to clock edges.

 

Jim

 

Until Black Lives Matter, we do not have "All Lives Matter"!

 

 

Last Edited: Sun. Jun 7, 2015 - 01:33 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

About one hour. The freaks are getting faster. We need a raise.

 

Imagecraft compiler user