Author Topic: Atxmega + SDRAM  (Read 6130 times)

0 Members and 1 Guest are viewing this topic.

Offline Cyborg666Topic starter

  • Newbie
  • Posts: 5
Atxmega + SDRAM
« on: April 22, 2014, 09:22:28 am »
Hi!

I'm working on a project with my brother, in which he will do the electronics, and I will do the programming.
We need quite a bit of RAM for this project, and I was wondering if it's possible to use this micro in conjunction with this RAM?

http://www.mouser.com/ds/2/36/Atmel-8385-8-and-16-bit-AVR-Microcontroller-ATxmeg-259120.pdf
http://www.mouser.com/ds/2/12/64M-AS4C4M16S-7450.pdf

Does anyone have some tips on how to hook them up properly, or perhaps a link to a guide or something?
 

Online amyk

  • Super Contributor
  • ***
  • Posts: 8263
Re: Atxmega + SDRAM
« Reply #1 on: April 22, 2014, 10:54:08 am »
That SDRAM specifies no minimum clock frequency (they usually have one), but it must be refreshed at least every 15.6us. Either way, interfacing SDRAM to an 8-bit MCU is not an easy task, although it can be done.
 

Offline Psi

  • Super Contributor
  • ***
  • Posts: 9930
  • Country: nz
Re: Atxmega + SDRAM
« Reply #2 on: April 22, 2014, 11:14:07 am »
The xmega has an external SRAM/SDRAM bus, so there should be no problem using SDRAM.
However you will need to make sure the SDRAM IC timing is within the xmegas external bus timing.
Greek letter 'Psi' (not Pounds per Square Inch)
 

Online David Hess

  • Super Contributor
  • ***
  • Posts: 16607
  • Country: us
  • DavidH
Re: Atxmega + SDRAM
« Reply #3 on: April 22, 2014, 08:22:47 pm »
. . . interfacing SDRAM to an 8-bit MCU is not an easy task, although it can be done.
That is actually FPM or EDO asynchronous DRAM and not synchronous DRAM which was not used in 30 pin SIMMs.  It is being accessed using programmed I/O so it is only suitable for use with emulation which is exactly what the author is doing.

Cyborg666, that microcontroller only has an 8 bit wide SDRAM interface so it should work but half that that 16 bit wide memory would be lost.
 

Offline theatrus

  • Frequent Contributor
  • **
  • Posts: 352
  • Country: us
Re: Atxmega + SDRAM
« Reply #4 on: April 22, 2014, 08:29:51 pm »
Do note that AVR-GCC does not work in the hybrid addressing mode required to access all of your memory on the xMega. You can do assembly-assisted-copying, or use IAR or another compiler which does support it.
Software by day, hardware by night; blueAcro.com
 

Offline janoc

  • Super Contributor
  • ***
  • Posts: 3785
  • Country: de
Re: Atxmega + SDRAM
« Reply #5 on: April 22, 2014, 08:31:01 pm »
The xmega has an external SRAM/SDRAM bus, so there should be no problem using SDRAM.
However you will need to make sure the SDRAM IC timing is within the xmegas external bus timing.

There is an appnote on it: http://www.atmel.com/images/doc8058.pdf

However, XMega doesn't have a dedicated SDRAM controller, the appnote only shows how to drive the SDRAM electrically. All the initialization and everything else that an SDRAM needs is up to you to do in software (the refresh can be handled by the EBI on the chip). Not an easy job for an 8bit micro, not to mention that you would block most of the available I/O with it.

I would probably look for something beefier if SDRAM is needed - e.g. an ARM.

« Last Edit: April 22, 2014, 08:34:22 pm by janoc »
 

Offline Cyborg666Topic starter

  • Newbie
  • Posts: 5
Re: Atxmega + SDRAM
« Reply #6 on: April 23, 2014, 11:53:00 am »
You haven't been very specific about how much RAM you need, how fast you need to access it, and how you need to update it. I am inclined to want to ask why you must combine an Atxmega and SDRAM. In this day it seems to be a better choice to choose some more suitable platform where you are less constrained by the device limitations.

We're trying to make a digital audio delay pedal for guitar players.
It's supposed to have a feature in which you can record a sample of about 40 seconds - in stereo.

I've only worked with arduino before, and have mostly done regular PC-programming. So I'm a bit worried about how hard this will be.

Do you have any suggestions on which controller/memory would be suitable for these tasks?
 

Offline Tubis

  • Newbie
  • Posts: 1
Re: Atxmega + SDRAM
« Reply #7 on: April 23, 2014, 12:58:14 pm »
Hi. Im the other part of this experiment. I understand nothing about programing but i can hook up the electrical and make pcb.

We selected the atxmega because it had adc and dac and enought pins for a number of external controls in form of potentiometers pushbuttons, rotary switches and to control some leds and analog bypass line. The project is to produce something like this: http://www.bossus.com/gear/productdetails.php?ProductId=958&ParentId=255

Would this memory work better? http://se.mouser.com/ProductDetail/ISSI/IS42S81600E-7TL/?qs=sGAEpiMZZMti5BT4iPSEnXRShtGGCFK3TG42wTPCEQU%3d

It looks more pin compatible?
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf