From PICLIST@MITVMA.MIT.EDU Thu Nov 14 05:37:55 2002 Received: from cherry.ease.lsoft.com [209.119.0.109] by dpmail10.doteasy.com with ESMTP (SMTPD32-7.13) id A733100400DA; Thu, 14 Nov 2002 05:37:55 -0800 Received: from PEAR.EASE.LSOFT.COM (209.119.0.19) by cherry.ease.lsoft.com (LSMTP for Digital Unix v1.1b) with SMTP id <18.007D4B9D@cherry.ease.lsoft.com>; Thu, 14 Nov 2002 8:24:04 -0500 Received: from MITVMA.MIT.EDU by MITVMA.MIT.EDU (LISTSERV-TCP/IP release 1.8d) with spool id 3334 for PICLIST@MITVMA.MIT.EDU; Thu, 14 Nov 2002 08:23:32 -0500 Received: from MITVMA (NJE origin SMTP@MITVMA) by MITVMA.MIT.EDU (LMail V1.2d/1.8d) with BSMTP id 7397; Thu, 14 Nov 2002 08:23:12 -0500 Received: from mail.elroynet.com [208.143.146.5] by mitvma.mit.edu (IBM VM SMTP Level 320) via TCP with ESMTP ; Thu, 14 Nov 2002 08:23:11 EST X-Comment: mitvma.mit.edu: Mail was sent by mail.elroynet.com Received: from THSystem ([65.171.152.134]) by mail.elroynet.com (8.11.0/8.11.0) with SMTP id gAEDK0202035 for ; Thu, 14 Nov 2002 07:20:00 -0600 References: <3DD33141.52D59C2A@3mtmp.com> <002601c28bdc$817cc920$b64aa40a@gm> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Message-ID: <000601c28be1$c109c2a0$8698ab41@THSystem> Date: Thu, 14 Nov 2002 07:28:43 -0600 Reply-To: pic microcontroller discussion list Sender: pic microcontroller discussion list From: Tony Harris Subject: [PIC]: Detecting SRAM and eeprom To: PICLIST@MITVMA.MIT.EDU X-RCPT-TO: Status: R X-UIDL: 277600447 X-Evolution-Source: pop://mailinglist%40farcite.net@mail.farcite.net/ X-Evolution: 000006a7-0000 Ok, I've been thinking about this for a few days now and am not sure how to do it. Let's say I have a little thing built that logs data - it requires external SRAM, and external eeprom (SRAM for temp storage, and eeprom for long term of a givin block of data for later download). I need to be able to auto-detect how much SRAM is available (ie: 0, 16, 32, 64Kx8bits, 1 or 2 chips) and how much eeprom (if any) is available (1 or 2 chips). I really am not sure how to do this, so any suggestions would be most appreciated. I'm just not suere where to start. I'm planning on using parallel ram, address lines A0 - A15 (want expandibility ;), with 8 bit for data. So, to sum up - I need to see if there are any chips there, and if there are, how much data can be stored. Thanks in advance! -Tony -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics