How to realize storing Data 10k-20kb


Closed Thread
Results 1 to 10 of 10
  1. #1
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    44

    Default How to realize storing Data 10k-20kb

    Hello,
    in my next project i want to store data via a RS232 connection. The procedure is very simple, but i donīt know which pic to use.
    While receiving data they should be stored but the most internal EEpromīs are really small.
    What i need is RX TX and a buffer that will not erase the stored data after disconnection.
    Also i want to use a LCD to show parts of the received data.
    Can anyone help me how to realize that and which PIC is good for my project?
    Thanks a lot

    Robson

  2. #2
    Join Date
    Jul 2007
    Posts
    53


    Did you find this post helpful? Yes | No

    Default Maybe I2C EEPROM?

    Since you will not be able to find any PIC with more than 1k data EEPROM,
    I would suggest you to go with an external 32k 24LC32 EEPROM. This need only two wire, one for clock (SCL pin) and one for data (SDA pin). Can go as fast as 400khz and it's very easy to set up an program with PBP. This left you with plenty of pins availables for the LCD.


    J-P

  3. #3
    Join Date
    Nov 2005
    Location
    Bombay, India
    Posts
    966


    Did you find this post helpful? Yes | No

    Default

    The 24C32 can hold only 32kilo bits or 4 kilo bytes of data. You may need to consider the 24C512 that holds upto 64Kilo bytes of data.

    Jerson

  4. #4
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    44


    Did you find this post helpful? Yes | No

    Default

    Thanks for fast reply,
    but howīs about the timing speed with serial eepromīs? After a byte is written i need to include a waitstate of 10ms or not?
    If iīm using a 4 MHz osc and a baudrate of 9600 up to 19200 is it possible to realize that or is the waitstate after each write not necessary?
    Which kind of i2c eeproms are available > 32kbytes, and speed?
    Note : The reading data should be stored on the fly !

    Robson
    Last edited by Robson; - 6th August 2007 at 10:07.

  5. #5
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,116


    Did you find this post helpful? Yes | No

    Default

    For the normal EEPROM, yes, you have to wait the 10ms. Better idea is to make page write according to the chip datasheet that you will select. You may write 32 or 64 bytes at once (that is 10ms...).

    If you do not want any delay then look at www.ramtron.com

    Ioannis

  6. #6
    Join Date
    Nov 2005
    Location
    Bombay, India
    Posts
    966


    Did you find this post helpful? Yes | No

    Default

    Your application looks like its going to keep updating the memory continuously. Flash memories (24Cxxx series) have a finite lifetime and can waste away in this kind of an application. FRAM based memories are the ideal choice for you.

    Jerson

  7. #7
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    44


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Jerson View Post
    Your application looks like its going to keep updating the memory continuously. Flash memories (24Cxxx series) have a finite lifetime and can waste away in this kind of an application. FRAM based memories are the ideal choice for you.

    Jerson
    Itīs not necessary to update the data continuosly. Only need to change some bytes and rewrite the bytes at their location.
    To delete the device itīs needed to delete by myself.
    Maybe i should explain more about my project. Itīs still working in my head ;-)
    I want to save data from an incoming RS232 Port of a printer.
    At first, the printer send a command, which activate my PIC.
    Now the Pic is receiving a command from the printer. Then the PIC must send a command like "ready to receiving data".
    Now the printer sends data to the PIC. These received data should be predefined e.g. 4kbyte,8kbyte or 16kbyte lenght. I donīt know how long is the receiving data, but maybe in this range. Now the PIC should store the received data at an eeprom or flash in this lenght which was predefined before (4k,8k, or 16k).
    Now when the bytes are stored i have to get access to the stored bytes to change some parameters and save it back on the storage device.
    If iīm using a 128kbyte eeprom and my stored data of the first received data is e.g. 8kbyte long, then the next block should be saved at the end of the last block.
    Now i will have space to save 17 blocks in that eeprom.
    On a second eeprom (smaller) should only be store the changed parameters and the serial of the printer. The changed paramaters are usually about 32 bytes/block.

    Thank you for any advise and help.
    (I hope my english is good enough for you to understand me)

    Robson
    Last edited by Robson; - 6th August 2007 at 22:26.

  8. #8
    Join Date
    Sep 2004
    Location
    Mentor, Ohio
    Posts
    352


    Did you find this post helpful? Yes | No

    Smile

    Hello Robson,

    Why don't you get yourself a flash card with a RS232 adaptor. There's a site out there that sells these units. I don't have the information right now but I'll look for it later this evening and get back to you. The board has its own micro to handle the overhead. It just might be what you are looking for.


    BobK

  9. #9
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    44


    Did you find this post helpful? Yes | No

    Default

    Whatīs about programming the card? Of course such a solution is possible too. However i only need a storage device which communicate with my picbasicpro.
    When you found the site please forward it to me thx

    Robson

  10. #10
    Join Date
    Sep 2004
    Location
    Mentor, Ohio
    Posts
    352


    Did you find this post helpful? Yes | No

    Smile

    Hi Robson,

    Goto www.compsys1.com and look for their MMC/SD setup on the Microcontroller projects page. This should take care of your needs.

    BobK

Similar Threads

  1. Using Nokia LCD
    By BobP in forum mel PIC BASIC Pro
    Replies: 300
    Last Post: - 3rd May 2018, 04:47
  2. Nokia 3310 display text
    By chai98a in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 26th August 2007, 03:39
  3. Big characters on HD44780 4x20
    By erpalma in forum mel PIC BASIC Pro
    Replies: 23
    Last Post: - 7th January 2007, 02:21
  4. LCD + bar graph
    By DynamoBen in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 5th October 2005, 14:50
  5. Sinus calculating !
    By Don Mario in forum mel PIC BASIC Pro
    Replies: 29
    Last Post: - 28th November 2004, 23:56

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