element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Embedded and Microcontrollers
  • Technologies
  • More
Embedded and Microcontrollers
Embedded Forum Interfacing MCUs to external SDRAM
  • Blog
  • Forum
  • Documents
  • Quiz
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Embedded and Microcontrollers to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Verified Answer
  • Replies 10 replies
  • Answers 2 answers
  • Subscribers 474 subscribers
  • Views 1701 views
  • Users 0 members are here
  • microcontrollers
Related

Interfacing MCUs to external SDRAM

Former Member
Former Member over 14 years ago

Hi all,

 

I'm looking for a way to interface external SDRAM to MCUs (MCUs having external memory controller / MMU).

I don't know well how drive SDRAM memory (because usually I interface MCUs having RAM internally), but my main problem is external memory terminations.

Please, have anyone explanations, documentation or books titles to address me in solving this issue?

 

Thanks in advance.

Regards.

 

Marco.

  • Sign in to reply
  • Cancel
Parents
  • Former Member
    0 Former Member over 14 years ago

    Hello Hermann, DAB and Adam,

    Thank you for your fast answers.

     

    I give some more info.

    The MCU I use in this project is the Renesas SH7216 and, from the requisites, I should interface 8MB Parallel Flash + 8MB SDRAM to the MCU (SH7216 has a built-in refresh controller).

    Now, I think that the use of SRAM (static) instead of SDRAM is not the best choice because looking around RAM providers I've seen that 8MB is a pretty big capacity for a SRAM type and also the costs rise up considerably.

    The Bus size is 16 bit. the SDRAM could be the Samsung K4S281632K-UCL60, for the FLASH I'm still looking around for a very fast one (suggestions?).

    I'm thinking to develope the board layout on a 4-layers PCB. I know that termination/debounching resistors for the MCU-SDRAM data/address interface also depends on the PCB layout but I wish to understand if there are "good design rules" for this kind of interface. The MCU datasheet don't say much about layout and terminations for SDRAM interface. For example, why in some schematics addresses termination resistors are 0 ohm?

     

    Regards.

     

    Marco.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • lpetacchi
    0 lpetacchi over 14 years ago in reply to Former Member

    Hi Marco,

    modern MCUs with SDRAM controller are very easy to interface to SDRAM. Just connect the pins, with small series resistors (10Ohm is quite common) to control rise times and dump reflections if needed.

    Clock trace should follow specific rules depending on the path lenght (if the distance between MCU and SDRAM is less than 1" you don't need to).

    On my experience, problems arise when you need to program the controller with the correct set of timing parameters for the SDRAM. Be careful and use only well documented chips.

     

    regards

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Reject Answer
    • Cancel
  • Former Member
    0 Former Member over 14 years ago in reply to lpetacchi

    Hi Luca,

     

    This is the answer I was looking for. Thank you.

    I've seen in some datasheets that the series resistors connected to the data bus have different value from those connected to the address bus. I think this is due to the different parameters value (capacitance ?) between SDRAM data pins and address pins. So what parameters are kept into account to choice resistors values? Is there is a formulae I can use to calculate (approximately) the value of these resistors?

     

    Best Regards.

     

    Marco.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • lpetacchi
    0 lpetacchi over 14 years ago in reply to Former Member

    If the track is short you can simply check the cutoff frequency of an RC filter made by

     

    R = Rdriver + Radded, Rdriver typical 20 Ohm

    C = Cpin + Cstray, Cstray typical 3pF

     

    Frequency shall be higher than 5*Fbus.

     

    With long traces, microstrip effects complicate the problem so this becomes a task for an SI tool.

     

    regards

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • lpetacchi
    0 lpetacchi over 14 years ago in reply to Former Member

    If the track is short you can simply check the cutoff frequency of an RC filter made by

     

    R = Rdriver + Radded, Rdriver typical 20 Ohm

    C = Cpin + Cstray, Cstray typical 3pF

     

    Frequency shall be higher than 5*Fbus.

     

    With long traces, microstrip effects complicate the problem so this becomes a task for an SI tool.

     

    regards

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube