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 CCS Technical Support

using DDR , SDRAM externally ?
Goto page 1, 2  Next
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
camp david



Joined: 27 Jan 2015
Posts: 25

View user's profile Send private message

using DDR , SDRAM externally ?
PostPosted: Sun Apr 12, 2015 12:22 pm     Reply with quote

is there a possibility of using ddr or sdram externally
let's say controlled by microcontroller ?

thanx in advance.
Ttelmah



Joined: 11 Mar 2010
Posts: 19499

View user's profile Send private message

PostPosted: Mon Apr 13, 2015 12:34 pm     Reply with quote

Forget it.

You'd spend all the processor pins to generate the interface, and all the processor time handling triggering refresh (even using the auto refresh mode), and handling the interface.

On the PC there is hardware to do large parts of this. You could add this to the PIC, but it is getting more and more complex.

SRAM, no problem. Still uses a lot of pins, but dead easy to interface.
camp david



Joined: 27 Jan 2015
Posts: 25

View user's profile Send private message

PostPosted: Mon Apr 13, 2015 2:14 pm     Reply with quote

I need only one IC of it
and no more than (4 mbyte) 16 bit data output
I have pic18f2550 , cant it do it ?
Ttelmah



Joined: 11 Mar 2010
Posts: 19499

View user's profile Send private message

PostPosted: Mon Apr 13, 2015 3:02 pm     Reply with quote

As I said, use SRAM.

Memories like DDR, and SDRAM, would all be 3.3v, so the interface would get even more difficult
I have to ask what you actually 'want' from the memory?.
For a large amount of storage, that it quick to interface, easy to drive, and fast to use, look at a FRAM.
I doubt if you'd have enough pins on a 2550, especially if you want to use 16bit interfacing.
ELCouz



Joined: 18 Jul 2007
Posts: 427
Location: Montreal,Quebec

View user's profile Send private message

PostPosted: Mon Apr 13, 2015 3:18 pm     Reply with quote

camp david wrote:
I need only one IC of it
and no more than (4 mbyte) 16 bit data output
I have pic18f2550 , cant it do it ?


http://www.fujitsu.com/global/products/devices/semiconductor/memory/fram/standalone/4m-parallel.html

this might be what you need... but from Fujitsu this thing will be "hard" to get.

FRAM with SRAM compatibility Smile

No need for power to retain memory!
_________________
Regards,
Laurent

-----------
Here's my first visual theme for the CCS C Compiler. Enjoy!
camp david



Joined: 27 Jan 2015
Posts: 25

View user's profile Send private message

PostPosted: Mon Apr 13, 2015 4:40 pm     Reply with quote

SRAM was the first memory I thought with
but here in my country it's no more available.

let me explain what my project exactly
I need to make 'SEGA GENESIS CARTRIDGE'
'ultimate mortal kombat 3'
As you know it need a parallel memory of 4 mbyte 16 bit data bus
so I will use an sd card reader with MCU to write the data on the SDRAM
on the startup of the system.
ELCouz



Joined: 18 Jul 2007
Posts: 427
Location: Montreal,Quebec

View user's profile Send private message

PostPosted: Mon Apr 13, 2015 5:04 pm     Reply with quote

camp david wrote:
SRAM was the first memory I thought with
but here in my country it's no more available.


You cannot buy online?
_________________
Regards,
Laurent

-----------
Here's my first visual theme for the CCS C Compiler. Enjoy!
Ttelmah



Joined: 11 Mar 2010
Posts: 19499

View user's profile Send private message

PostPosted: Tue Apr 14, 2015 12:13 am     Reply with quote

Look for CY62187EV30 or R1WV6416RBG.
4M*16 SRAM.
All readily available online.
You'll still have the problem of 3.3v. I can't think of any memory this sort of size that is 5v, and the number of pins needed. This is why an SPI memory will be much easier. Microchip do these. The SST26VF064B. Talk to the local Microchip dealer. With a relatively simple 5v to 3v level shifter, job done.
camp david



Joined: 27 Jan 2015
Posts: 25

View user's profile Send private message

PostPosted: Tue Apr 14, 2015 6:58 am     Reply with quote

there is some types of MCU's have the ability to interfacing SDRAM
like AT91SAM9 , I'm not sure of it's availability though .
Ttelmah



Joined: 11 Mar 2010
Posts: 19499

View user's profile Send private message

PostPosted: Tue Apr 14, 2015 8:59 am     Reply with quote

Lot's of chips can drive SDRAM. Any of the embedded Intel Atom processors for instance. However these are all chips with unitary memory mapping (not Harvard architecture), and not PIC's.
asmboy



Joined: 20 Nov 2007
Posts: 2128
Location: albany ny

View user's profile Send private message AIM Address

PostPosted: Tue Apr 14, 2015 9:07 am     Reply with quote

if you only need it for data storage and better yet for sequential access -check.

http://www.ccsinfo.com/forum/viewtopic.php?t=53503

it is obvious how to further extend to a greater address range using another 4040 counter. to add program code space? no way
camp david



Joined: 27 Jan 2015
Posts: 25

View user's profile Send private message

PostPosted: Tue Apr 14, 2015 11:54 am     Reply with quote

Fine ..
MMC memory is really large capacity , small size , cheap , widely available
but it is serial , while genesis sega needs a parallel data output
what's the other options

* buying a cartridge online isn't included .
Ttelmah



Joined: 11 Mar 2010
Posts: 19499

View user's profile Send private message

PostPosted: Tue Apr 14, 2015 12:38 pm     Reply with quote

It is the PIC that you were talking about connecting to the memory, not the Sega.
If you are trying to make a hardware module to plug into the Sega, then you need to be looking at hardware solutions to generate the interface (FPGA for example). If you have worked out how to make the PIC appear as the correct interface to the Sega, then the memory format being talked to by the PIC doesn't matter at all. You can read serial data from a memory and present this to a parallel interface.

There is nothing to stop you reading data serially, or in 8bit bytes, and present this to a 16bit interface. What matters is if you can generate the required interface with the PIC?. I'd doubt it. Problem is that the interface will need speed, probably many orders of magnitude faster than the PIC could simulate. I've used serial interface memories to emulate a parallel ROM. Some SPI memories can now happily be read in a few nSec, while old ROM's usually allow several hundred nSec to access. Something like an FPGA can shift data in from the faster serial memory, and latch it to a parallel connection, but it needs to be done fast. Far faster than a PIC can handle. If you are not going to get involved in hardware adaption like this, then you need to be using memories that the Sega can drive.
camp david



Joined: 27 Jan 2015
Posts: 25

View user's profile Send private message

PostPosted: Tue Apr 14, 2015 1:26 pm     Reply with quote

the problem isn't only with making a parallel 16 data pins
the sega will first give an address to get a specific byte
it's 4 mbytes addressing which equals to 32 pins
so the MCU should get this address and output the specefic byte .


Last edited by camp david on Tue Apr 14, 2015 1:38 pm; edited 1 time in total
Ttelmah



Joined: 11 Mar 2010
Posts: 19499

View user's profile Send private message

PostPosted: Tue Apr 14, 2015 1:35 pm     Reply with quote

Exactly, which is why you need to be looking at a different solution.

You speak about 'control'. What do you want to do?.

If (for instance) it was to make a small part of a larger memory be mapped into the memory space of the Sega, then you could do this with a parallel memory (like the two I've already listed), and just directly connect this (with suitable voltage buffering), with the PIC controlling upper memory bit(s).

To directly 'control', you'd need something a huge amount faster than the PIC. The PIC s not a fast processor, and is not designed to handle large memory spaces.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 
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