"Was there ever a full duplex 4-pin version of this object created?" - Not to my knowledge.· I have had a busy start to the weekend and have not had a chance to get back into the SPI.· Keeping the 4-pin full duplex in mind it is my full intention to put something together be it a Spin object or an·Assembly object but I'm not sure I can get to it this weekend.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔ Beau Schwabe
IC Layout Engineer
Parallax, Inc.
Here are two SPI versions:· One in Spin, and the other in Assembly.· For the most part Spin would be plenty fast for SPI in some cases however you might want to use the Assembly version which really blazes. (about 200 times faster than the Spin version)· The benefit however to having an all Spin version is that you could parasitically use an existing cog.· The Assembly requires it’s own cog to operate · SPI Assembly - Serial Peripheral Interface http://obex.parallax.com/objects/431/ · SPI Spin - Serial Peripheral Interface http://obex.parallax.com/objects/433/
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔ Beau Schwabe
IC Layout Engineer
Parallax, Inc.
Beau said...
Keeping the 4-pin full duplex in mind it is my full intention to put something together be it a Spin object or an Assembly object but I'm not sure I can get to it this weekend.
Thanks Beau - I'll keep monitoring this thread for the 4 pin full duplex version
Have You tested Asembly SPI on this IC (Adresing range and speed)
Ramtron FM25H20 2Mb Serial FRAM, 3V Memory
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔ Nothing is impossible, there are only different degrees of difficulty. For every stupid question there is at least one intelligent answer. Don't guess - ask instead. If you don't ask you won't know. If your gonna construct something, make it·as simple as·possible yet as versatile as posible.
Sapieha said...
Hi Beau Schwabe (Parallax)
Have You tested Asembly SPI on this IC (Adresing range and speed)
Ramtron FM25H20 2Mb Serial FRAM, 3V Memory
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔ www.mikronauts.com - a new blog about microcontrollers
Looks like it would work just fine. The Chip select pin is inverted, but you manage that outside of the SHIFTIN/SHIFTOUT command anyway.
The Data looks to be half duplex, so you could combine the DataIn and the DataOut via a resistor and use a 3-wire SPI interface.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔ Beau Schwabe
IC Layout Engineer
Parallax, Inc.
I wil incorporate 4 of them to have FRAM drive to TriBlade ziCOG CPM work drive with Yours permision to use Asembly SPI driver.
My consideration is if This driver can handle Adresing of that chip.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔ Nothing is impossible, there are only different degrees of difficulty. For every stupid question there is at least one intelligent answer. Don't guess - ask instead. If you don't ask you won't know. If your gonna construct something, make it·as simple as·possible yet as versatile as posible.
Sapieha, Absolutely, feel free to use the SPI driver. Looking at the FM25H20 datasheet page 8 for memory Writes, and Reads, it looks like you can combine the Op-Code with the 18-Bit Address to send via SHIFTOUT the entire 32-bit Long.· Then if you are writing, continue a SHIFTOUT with an 8-bit data send or if you are reading continue a SHIFTIN with an 8-bit data read. Ohh and BTW) you can combine DataIn and DataOut ... see page 2 under 'Q' and 'D' · Reference: http://www.zlgmcu.com/RAMTRON/pdf/FM25H20.pdf ·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔ Beau Schwabe
IC Layout Engineer
Parallax, Inc.
Beau Schwabe, thank you for the driver, and the good documentation in it! I just got my AD5235 digital potentiometers doing some tricks and I'm really having some fun with this. I struggled a bit with the hardware side of my board (I would fail at your job), but I knew the prop would be the right choice in the end. I thank you for making SPI easy. I'm new to the prop, all forms of serial communication, I don't know spin and I only glanced at the education kit PDF, and besides a misunderstanding of compile current / compile top I got your driver up and running without a hitch in only a days worth of spare time.
Well... since this thread is bumped, I might as well also throw my thanks out there... every time I need SPI, I start w/ Beau's code and go from there (which is partially what I was talking about at UPENE when I said everything I do on the Prop is just copying Beau's code ).
Comments
"Was there ever a full duplex 4-pin version of this object created?" - Not to my knowledge.· I have had a busy start to the weekend and have not had a chance to get back into the SPI.· Keeping the 4-pin full duplex in mind it is my full intention to put something together be it a Spin object or an·Assembly object but I'm not sure I can get to it this weekend.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
·
SPI Assembly - Serial Peripheral Interface
http://obex.parallax.com/objects/431/
·
SPI Spin - Serial Peripheral Interface
http://obex.parallax.com/objects/433/
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
Have You tested Asembly SPI on this IC (Adresing range and speed)
Ramtron FM25H20 2Mb Serial FRAM, 3V Memory
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Nothing is impossible, there are only different degrees of difficulty.
For every stupid question there is at least one intelligent answer.
Don't guess - ask instead.
If you don't ask you won't know.
If your gonna construct something, make it·as simple as·possible yet as versatile as posible.
Sapieha
Too bad its expensive; $18 qt 1 at future.
See the EDN announcement at www.edn.com/blog/1560000156/post/260026626.html
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
www.mikronauts.com - a new blog about microcontrollers
Looks like it would work just fine. The Chip select pin is inverted, but you manage that outside of the SHIFTIN/SHIFTOUT command anyway.
The Data looks to be half duplex, so you could combine the DataIn and the DataOut via a resistor and use a 3-wire SPI interface.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
I wil incorporate 4 of them to have FRAM drive to TriBlade ziCOG CPM work drive with Yours permision to use Asembly SPI driver.
My consideration is if This driver can handle Adresing of that chip.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Nothing is impossible, there are only different degrees of difficulty.
For every stupid question there is at least one intelligent answer.
Don't guess - ask instead.
If you don't ask you won't know.
If your gonna construct something, make it·as simple as·possible yet as versatile as posible.
Sapieha
Absolutely, feel free to use the SPI driver.
Looking at the FM25H20 datasheet page 8 for memory Writes, and Reads, it looks like you can combine the Op-Code with the 18-Bit Address to send via SHIFTOUT the entire 32-bit Long.· Then if you are writing, continue a SHIFTOUT with an 8-bit data send or if you are reading continue a SHIFTIN with an 8-bit data read.
Ohh and BTW) you can combine DataIn and DataOut ... see page 2 under 'Q' and 'D'
·
Reference:
http://www.zlgmcu.com/RAMTRON/pdf/FM25H20.pdf
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
Beau Schwabe, thank you for the driver, and the good documentation in it! I just got my AD5235 digital potentiometers doing some tricks and I'm really having some fun with this. I struggled a bit with the hardware side of my board (I would fail at your job), but I knew the prop would be the right choice in the end. I thank you for making SPI easy. I'm new to the prop, all forms of serial communication, I don't know spin and I only glanced at the education kit PDF, and besides a misunderstanding of compile current / compile top I got your driver up and running without a hitch in only a days worth of spare time.
... And now for I2c [noparse]:)[/noparse]
DogP
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.