S3C2410 裸机初始化SDRAM

/******************************************************************************/
/* SDRAM.INI: External RAM (SDRAM) Initialization File                      */
/******************************************************************************/
// <<< Use Configuration Wizard in Context Menu >>>                           // 
/******************************************************************************/
/* This file is part of the uVision/ARM development tools.                    */
/* Copyright (c) 2005-2006 Keil Software. All rights reserved.                */
/* This software may only be used under the terms of a valid, current,        */
/* end user licence from KEIL for a compatible version of KEIL software       */
/* development tools. Nothing else gives you the right to use this software.  */
/******************************************************************************/




FUNC void Setup (void) {


  _WDWORD(0x53000000, 0x00000000);      


  _WDWORD(0x4A000008, 0xFFFFFFFF);      
  _WDWORD(0x4A00001C, 0x000007FF);
       
  _WDWORD(0x4C000014, 0x00000003);
  _WDWORD(0x4C000004, 0x0005c042);
  
  _WDWORD(0x56000070, 0x00280000);
  _WDWORD(0x56000078, 0x00000000);
  
  _WDWORD(0x48000000, 0x22111110);
  _WDWORD(0x48000004, 0x00000700);  
  _WDWORD(0x48000008, 0x00000700);
  _WDWORD(0x4800000C, 0x00000700);
  _WDWORD(0x48000010, 0x00000700);
  _WDWORD(0x48000014, 0x00000700);
  _WDWORD(0x48000018, 0x00000700);
  _WDWORD(0x4800001c, 0x00018005);
  _WDWORD(0x48000020, 0x00000700);
  _WDWORD(0x48000024, 0x008e0459);
  _WDWORD(0x48000028, 0x000000B2);
  _WDWORD(0x4800002c, 0x00000030);
  _WDWORD(0x48000030, 0x00000030);
  
  _WDWORD(0x56000014, 0x00000001);
  
  _WDWORD(0x56000020, 0xAAAA55AA);
  _WDWORD(0x56000028, 0x0000FFFF);
  _WDWORD(0x56000024, 0x00000000);


}


Setup();                                // Setup for Init


LOAD LED.axf INCREMENTAL    // Download
 
PC = 0x30000000; // <o> Program Entry Point


g, main // Run to main function
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值