> "Goring, Steve" wrote: >> I have never used SRAM before and would like to know would it be worth >> using, if so can I use it with a Pic and lastly if yes - could someone point >> me in the direction of any code snippets. >> >> My application is for data logging in a home built weather station - I have >> pioneered my 232 link to my PC but that means leaving it on all the time. >> My preferred option is to log to an amount of memory and then download >> the data at specific time intervals. Tony Nixon wrote: > > This is only 8K x 8 and volatile, but if you use something like a > 24LC256 serial I2C EEPROM it will only gobble up 2 IO pins and give you > 32K x 8 non volatile storage. On the other hand, the interface to the SRAM will be considerably faster than an interface to a serial EEPROM, so there are applications where it would be the right solution. Speed doesn't sound essential for the application described by Steve, so it's probably better to just skip the SRAM and look for a suitable serial chip. If your system is already using a large PIC and you don't have enough I/O pins, you could also use an external latch or two to reduce the number of I/O pins needed on the PIC. You'd still need more pins than with the serial chip, though. If you're not already using a large PIC, it's usually simpler and cheaper to just step up to a bigger one than to get involved with external glue. -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu