How many memory ? :confused:


Closed Thread
Results 1 to 8 of 8
  1. #1
    Join Date
    Nov 2008
    Location
    Epernon, France
    Posts
    15

    Talking How many memory ? :confused:

    Hi,

    Can you help me to calculate how many bytes take this: "ddmmyyyy;hh:mm:ss;XX" (whitout the quotes) ?

    I must know how many bytes i need to buy my external memory to save this datas. It's a string that i want to save. I will analyse it when i will read the memory.

    Sorry for my english ^^

    Regards,
    Niko
    Last edited by nquere; - 24th October 2009 at 00:08. Reason: ..

  2. #2
    Join Date
    Sep 2005
    Location
    Campbell, CA
    Posts
    1,107


    Did you find this post helpful? Yes | No

    Default

    If you are storing the data in ASCII, each character or number DIGIT takes one byte.
    Charles Linquist

  3. #3
    Join Date
    Nov 2008
    Location
    Epernon, France
    Posts
    15


    Did you find this post helpful? Yes | No

    Default

    Ok, so i need 22bytes.

    22b x (48 acquisitions x 30 days) = 31680 bytes.

    I think that a memory of 32Kb is good

    What sort of external memory can i use ?(cheapest !)

    Regards,
    Niko

  4. #4
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default

    "ddmmyyyy;hh:mm:ss;XX"

    You could compress your data a little bit.

    For instance, one byte for "dd" ( 1 to 31 )
    one byte for mm (1 to 12)
    one byte for yy, and one for the other half of yy
    etc. etc.

    That would decrease your requirements by half. So maybe you could use a large Pic chip. But if you need to go to external, it is probably not worth it, as you will have ample space.
    http://www.scalerobotics.com

  5. #5
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default

    You could use "24AA32" which is 32K serial EEPROM. See datashet @ http://pdf1.alldatasheet.com/datashe...IP/24AA32.html

    Al.
    All progress began with an idea

  6. #6
    Join Date
    Nov 2008
    Location
    Epernon, France
    Posts
    15


    Did you find this post helpful? Yes | No

    Default

    OK !

    So, i finaly use:

    dd |/| mm |/| yy yy |;| hh |:| mm |:| ss |;| XX => 22bytes
    dmy;h:m:s;X => 11 bytes !

    11 x (48 x 30) => 15840 bytes => 16k EEPROM !!

    I think i will buy a "24AA16"

    Thank you

  7. #7
    Join Date
    Nov 2008
    Location
    Epernon, France
    Posts
    15


    Did you find this post helpful? Yes | No

    Talking

    Cool and thanks Ebay

    I have sell 30 pieces of 24C16 for 14$
    Now i have 480Kb free for my mini-projects ^^

  8. #8
    Join Date
    Nov 2008
    Location
    Epernon, France
    Posts
    15


    Did you find this post helpful? Yes | No

    Default

    *buy of course, not sell.

Similar Threads

  1. Running Out of Programing Memory
    By rsocor01 in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 31st March 2010, 08:26
  2. Need the code to write to a memory
    By Hamlet in forum General
    Replies: 0
    Last Post: - 20th August 2007, 00:22
  3. Replies: 4
    Last Post: - 2nd March 2007, 06:12
  4. sample code for M25P32
    By Pedro Santos in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 9th January 2007, 02:37
  5. Use internal program memory like DATA memory
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 30th December 2006, 18:38

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