CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

How to interface PIC with sst memory (JEDEC standard)?

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Kova



Joined: 06 May 2007
Posts: 35

View user's profile Send private message

How to interface PIC with sst memory (JEDEC standard)?
PostPosted: Thu Nov 22, 2007 12:44 am     Reply with quote

Hi all,
somebody has some C code library for interface a PIC with an sst memory that works with Jedec standard like 39SF020 memory?

This is the datasheet of the memory that I want to interface with the PIC:
http://www.sst.com/downloads/datasheet/S71147.pdf

Thanks a lot ;)

P.S. I have searched into the forum and I have found an Asm source for AT49Fxxx memory but...I don't know... Rolling Eyes
Guest








PostPosted: Thu Nov 22, 2007 10:16 am     Reply with quote

This is a rather straight forward exercise in 'bit-banging'

That data sheet contains good information on how to operate the device. All you need to do is hook it up and operate the bits yourself.

Address and data should be straight forward - hook them up to the proper ports.

The control lines can be hooked up to other bits in a port.

Then follow the data sheet and operate the bits and ports to match the timing diagrams given.

This is called 'Bit-banging' and is a favorite method of controlling 'Anything' with uC's.

As a minimum I would think you will need to develop a read() and write() routine(s) to use and test this device yourself.

This should only take you and hour or so to do once you get the hang of it.

HTH - Steve H.
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Thu Nov 22, 2007 10:31 am     Reply with quote

A question,
What do you want to store in the external memory? Data or program code?
For data there is no problem, but program code is a different story.
SET



Joined: 15 Nov 2005
Posts: 161
Location: Glasgow, UK

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Thu Nov 22, 2007 10:54 am     Reply with quote

You could connect this flash to PICs that have an external memory bus, then you could use it for data and code storage. You would of course need to write your own 'write external memory' code (since its flash and not RAM), but the CCS read_external_memory lib function would work.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group