In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Coriolis wrote: I think Ive found a good app for the HOLD function of the FRAM, my current tinkering project (because I have the components and limited funds currently) is creating a FRAM & MMC interface (both SPI), where the FRAM is used as a temporary buffer to store the 512 byte blocks the MMC requires. When the temp buffer in FRAM is full, instead of reading in a value from FRAM then writing it to MMC, how about getting them to communicate with each other? This requires the SI of one to be connected to the SO of the other, and the method of operation goes something like this: Setup FRAM to read data byte at address Before clocking data out of FRAM, place it in hold status Setup MMC to write a byte of data (block write mode) Take FRAM out of hold status Clock the data bits from FRAM to MMC Repeat for 512 bytes This should speed up the operation for both SX and Stamp controllers, and with proper programming, no data should every be lost in the event of a power failure. The diagram for the setup is below, a + is a connection of two lines, a E is a crossover w/o connection of two lines. Im hoping this will be my first submission to the Projects forum. [code] SX |___________| | | | | | | ______ _____ | | | | | +--|CS | |F SI|-+-E-E-E-E----|SO M | |R SO|---+-E-E-E----|SI M | |A SCL|-----+-E-E----|SCL C | |M HLD|-------+ | ------ | CS|---------+ ----- [/code] ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=90255#m90327 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)