external Memory


Closed Thread
Results 1 to 7 of 7

Thread: external Memory

  1. #1
    Join Date
    Nov 2008
    Posts
    4

    Default external Memory

    I need a large amount of nonvolital memory to store data, how would I address a external Flash Memory Board (from futerlec) in picbasic.
    What is the best and approach to expanding nonvolital memory flash,eeprom,sd card.
    Thanks Jerry

  2. #2
    Join Date
    Nov 2008
    Posts
    3


    Did you find this post helpful? Yes | No

    Default

    Hi Jerry

    Have you checked using F-RAM Memory from RAMTRON? They have non-volatile memory that can be written much faster than EEPROM. Their devices range to 2 Mbit an can be interfaced by SPI with clock speeds up to 40 MHz. See here (scroll down to SPI Interface):
    http://www.ramtron.com/products/nonv...ry/serial.aspx

    You can buy it at resonable prices from here:
    http://www.farnell.com/

    Regards,
    Hans

  3. #3
    Join Date
    Nov 2008
    Posts
    4


    Did you find this post helpful? Yes | No

    Default SPI Interface

    Hanks,
    I have searched this forum for SPI Interface and found nothing. I note from threads I read that there is real I2C, that is is a all bit banging. I saw you note to use SPI. How would I read and write from this device with picbasic.
    It appears the address line sets the memory address to read and the data is presented on the output lines. how is this acomplished in PICBASIC PRO.
    Thanks Jerry

  4. #4
    Join Date
    Nov 2008
    Posts
    4


    Did you find this post helpful? Yes | No

    Default No real ic2

    The above should read NO real I2C
    Jerry

  5. #5
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Dave
    Always wear safety glasses while programming.

  6. #6
    Join Date
    Nov 2008
    Posts
    3


    Did you find this post helpful? Yes | No

    Default Spi

    Hello Jerry

    The reason I suggested using an F-RAM with SPI instead of I2C is because the SPI parts offer more memory space (2 Mb as opposed to 512 Kb) and faster communication (up to 40 MHz opposed to 1 MHz). This may be advantageous when handling large amounts of data.

    Note that unlike serial EEPROMs, the F-RAMs can perform sequential writes at bus speed without pause between pages. So the overall write data rate is proportional to bus speed.

    Larger PICs have a built-in master synchronous serial port (MSSP) hardware block which could be employed to take advantage of the faster SPI F-RAMs. To my knowledge, the MSSP is not directly supported in PBP, unfortunately. So you would have to look in the PIC's datasheet how to deal with the MSSP related registers and write some dedicated code yourself.

    Lukily, as I see from the datasheet of the RAMTRON FM25640 F-RAM, the serial interface is only half-duplex (see timing diagrams of the read commands). Data flow is either on the serial input (SI), or on serial output (SO), but not on both lines at the same time. Thus you can use the PBP commands SHIFTOUT and SHIFTIN to handle the F-RAM.

    I am about to include the F-RAM device mentioned above in my next PIC project. If desired I will post some related code here once it is done, but you will have to wait until end of this year.

    Regards,
    Hans

  7. #7
    Join Date
    May 2007
    Posts
    604


    Did you find this post helpful? Yes | No

    Default

    Depending on your application requirements, an alternative may be a 2MBit Atmel serial SPI dataflash such as the AT45DB021D-SH-B here:
    http://www.mouser.com/Search/Product...oGW76NxQ%3d%3d

    Cost is about 1/30th. (less than $1) that of the F-RAM equivalent.

Similar Threads

  1. 24lc1025 24lc256 external memory
    By JAY.M in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 23rd October 2010, 07:44
  2. External memory routines?
    By John_Mac in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 4th April 2009, 02:13
  3. PBP/PBPL and external memory
    By Charles Linquis in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 11th November 2007, 05:31
  4. PBP External Memory Bus Support
    By ALFRED in forum mel PIC BASIC
    Replies: 4
    Last Post: - 25th December 2006, 08:42
  5. external memory
    By docwisdom in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 15th April 2006, 00:51

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts