| Author |
Message |
pepillo
Joined: 23 Jan 2006 Posts: 94 Helped: 3 Location: Spain
|
24 Jan 2006 15:02 SPI interface |
|
|
|
|
Need information & code examples using SPI bus to drive any dsp/mcu/eeprom.
Thanks in advance
|
|
| Back to top |
|
 |
silvio
Joined: 31 Dec 2001 Posts: 801 Helped: 90
|
24 Jan 2006 19:42 Re: SPI interface |
|
|
|
|
This is a very good explanation regarding SPI interface (including mode 0 -3)
It's specific for AVR microcontrollers but you can learn a lot.
http://avrhelp.mcselec.com/Using_the_SPI_protocol.html
For code you must be more concise. As you read above the interconnection between two SPI devices always happens between a master device and a slave device. Which one you would like to be ? You mentioned "dsp/mcu/eeprom"
If 25LC640 is your concern then a briefly look into datasheet will give you some information about a slave:
http://ww1.microchip.com/downloads/en/devicedoc/21223g.pdf
Then you can look into two applications for the master behaviour:
One microcontroller with SPI by default
http://ww1.microchip.com/downloads/en/appnotes/00966a.pdf
and one where four GPIO are used for SPI
http://ww1.microchip.com/downloads/en/appnotes/01006a.pdf
Both of them using slave 25XXX SPI EEPROM series with nice snap shoots on logic analyzer screen.
The Microchip's funs on the forum will point out a better explanation for SPI.
Just because the SPI interface was established by Microchip, thus the best explanation of the interface must come from them.
|
|
| Back to top |
|
 |
pepillo
Joined: 23 Jan 2006 Posts: 94 Helped: 3 Location: Spain
|
24 Jan 2006 23:22 Re: SPI interface |
|
|
|
|
| Thx a lot, silvio, great links that i will dive in soon. Hope to see ya around here often.
|
|
| Back to top |
|
 |
kachuisa
Joined: 16 Nov 2005 Posts: 19
|
25 Jan 2006 4:52 Re: SPI interface |
|
|
|
|
| www.atmel.com -> app note
|
|
| Back to top |
|
 |
pvinbox@yahoo.com
Joined: 28 May 2004 Posts: 122 Helped: 6 Location: Coimbatore, INDIA
|
25 Jan 2006 6:59 Re: SPI interface |
|
|
|
|
hai
pls check microchip application notes
there is lot of application notes are there.
bye
|
|
| Back to top |
|
 |
silvio
Joined: 31 Dec 2001 Posts: 801 Helped: 90
|
25 Jan 2006 11:12 Re: SPI interface |
|
|
|
|
| pvinbox(at)yahoo.com wrote: |
hai
pls check microchip application notes
there is lot of application notes are there.
bye |
Smart answer.
If you're a really Microchip fun can you post a link from Microchip web site where it's clearly explained the ISP interface, but not specific to a device. It must be general reference. And definitely a link not kick and run.
BTW we are here to help each other and not earning or accumulating points.
You can even gain some friends.
But not with such kind of answers.
| Quote: |
| there is lot of application notes are there. |
You know I've just pass through my favorite supermarket. And guess what ?
They just got in stock my lovely microcontroller.
Look at kachuisa's advice too. He just pass through my favorite supermarket, too
Oh, yeah I've just been there, I look around for a while, but I've forgot the shelf with your application note. Yeah, you better take a look too. And do not mind if you don't find it. And tomorrow is a day.
|
|
| Back to top |
|
 |
Jos Brink
Joined: 28 Jan 2004 Posts: 68 Helped: 7
|
25 Jan 2006 20:32 Re: SPI interface |
|
|
|
|
First of all a huge laugh.. thnx silvio!!!
ok back on topic.
heheh still laughin.
SPI is a trademark of Motorola so if you are looking for the protocol description visit them.
What kind of controller are you using?
I think that SPI is the most easiest protocol there is.. much easier than i²c, 1Wire, CAN, or even standard serial data from any uart. the only pitfall is the idle state. and the phase of the clock signal, every chip has its own.
oh, i had some problems with spi, some chips are using the CS line to initiate a spi cycle. Read your datasheets and you'll find out.
for any questions.. please come again.
|
|
| Back to top |
|
 |
pepillo
Joined: 23 Jan 2006 Posts: 94 Helped: 3 Location: Spain
|
25 Jan 2006 21:56 Re: SPI interface |
|
|
|
|
| i'm using 25lc640 to send a boot image to a dsp (VS1011 mp3 codec). i haven't got any controller, just the 25lc640 programmed with the boot image, the codec, and one mmc card with spi interface. i think the dsp requests the boot image on reset and then it works standalone. but anyway i need to understand the spi interface to achieve functionality.
|
|
| Back to top |
|
 |
Google AdSense

|
25 Jan 2006 21:56 Ads |
|
|
|
|
|
|
| Back to top |
|
 |
silvio
Joined: 31 Dec 2001 Posts: 801 Helped: 90
|
26 Jan 2006 19:26 Re: SPI interface |
|
|
|
|
| Jos Brink wrote: |
SPI is a trademark of Motorola so if you are looking for the protocol description visit them.
|
YES it's correct. My apologize for misleaded information. I don't know why I ever thought to Microchip as the developer of SPI bus.
P.S. I like AVR too and I'm joining to your opinion regarding PIC.
|
|
| Back to top |
|
 |