Need help understanding SPI??
Hi guys I bought a AT45DB161D 16 Meg flash from spark fun. Its interface is SPI here is my problem I am trying to use some the Prop Obex SPI programs a few of them use the DS1620 temperature sensor and I have that working just fine but
to the actual problem, The DS1620 has pin outs like this
Pin1=DQ
Pin2=CLK/CONV
Pin3=RST
Pin4=GND
and if you look at the Prop Spin code it address these pins , but if you look at other SPI devices they have pins like this
SI
SCK
RESET
CS
SO
GND
VCC
WP
and according to the Wikipedia they are as follows SI= Serial Data,,, SO= Serial Data out you have your CS= chip select, Reset you get the picture so... SO and SI I understand but why are the Parallax SPI chips DQ while the SPI interface says its a 4 wire interface the Parallax is a single pin. How can this be isn't SPI a standard? How can I interpret the Parallax SPI interface to other device interfaces like Atmel??? I tried substituting DQ with SI but it obviously did not work. I would like to use SPI since these new 16 Meg chips I bought use that interface I am hoping I can use them with my Prop proto board to make them hold data and some logging info
As always thank you guys for trying to help
to the actual problem, The DS1620 has pin outs like this
Pin1=DQ
Pin2=CLK/CONV
Pin3=RST
Pin4=GND
and if you look at the Prop Spin code it address these pins , but if you look at other SPI devices they have pins like this
SI
SCK
RESET
CS
SO
GND
VCC
WP
and according to the Wikipedia they are as follows SI= Serial Data,,, SO= Serial Data out you have your CS= chip select, Reset you get the picture so... SO and SI I understand but why are the Parallax SPI chips DQ while the SPI interface says its a 4 wire interface the Parallax is a single pin. How can this be isn't SPI a standard? How can I interpret the Parallax SPI interface to other device interfaces like Atmel??? I tried substituting DQ with SI but it obviously did not work. I would like to use SPI since these new 16 Meg chips I bought use that interface I am hoping I can use them with my Prop proto board to make them hold data and some logging info
As always thank you guys for trying to help
Comments
Just a very quick rundown on your question.
*Peter*
P.S. Isn't there an object already for SPI dataflash?
Post Edited (Peter Jakacki) : 9/24/2009 12:09:54 AM GMT
and viewed the data sheet, I even bought a sparkfun temp sensor it looks just like an npn transistor that has a single wire interface but its proprietary so I guess that does not count.
It was such a hassle soldering this SMT 16meg part that I wish I could find a simple program for the prop or BS2 that would just acknowledge if I have them connected properly to begin with
*Peter*
http://forums.parallax.com/showthread.php?p=758232
http://forums.parallax.com/attachment.php?attachmentid=56898
*Peter*
Much of your confusion will disappear with real use on a workbench. SCK. SI. amd SO are the important I/O lines. GND and
V+ always exist (it uses electricity right?)
And Reset is somewhat rare.
In some cases, SI and SO have been hacked to share the same I/O pin on a microprocessor.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Ain't gadetry a wonderful thing?
aka G. Herzog [noparse][[/noparse] 黃鶴 ] in Taiwan